lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject svn commit: r826732 - /lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/TemplateString.java
Date Mon, 19 Oct 2009 17:47:38 GMT
Author: shalin
Date: Mon Oct 19 17:47:38 2009
New Revision: 826732

URL: http://svn.apache.org/viewvc?rev=826732&view=rev
Log:
Instance check for java.util.Date instead of java.sql.Date

Modified:
    lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/TemplateString.java

Modified: lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/TemplateString.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/TemplateString.java?rev=826732&r1=826731&r2=826732&view=diff
==============================================================================
--- lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/TemplateString.java
(original)
+++ lucene/solr/trunk/contrib/dataimporthandler/src/main/java/org/apache/solr/handler/dataimport/TemplateString.java
Mon Oct 19 17:47:38 2009
@@ -16,11 +16,7 @@
  */
 package org.apache.solr.handler.dataimport;
 
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.concurrent.ConcurrentMap;
+import java.util.*;
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
@@ -98,8 +94,8 @@
   }
 
   private String getObjectAsString(Object val) {
-    if (val instanceof java.sql.Date) {
-      java.sql.Date d = (java.sql.Date) val;
+    if (val instanceof Date) {
+      Date d = (Date) val;
       return DataImporter.DATE_TIME_FORMAT.get().format(d);
     }
     return val.toString();



Mime
View raw message