You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2016/12/06 23:13:05 UTC

[10/50] [abbrv] lucene-solr:apiv2: SOLR-8871 - added suppress forbidden for toUpperCase usage

SOLR-8871 - added suppress forbidden for toUpperCase usage


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/a4573fe7
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/a4573fe7
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/a4573fe7

Branch: refs/heads/apiv2
Commit: a4573fe7f45ba4c84c46d8e7e72c7353164a2696
Parents: 96489d2
Author: Tommaso Teofili <to...@apache.org>
Authored: Fri Nov 25 01:12:03 2016 +0100
Committer: Tommaso Teofili <to...@apache.org>
Committed: Fri Nov 25 01:12:03 2016 +0100

----------------------------------------------------------------------
 .../update/processor/ClassificationUpdateProcessorFactory.java     | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/a4573fe7/solr/core/src/java/org/apache/solr/update/processor/ClassificationUpdateProcessorFactory.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/update/processor/ClassificationUpdateProcessorFactory.java b/solr/core/src/java/org/apache/solr/update/processor/ClassificationUpdateProcessorFactory.java
index 19e0dfe..cbe571b 100644
--- a/solr/core/src/java/org/apache/solr/update/processor/ClassificationUpdateProcessorFactory.java
+++ b/solr/core/src/java/org/apache/solr/update/processor/ClassificationUpdateProcessorFactory.java
@@ -22,6 +22,7 @@ import org.apache.lucene.search.Query;
 import org.apache.solr.common.SolrException;
 import org.apache.solr.common.params.SolrParams;
 import org.apache.solr.common.util.NamedList;
+import org.apache.solr.common.util.SuppressForbidden;
 import org.apache.solr.request.SolrQueryRequest;
 import org.apache.solr.response.SolrQueryResponse;
 import org.apache.solr.schema.IndexSchema;
@@ -59,6 +60,7 @@ public class ClassificationUpdateProcessorFactory extends UpdateRequestProcessor
   private SolrParams params;
   private ClassificationUpdateProcessorParams classificationParams;
 
+  @SuppressForbidden(reason = "Need toUpperCase to match algorithm enum value")
   @Override
   public void init(final NamedList args) {
     if (args != null) {