From 19ae952e809dde4f55b9672b3bbf6dbd2ee14f2f Mon Sep 17 00:00:00 2001 From: Dawid Weiss Date: Thu, 7 Apr 2011 10:10:52 +0000 Subject: [PATCH] SOLR-2378: Making fields of LookupResult public final (everything else is accessible and you can't get access to the actual suggestions, this makes no sense). git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1089798 13f79535-47bb-0310-9956-ffa450edef68 --- solr/src/java/org/apache/solr/spelling/suggest/Lookup.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solr/src/java/org/apache/solr/spelling/suggest/Lookup.java b/solr/src/java/org/apache/solr/spelling/suggest/Lookup.java index c546f6a2d48..d8893d12ff1 100644 --- a/solr/src/java/org/apache/solr/spelling/suggest/Lookup.java +++ b/solr/src/java/org/apache/solr/spelling/suggest/Lookup.java @@ -17,8 +17,8 @@ public abstract class Lookup { * Result of a lookup. */ public static final class LookupResult implements Comparable { - String key; - float value; + public final String key; + public final float value; public LookupResult(String key, float value) { this.key = key;