maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r407575 - /maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/command/status/StatusScmResult.java
Date Thu, 18 May 2006 15:49:19 GMT
Author: evenisse
Date: Thu May 18 08:49:18 2006
New Revision: 407575

URL: http://svn.apache.org/viewvc?rev=407575&view=rev
Log:
Remove assert so it's more easy to test code coverage with clover

Modified:
    maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/command/status/StatusScmResult.java

Modified: maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/command/status/StatusScmResult.java
URL: http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/command/status/StatusScmResult.java?rev=407575&r1=407574&r2=407575&view=diff
==============================================================================
--- maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/command/status/StatusScmResult.java
(original)
+++ maven/scm/trunk/maven-scm-api/src/main/java/org/apache/maven/scm/command/status/StatusScmResult.java
Thu May 18 08:49:18 2006
@@ -41,7 +41,10 @@
     {
         super( commandLine, null, null, true );
 
-        assert changedFiles != null;
+        if ( changedFiles == null )
+        {
+            throw new NullPointerException( "changedFiles can't be null." );
+        }
 
         this.changedFiles = changedFiles;
     }
@@ -50,7 +53,10 @@
     {
         super( result );
 
-        assert changedFiles != null;
+        if ( changedFiles == null )
+        {
+            throw new NullPointerException( "changedFiles can't be null." );
+        }
 
         this.changedFiles = changedFiles;
     }



Mime
View raw message