jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1720037 - in /jmeter/trunk/src: core/org/apache/jmeter/save/CSVSaveService.java protocol/http/org/apache/jmeter/protocol/http/parser/LagartoBasedHtmlParser.java
Date Mon, 14 Dec 2015 22:55:00 GMT
Author: sebb
Date: Mon Dec 14 22:55:00 2015
New Revision: 1720037

URL: http://svn.apache.org/viewvc?rev=1720037&view=rev
Log:
Add default switch cases

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/save/CSVSaveService.java
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/parser/LagartoBasedHtmlParser.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/save/CSVSaveService.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/save/CSVSaveService.java?rev=1720037&r1=1720036&r2=1720037&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/save/CSVSaveService.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/save/CSVSaveService.java Mon Dec 14 22:55:00 2015
@@ -1095,6 +1095,8 @@ public final class CSVSaveService {
                                     + baos.toString() + "]");
                 }
                 break;
+            default:
+                throw new IllegalStateException("Unexpected state " + state);
             } // switch(state)
             if (push) {
                 if (ch == '\r') {// Remove following \n if present

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/parser/LagartoBasedHtmlParser.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/parser/LagartoBasedHtmlParser.java?rev=1720037&r1=1720036&r2=1720037&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/parser/LagartoBasedHtmlParser.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/parser/LagartoBasedHtmlParser.java
Mon Dec 14 22:55:00 2015
@@ -166,6 +166,8 @@ public class LagartoBasedHtmlParser exte
                 break;
             case END:
                 break;
+            default:
+                throw new IllegalStateException("Unexpected tagType " + tagType);
             }
         }
 



Mime
View raw message