commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1080715 - /commons/proper/net/trunk/src/test/java/org/apache/commons/net/SubnetUtilsTest.java
Date Fri, 11 Mar 2011 18:30:36 GMT
Author: sebb
Date: Fri Mar 11 18:30:36 2011
New Revision: 1080715

URL: http://svn.apache.org/viewvc?rev=1080715&view=rev
Log:
Remove unused variable

Modified:
    commons/proper/net/trunk/src/test/java/org/apache/commons/net/SubnetUtilsTest.java

Modified: commons/proper/net/trunk/src/test/java/org/apache/commons/net/SubnetUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/src/test/java/org/apache/commons/net/SubnetUtilsTest.java?rev=1080715&r1=1080714&r2=1080715&view=diff
==============================================================================
--- commons/proper/net/trunk/src/test/java/org/apache/commons/net/SubnetUtilsTest.java (original)
+++ commons/proper/net/trunk/src/test/java/org/apache/commons/net/SubnetUtilsTest.java Fri
Mar 11 18:30:36 2011
@@ -61,8 +61,7 @@ public class SubnetUtilsTest extends Tes
 
     public void testZeroNetmaskBits() {
         try {
-            @SuppressWarnings("unused")
-            SubnetUtils utils = new SubnetUtils("192.168.0.1/0");
+            new SubnetUtils("192.168.0.1/0");
             fail("Mask /0 should have generated an IllegalArgumentException");
         }
         catch (IllegalArgumentException expected) {



Mime
View raw message