jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1381348 - in /jmeter/trunk/src/reports/org/apache/jmeter/gui: ReportMainFrame.java util/ReportFileDialoger.java
Date Wed, 05 Sep 2012 20:31:54 GMT
Author: pmouawad
Date: Wed Sep  5 20:31:54 2012
New Revision: 1381348

URL: http://svn.apache.org/viewvc?rev=1381348&view=rev
Log:
use indexOf(char)
remove unused import

Modified:
    jmeter/trunk/src/reports/org/apache/jmeter/gui/ReportMainFrame.java
    jmeter/trunk/src/reports/org/apache/jmeter/gui/util/ReportFileDialoger.java

Modified: jmeter/trunk/src/reports/org/apache/jmeter/gui/ReportMainFrame.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/reports/org/apache/jmeter/gui/ReportMainFrame.java?rev=1381348&r1=1381347&r2=1381348&view=diff
==============================================================================
--- jmeter/trunk/src/reports/org/apache/jmeter/gui/ReportMainFrame.java (original)
+++ jmeter/trunk/src/reports/org/apache/jmeter/gui/ReportMainFrame.java Wed Sep  5 20:31:54
2012
@@ -24,7 +24,6 @@ import java.awt.Dimension;
 import java.awt.Font;
 import java.awt.Insets;
 import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
 import java.awt.event.WindowAdapter;
 import java.awt.event.WindowEvent;
 
@@ -298,7 +297,7 @@ public class ReportMainFrame extends JFr
 
         // allow for windows / chars in filename
         String temp = fname.replace('\\', '/'); // $NON-NLS-1$ // $NON-NLS-2$
-        String simpleName = temp.substring(temp.lastIndexOf("/") + 1);// $NON-NLS-1$
+        String simpleName = temp.substring(temp.lastIndexOf('/') + 1);// $NON-NLS-1$
         setTitle(simpleName + " (" + fname + ") - " + DEFAULT_TITLE); // $NON-NLS-1$ // $NON-NLS-2$
     }
 

Modified: jmeter/trunk/src/reports/org/apache/jmeter/gui/util/ReportFileDialoger.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/reports/org/apache/jmeter/gui/util/ReportFileDialoger.java?rev=1381348&r1=1381347&r2=1381348&view=diff
==============================================================================
--- jmeter/trunk/src/reports/org/apache/jmeter/gui/util/ReportFileDialoger.java (original)
+++ jmeter/trunk/src/reports/org/apache/jmeter/gui/util/ReportFileDialoger.java Wed Sep  5
20:31:54 2012
@@ -119,7 +119,7 @@ public final class ReportFileDialoger {
         if (filename != null) {
             jfc.setSelectedFile(new File(lastJFCDirectory, filename));
             int i = -1;
-            if ((i = filename.lastIndexOf(".")) > -1) {
+            if ((i = filename.lastIndexOf('.')) > -1) {
                 ext = filename.substring(i);
             }
         }



Mime
View raw message