commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r983711 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Validate.java
Date Mon, 09 Aug 2010 16:22:56 GMT
Author: mbenson
Date: Mon Aug  9 16:22:55 2010
New Revision: 983711

URL: http://svn.apache.org/viewvc?rev=983711&view=rev
Log:
throw IllegalStateException as documented from validState()

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Validate.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Validate.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Validate.java?rev=983711&r1=983710&r2=983711&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Validate.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Validate.java Mon Aug
 9 16:22:55 2010
@@ -765,7 +765,7 @@ public class Validate {
      */
     public static void validState(boolean expression) {
         if (expression == false) {
-            throw new IllegalArgumentException(DEFAULT_VALID_STATE_EX_MESSAGE);
+            throw new IllegalStateException(DEFAULT_VALID_STATE_EX_MESSAGE);
         }
     }
 



Mime
View raw message