MPLUGIN-89: Restore compat with Java 1.4

Submitted by: Benjamin Bentmann
Reviewed by: Vincent Siveton

o applied

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@634962 13f79535-47bb-0310-9956-ffa450edef68
master
Vincent Siveton 2008-03-08 13:42:09 +00:00
parent d0a37aaa1c
commit aaf7f10e1c
2 changed files with 3 additions and 3 deletions

View File

@ -183,7 +183,7 @@ public final class PluginUtils
}
catch ( DependencyResolutionRequiredException e )
{
throw new IllegalArgumentException( e );
throw (RuntimeException) new IllegalArgumentException().initCause( e );
}
List urls = new ArrayList( classPathStrings.size() );
@ -195,7 +195,7 @@ public final class PluginUtils
}
catch ( MalformedURLException e )
{
throw new IllegalArgumentException( e );
throw (RuntimeException) new IllegalArgumentException().initCause( e );
}
}

View File

@ -195,7 +195,7 @@ public abstract class AbstractMojoTaglet
}
String name = token2.nextToken();
String value = token2.nextToken().replace( "\"", "" );
String value = token2.nextToken().replaceAll( "\"", "" );
if ( getAllowedParameterNames() != null && !Arrays.asList( getAllowedParameterNames() ).contains( name ) )
{