提交 94a183a8 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Fix some warnings and mark some methods as static

上级 0242b5ec
...@@ -1939,7 +1939,7 @@ public class MVMap<K, V> extends AbstractMap<K, V> ...@@ -1939,7 +1939,7 @@ public class MVMap<K, V> extends AbstractMap<K, V>
if (notificationRequested) { if (notificationRequested) {
synchronized (lock) { synchronized (lock) {
notificationRequested = false; notificationRequested = false;
lock.notifyAll();; lock.notifyAll();
} }
} }
return updatedRootReference; return updatedRootReference;
......
...@@ -27,10 +27,12 @@ class VersionedValueCommitted extends VersionedValue { ...@@ -27,10 +27,12 @@ class VersionedValueCommitted extends VersionedValue {
return value instanceof VersionedValue ? (VersionedValue) value : new VersionedValueCommitted(value); return value instanceof VersionedValue ? (VersionedValue) value : new VersionedValueCommitted(value);
} }
@Override
public Object getCurrentValue() { public Object getCurrentValue() {
return value; return value;
} }
@Override
public Object getCommittedValue() { public Object getCommittedValue() {
return value; return value;
} }
......
...@@ -77,11 +77,11 @@ public class TestAuthentication extends TestBase { ...@@ -77,11 +77,11 @@ public class TestAuthentication extends TestBase {
return externalUserPassword; return externalUserPassword;
} }
private String getRealmName() { private static String getRealmName() {
return "testRealm"; return "testRealm";
} }
private String getStaticRoleName() { private static String getStaticRoleName() {
return "staticRole"; return "staticRole";
} }
...@@ -117,7 +117,7 @@ public class TestAuthentication extends TestBase { ...@@ -117,7 +117,7 @@ public class TestAuthentication extends TestBase {
return "jdbc:h2:mem:" + getClass().getSimpleName(); return "jdbc:h2:mem:" + getClass().getSimpleName();
} }
private String getExternalUser() { private static String getExternalUser() {
return "user"; return "user";
} }
......
...@@ -92,12 +92,12 @@ public class TestLIRSMemoryConsumption extends TestDb { ...@@ -92,12 +92,12 @@ public class TestLIRSMemoryConsumption extends TestDb {
} }
} }
private Object createValue(long key) { private static Object createValue(long key) {
// return new Object(); // return new Object();
return new byte[2540]; return new byte[2540];
} }
private int getValueSize(long key) { private static int getValueSize(long key) {
// return 16; // return 16;
return 2560; return 2560;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论