You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by to...@apache.org on 2019/06/22 16:14:11 UTC
[lucene-solr] branch branch_8x updated: LUCENE-8778: Don't use Java
11 APIs on 8x branch.
This is an automated email from the ASF dual-hosted git repository.
tomoko pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/branch_8x by this push:
new d1678a3 LUCENE-8778: Don't use Java 11 APIs on 8x branch.
d1678a3 is described below
commit d1678a3a68685acd1432dfadcd5f49fa817273ad
Author: Tomoko Uchida <to...@apache.org>
AuthorDate: Sun Jun 23 01:12:32 2019 +0900
LUCENE-8778: Don't use Java 11 APIs on 8x branch.
---
.../src/java/org/apache/lucene/analysis/util/AnalysisSPILoader.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/util/AnalysisSPILoader.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/util/AnalysisSPILoader.java
index 8e79c3e..57c4250 100644
--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/util/AnalysisSPILoader.java
+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/util/AnalysisSPILoader.java
@@ -126,8 +126,8 @@ public final class AnalysisSPILoader<S extends AbstractAnalysisFactory> {
throw new ServiceConfigurationError("Service lookup key set is inconsistent with original name set!");
}
- this.services = Map.copyOf(services);
- this.originalNames = Set.copyOf(originalNames);
+ this.services = Collections.unmodifiableMap(services);
+ this.originalNames = Collections.unmodifiableSet(originalNames);
}
private boolean isValidName(String name) {