svn commit: r1863490 - /ofbiz/ofbiz-plugins/trunk/solr/src/main/java/org/apache/ofbiz/solr/SolrUtil.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1863490 - /ofbiz/ofbiz-plugins/trunk/solr/src/main/java/org/apache/ofbiz/solr/SolrUtil.java

mthl
Author: mthl
Date: Sat Jul 20 16:20:16 2019
New Revision: 1863490

URL: http://svn.apache.org/viewvc?rev=1863490&view=rev
Log:
Improved: Inline ‘UtilGenerics#checkSet’
(OFBIZ-11141)

Modified:
    ofbiz/ofbiz-plugins/trunk/solr/src/main/java/org/apache/ofbiz/solr/SolrUtil.java

Modified: ofbiz/ofbiz-plugins/trunk/solr/src/main/java/org/apache/ofbiz/solr/SolrUtil.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/solr/src/main/java/org/apache/ofbiz/solr/SolrUtil.java?rev=1863490&r1=1863489&r2=1863490&view=diff
==============================================================================
--- ofbiz/ofbiz-plugins/trunk/solr/src/main/java/org/apache/ofbiz/solr/SolrUtil.java (original)
+++ ofbiz/ofbiz-plugins/trunk/solr/src/main/java/org/apache/ofbiz/solr/SolrUtil.java Sat Jul 20 16:20:16 2019
@@ -187,7 +187,7 @@ public final class SolrUtil {
 
         // add features
         if (context.get("features") != null) {
-            Set<String> features = UtilGenerics.<String>checkSet(context.get("features"));
+            Set<String> features = UtilGenerics.cast(context.get("features"));
             Iterator<String> featIter = features.iterator();
             while (featIter.hasNext()) {
                 String feat = featIter.next();