incubator-nmaven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r658956 - /incubator/nmaven/trunk/components/maven-dotnet-toolchain/src/main/java/org/apache/maven/dotnet/toolchain/DotnetToolchain.java
Date Thu, 22 May 2008 00:35:33 GMT
Author: sisbell
Date: Wed May 21 17:35:32 2008
New Revision: 658956

URL: http://svn.apache.org/viewvc?rev=658956&view=rev
Log:
Removed use of method only supported on jdk 1.6.

Modified:
    incubator/nmaven/trunk/components/maven-dotnet-toolchain/src/main/java/org/apache/maven/dotnet/toolchain/DotnetToolchain.java

Modified: incubator/nmaven/trunk/components/maven-dotnet-toolchain/src/main/java/org/apache/maven/dotnet/toolchain/DotnetToolchain.java
URL: http://svn.apache.org/viewvc/incubator/nmaven/trunk/components/maven-dotnet-toolchain/src/main/java/org/apache/maven/dotnet/toolchain/DotnetToolchain.java?rev=658956&r1=658955&r2=658956&view=diff
==============================================================================
--- incubator/nmaven/trunk/components/maven-dotnet-toolchain/src/main/java/org/apache/maven/dotnet/toolchain/DotnetToolchain.java
(original)
+++ incubator/nmaven/trunk/components/maven-dotnet-toolchain/src/main/java/org/apache/maven/dotnet/toolchain/DotnetToolchain.java
Wed May 21 17:35:32 2008
@@ -9,7 +9,6 @@
 
 import java.util.List;
 import java.util.Arrays;
-import java.io.File;
 
 public final class DotnetToolchain
     extends DefaultToolchain
@@ -61,7 +60,7 @@
 
     public String findTool( String toolName )
     {
-        if ( toolName == null || toolName.isEmpty() )
+        if ( toolName == null || toolName.trim().length() == 0 )
         {
             throw new IllegalArgumentException( "toolName" );
         }



Mime
View raw message