提交 6e9f7dab authored 作者: Andrei Tokar's avatar Andrei Tokar

relax encapsulation to avoid synthetic access

上级 eb432bf6
...@@ -247,7 +247,7 @@ public class CacheLongKeyLIRS<V> { ...@@ -247,7 +247,7 @@ public class CacheLongKeyLIRS<V> {
* @param key the key * @param key the key
* @return the hash code * @return the hash code
*/ */
private static int getHash(long key) { static int getHash(long key) {
int hash = (int) ((key >>> 32) ^ key); int hash = (int) ((key >>> 32) ^ key);
// a supplemental secondary hash function // a supplemental secondary hash function
// to protect against hash codes that don't differ much // to protect against hash codes that don't differ much
...@@ -929,7 +929,7 @@ public class CacheLongKeyLIRS<V> { ...@@ -929,7 +929,7 @@ public class CacheLongKeyLIRS<V> {
} }
} }
private void trimNonResidentQueue() { void trimNonResidentQueue() {
Entry<V> e; Entry<V> e;
int maxQueue2Size = nonResidentQueueSize * (mapSize - queue2Size); int maxQueue2Size = nonResidentQueueSize * (mapSize - queue2Size);
if (maxQueue2Size >= 0) { if (maxQueue2Size >= 0) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论