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