jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1851411 - /jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/HtmlTemplateExporter.java
Date Tue, 15 Jan 2019 21:03:00 GMT
Author: pmouawad
Date: Tue Jan 15 21:02:59 2019
New Revision: 1851411

URL: http://svn.apache.org/viewvc?rev=1851411&view=rev
Log:
Fix Sonar warnings :
Move the "index.html" string literal on the left side of this string comparison.
Move the "content" string literal on the left side of this string comparison.

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/HtmlTemplateExporter.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/HtmlTemplateExporter.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/HtmlTemplateExporter.java?rev=1851411&r1=1851410&r2=1851411&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/HtmlTemplateExporter.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/report/dashboard/HtmlTemplateExporter.java Tue
Jan 15 21:02:59 2019
@@ -63,9 +63,9 @@ public class HtmlTemplateExporter extend
     private static final FileFilter HTML_REPORT_FILE_FILTER = 
         file -> 
             (file.isFile() && 
-                        file.getName().equals("index.html"))
+                    "index.html".equals(file.getName()))
                     || (file.isDirectory() && 
-                            (file.getName().equals("content") ||
+                            ("content".equals(file.getName()) ||
                                     file.getName().startsWith("sbadmin2-")));
     private static final String CUSTOM_GRAPH_PREFIX = "custom_";
 



Mime
View raw message