Code cleanup (#1461)

* Code cleanup

* Fix flux tests

* Fix checkstyle errors

* Fix compile error
This commit is contained in:
Ilkka Seppälä
2020-07-30 20:28:47 +03:00
committed by GitHub
parent 5381387026
commit 417f21ed3d
243 changed files with 1154 additions and 1162 deletions
@@ -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.