From a9f82a1b4534f29ed651627d95cfa6c019c572a3 Mon Sep 17 00:00:00 2001 From: Noble Paul Date: Thu, 22 Sep 2016 16:43:01 +0530 Subject: [PATCH] SOLR-8995: precommit errors --- .../update/processor/MaxFieldValueUpdateProcessorFactory.java | 2 +- .../update/processor/MinFieldValueUpdateProcessorFactory.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/solr/core/src/java/org/apache/solr/update/processor/MaxFieldValueUpdateProcessorFactory.java b/solr/core/src/java/org/apache/solr/update/processor/MaxFieldValueUpdateProcessorFactory.java index 8a442f910c0..152815b01ea 100644 --- a/solr/core/src/java/org/apache/solr/update/processor/MaxFieldValueUpdateProcessorFactory.java +++ b/solr/core/src/java/org/apache/solr/update/processor/MaxFieldValueUpdateProcessorFactory.java @@ -60,7 +60,7 @@ public final class MaxFieldValueUpdateProcessorFactory extends FieldValueSubsetU try { // NOTE: the extra cast to Object is needed to prevent compile // errors on Eclipse Compiler (ecj) used for javadoc lint - result = Collections.singletonList(Collections.max(values)); + result = Collections.singletonList((Object) Collections.max(values)); } catch (ClassCastException e) { throw new SolrException (BAD_REQUEST, diff --git a/solr/core/src/java/org/apache/solr/update/processor/MinFieldValueUpdateProcessorFactory.java b/solr/core/src/java/org/apache/solr/update/processor/MinFieldValueUpdateProcessorFactory.java index f9456bb53d9..d943ecfd6e1 100644 --- a/solr/core/src/java/org/apache/solr/update/processor/MinFieldValueUpdateProcessorFactory.java +++ b/solr/core/src/java/org/apache/solr/update/processor/MinFieldValueUpdateProcessorFactory.java @@ -60,7 +60,7 @@ public final class MinFieldValueUpdateProcessorFactory extends FieldValueSubsetU try { // NOTE: the extra cast to Object is needed to prevent compile // errors on Eclipse Compiler (ecj) used for javadoc lint - result = Collections.singletonList(Collections.min(values)); + result = Collections.singletonList((Object) Collections.min(values)); } catch (ClassCastException e) { throw new SolrException (BAD_REQUEST,