pmd:RedundantFieldInitializer - Redundant-Field-Initializer
This commit is contained in:
@ -40,7 +40,7 @@ public class ReaderWriterLock implements ReadWriteLock {
|
||||
|
||||
private Object readerMutex = new Object();
|
||||
|
||||
private int currentReaderCount = 0;
|
||||
private int currentReaderCount;
|
||||
|
||||
/**
|
||||
* Global mutex is used to indicate that whether reader or writer gets the lock in the moment.
|
||||
|
@ -29,7 +29,7 @@ import java.util.concurrent.locks.Lock;
|
||||
*/
|
||||
public class Writer implements Runnable {
|
||||
|
||||
private Lock writeLock = null;
|
||||
private Lock writeLock;
|
||||
|
||||
private String name;
|
||||
|
||||
|
Reference in New Issue
Block a user