Code cleanup (#1461)
* Code cleanup * Fix flux tests * Fix checkstyle errors * Fix compile error
This commit is contained in:
@ -34,11 +34,11 @@ public class Reader implements Runnable {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(Reader.class);
|
||||
|
||||
private Lock readLock;
|
||||
private final Lock readLock;
|
||||
|
||||
private String name;
|
||||
private final String name;
|
||||
|
||||
private long readingTime;
|
||||
private final long readingTime;
|
||||
|
||||
/**
|
||||
* Create new Reader.
|
||||
|
@ -59,8 +59,8 @@ public class ReaderWriterLock implements ReadWriteLock {
|
||||
*/
|
||||
private final Set<Object> globalMutex = new HashSet<>();
|
||||
|
||||
private ReadLock readerLock = new ReadLock();
|
||||
private WriteLock writerLock = new WriteLock();
|
||||
private final ReadLock readerLock = new ReadLock();
|
||||
private final WriteLock writerLock = new WriteLock();
|
||||
|
||||
@Override
|
||||
public Lock readLock() {
|
||||
|
@ -34,11 +34,11 @@ public class Writer implements Runnable {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(Writer.class);
|
||||
|
||||
private Lock writeLock;
|
||||
private final Lock writeLock;
|
||||
|
||||
private String name;
|
||||
private final String name;
|
||||
|
||||
private long writingTime;
|
||||
private final long writingTime;
|
||||
|
||||
/**
|
||||
* Create new Writer who writes for 250ms.
|
||||
|
@ -34,7 +34,7 @@ import org.slf4j.LoggerFactory;
|
||||
* InMemory Log Appender Util.
|
||||
*/
|
||||
public class InMemoryAppender extends AppenderBase<ILoggingEvent> {
|
||||
private List<ILoggingEvent> log = new LinkedList<>();
|
||||
private final List<ILoggingEvent> log = new LinkedList<>();
|
||||
|
||||
public InMemoryAppender(Class clazz) {
|
||||
((Logger) LoggerFactory.getLogger(clazz)).addAppender(this);
|
||||
|
Reference in New Issue
Block a user