mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-16 10:59:03 +00:00
squid:S2325 - private methods that don't access instance data should be static
This commit is contained in:
+1
-1
@@ -89,7 +89,7 @@ public class ReaderWriterLock implements ReadWriteLock {
|
||||
return globalMutex.isEmpty();
|
||||
}
|
||||
|
||||
private void waitUninterruptibly(Object o) {
|
||||
private static void waitUninterruptibly(Object o) {
|
||||
try {
|
||||
o.wait();
|
||||
} catch (InterruptedException e) {
|
||||
|
||||
Reference in New Issue
Block a user