manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1453860 - /manifoldcf/trunk/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java
Date Thu, 07 Mar 2013 13:38:26 GMT
Author: kwright
Date: Thu Mar  7 13:38:25 2013
New Revision: 1453860

URL: http://svn.apache.org/r1453860
Log:
Add @Override when disabling retries

Modified:
    manifoldcf/trunk/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java

Modified: manifoldcf/trunk/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java?rev=1453860&r1=1453859&r2=1453860&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java
(original)
+++ manifoldcf/trunk/connectors/solr/connector/src/main/java/org/apache/manifoldcf/agents/output/solr/HttpPoster.java
Thu Mar  7 13:38:25 2013
@@ -239,13 +239,14 @@ public class HttpPoster
     // No retries
     localClient.setHttpRequestRetryHandler(new HttpRequestRetryHandler()
       {
-	public boolean retryRequest(
-	  IOException exception,
-	  int executionCount,
+        @Override
+        public boolean retryRequest(
+          IOException exception,
+          int executionCount,
           HttpContext context)
-	{
-	  return false;
-	}
+        {
+          return false;
+        }
      
       });
     
@@ -980,8 +981,7 @@ public class HttpPoster
 
   protected static String convertToISO(Date date)
   {
-    java.text.DateFormat df = new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'");
-    df.setTimeZone(TimeZone.getTimeZone("GMT"));
+    java.text.DateFormat df = new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mmZ");
     return df.format(date);
   }
   



Mime
View raw message