Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

Making NO_OUTPUT a true singleton within a single class loader. I didn't see the point of it being class-level, but correct me if I'm wrong.

Dawid Weiss896bcea27fc7
diff --git a/lucene/src/java/org/apache/lucene/util/fst/NoOutputs.java b/lucene/src/java/org/apache/lucene/util/fst/NoOutputs.java
index 40404a3fb90..1b1e97e12f5 100644
--- a/lucene/src/java/org/apache/lucene/util/fst/NoOutputs.java
+++ b/lucene/src/java/org/apache/lucene/util/fst/NoOutputs.java
@@ -28,7 +28,7 @@ import org.apache.lucene.store.DataOutput;
public final class NoOutputs extends Outputs<Object> {
- final Object NO_OUTPUT = new Object() {
+ static final Object NO_OUTPUT = new Object() {
// NodeHash calls hashCode for this output; we fix this
// so we get deterministic hashing.
@Override