You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2012/03/17 11:39:13 UTC
svn commit: r1301912 - in /lucene/dev/branches/branch_3x: ./ lucene/ solr/
solr/core/
solr/core/src/java/org/apache/solr/update/processor/URLClassifyProcessor.java
Author: janhoy
Date: Sat Mar 17 10:39:13 2012
New Revision: 1301912
URL: http://svn.apache.org/viewvc?rev=1301912&view=rev
Log:
SOLR-2826: Remove some dead code
Modified:
lucene/dev/branches/branch_3x/ (props changed)
lucene/dev/branches/branch_3x/lucene/ (props changed)
lucene/dev/branches/branch_3x/solr/ (props changed)
lucene/dev/branches/branch_3x/solr/core/ (props changed)
lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/update/processor/URLClassifyProcessor.java
Modified: lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/update/processor/URLClassifyProcessor.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/update/processor/URLClassifyProcessor.java?rev=1301912&r1=1301911&r2=1301912&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/update/processor/URLClassifyProcessor.java (original)
+++ lucene/dev/branches/branch_3x/solr/core/src/java/org/apache/solr/update/processor/URLClassifyProcessor.java Sat Mar 17 10:39:13 2012
@@ -21,8 +21,6 @@ import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
-import java.util.HashSet;
-
import org.apache.solr.common.SolrInputDocument;
import org.apache.solr.common.params.SolrParams;
import org.apache.solr.request.SolrQueryRequest;
@@ -38,7 +36,7 @@ import org.slf4j.LoggerFactory;
* a canonical representation of the URL (e.g. stripping index.html), the domain
* and path parts of the URL etc.
* <p>
- * This processor is intended used in connection with processing web resuources,
+ * This processor is intended used in connection with processing web resources,
* and helping to produce values which may be used for boosting or filtering later.
*/
public class URLClassifyProcessor extends UpdateRequestProcessor {
@@ -64,7 +62,7 @@ public class URLClassifyProcessor extend
private String landingpageFieldname = DEFAULT_LANDINGPAGE_FIELDNAME;
private String domainFieldname = null;
private String canonicalUrlFieldname = null;
- private String[] landingPageSuffixes = {
+ private static final String[] landingPageSuffixes = {
"/",
"index.html",
"index.htm",
@@ -90,10 +88,6 @@ public class URLClassifyProcessor extend
UpdateRequestProcessor nextProcessor) {
super(nextProcessor);
- HashSet<String> landingPageSuffixesSet = new HashSet<String>();
- for(String s : landingPageSuffixes) {
- landingPageSuffixesSet.add(s);
- }
this.initParameters(parameters);
}