lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r917203 - /lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java
Date Sun, 28 Feb 2010 16:59:20 GMT
Author: mikemccand
Date: Sun Feb 28 16:59:20 2010
New Revision: 917203

URL: http://svn.apache.org/viewvc?rev=917203&view=rev
Log:
LUCENE-2290: remove unnecessary string concat

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java?rev=917203&r1=917202&r2=917203&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java Sun Feb 28 16:59:20
2010
@@ -4156,9 +4156,9 @@
 
 
     Map<String,String> details = new HashMap<String,String>();
-    details.put("optimize", merge.optimize+"");
-    details.put("mergeFactor", end+"");
-    details.put("mergeDocStores", mergeDocStores+"");
+    details.put("optimize", Boolean.toString(merge.optimize));
+    details.put("mergeFactor", Integer.toString(end));
+    details.put("mergeDocStores", Boolean.toString(mergeDocStores));
     setDiagnostics(merge.info, "merge", details);
 
     // Also enroll the merged segment into mergingSegments;
@@ -4176,11 +4176,11 @@
     Map<String,String> diagnostics = new HashMap<String,String>();
     diagnostics.put("source", source);
     diagnostics.put("lucene.version", Constants.LUCENE_VERSION);
-    diagnostics.put("os", Constants.OS_NAME+"");
-    diagnostics.put("os.arch", Constants.OS_ARCH+"");
-    diagnostics.put("os.version", Constants.OS_VERSION+"");
-    diagnostics.put("java.version", Constants.JAVA_VERSION+"");
-    diagnostics.put("java.vendor", Constants.JAVA_VENDOR+"");
+    diagnostics.put("os", Constants.OS_NAME);
+    diagnostics.put("os.arch", Constants.OS_ARCH);
+    diagnostics.put("os.version", Constants.OS_VERSION);
+    diagnostics.put("java.version", Constants.JAVA_VERSION);
+    diagnostics.put("java.vendor", Constants.JAVA_VENDOR);
     if (details != null) {
       diagnostics.putAll(details);
     }



Mime
View raw message