jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1720034 - /jmeter/trunk/src/monitor/components/org/apache/jmeter/visualizers/ServerPanel.java
Date Mon, 14 Dec 2015 22:48:41 GMT
Author: sebb
Date: Mon Dec 14 22:48:40 2015
New Revision: 1720034

URL: http://svn.apache.org/viewvc?rev=1720034&view=rev
Log:
Provide default switch case

Modified:
    jmeter/trunk/src/monitor/components/org/apache/jmeter/visualizers/ServerPanel.java

Modified: jmeter/trunk/src/monitor/components/org/apache/jmeter/visualizers/ServerPanel.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/monitor/components/org/apache/jmeter/visualizers/ServerPanel.java?rev=1720034&r1=1720033&r2=1720034&view=diff
==============================================================================
--- jmeter/trunk/src/monitor/components/org/apache/jmeter/visualizers/ServerPanel.java (original)
+++ jmeter/trunk/src/monitor/components/org/apache/jmeter/visualizers/ServerPanel.java Mon
Dec 14 22:48:40 2015
@@ -147,6 +147,9 @@ public class ServerPanel extends JPanel
         case Stats.DEAD:
             i = DEAD;
             break;
+        default:
+            // better than returning null ...
+            throw new IllegalStateException("Unexpected health value: " + health);
         }
         return i;
     }



Mime
View raw message