mirror of https://github.com/apache/lucene.git
LUCENE-6303: Fix 'access denied ("java.lang.RuntimePermission" "accessClassInPackage.sun.net.www.protocol.file")' error.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1662829 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e4d88cab5c
commit
cf39112477
|
@ -270,8 +270,8 @@ public class TestLRUQueryCache extends LuceneTestCase {
|
|||
if (o instanceof Query) {
|
||||
return queryCache.ramBytesUsed((Query) o);
|
||||
}
|
||||
if (o.getClass().getSimpleName().equals("SegmentCoreReaders")) {
|
||||
// do not take core cache keys into account
|
||||
if (o instanceof IndexReader || o.getClass().getSimpleName().equals("SegmentCoreReaders")) {
|
||||
// do not take readers or core cache keys into account
|
||||
return 0;
|
||||
}
|
||||
if (o instanceof Map) {
|
||||
|
|
Loading…
Reference in New Issue