onami-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1418797 - /incubator/onami/trunk/configuration/src/main/java/org/apache/onami/configuration/variables/VariablesMap.java
Date Sun, 09 Dec 2012 00:42:04 GMT
Author: simonetripodi
Date: Sun Dec  9 00:42:03 2012
New Revision: 1418797

URL: http://svn.apache.org/viewvc?rev=1418797&view=rev
Log:
always check the used parser is not null

Modified:
    incubator/onami/trunk/configuration/src/main/java/org/apache/onami/configuration/variables/VariablesMap.java

Modified: incubator/onami/trunk/configuration/src/main/java/org/apache/onami/configuration/variables/VariablesMap.java
URL: http://svn.apache.org/viewvc/incubator/onami/trunk/configuration/src/main/java/org/apache/onami/configuration/variables/VariablesMap.java?rev=1418797&r1=1418796&r2=1418797&view=diff
==============================================================================
--- incubator/onami/trunk/configuration/src/main/java/org/apache/onami/configuration/variables/VariablesMap.java
(original)
+++ incubator/onami/trunk/configuration/src/main/java/org/apache/onami/configuration/variables/VariablesMap.java
Sun Dec  9 00:42:03 2012
@@ -19,6 +19,8 @@ package org.apache.onami.configuration.v
  * under the License.
  */
 
+import static com.google.inject.internal.util.$Preconditions.checkArgument;
+
 import java.util.Collection;
 import java.util.HashMap;
 import java.util.Map;
@@ -45,6 +47,7 @@ public final class VariablesMap implemen
 
     public VariablesMap( Parser parser )
     {
+        checkArgument( parser != null, "Parser used to resolve input variables cannot be
null." );
         this.parser = parser;
     }
 



Mime
View raw message