fixed errors reported by Checkstyle

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1164912 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Herve Boutemy 2011-09-03 19:13:12 +00:00
parent 7706ee9164
commit fce3462788
3 changed files with 6 additions and 5 deletions

View File

@ -36,7 +36,7 @@ interface ModelBuildingEventCatapult
*/
void fire( ModelBuildingListener listener, ModelBuildingEvent event );
final ModelBuildingEventCatapult BUILD_EXTENSIONS_ASSEMBLED = new ModelBuildingEventCatapult()
ModelBuildingEventCatapult BUILD_EXTENSIONS_ASSEMBLED = new ModelBuildingEventCatapult()
{
public void fire( ModelBuildingListener listener, ModelBuildingEvent event )
{

View File

@ -34,7 +34,7 @@ class UrlNormalizingPostProcessor
implements InterpolationPostProcessor
{
private static final Set<String> urlExpressions;
private static final Set<String> URL_EXPRESSIONS;
static
{
@ -45,7 +45,7 @@ class UrlNormalizingPostProcessor
expressions.add( "project.scm.developerConnection" );
expressions.add( "project.distributionManagement.site.url" );
urlExpressions = expressions;
URL_EXPRESSIONS = expressions;
}
private UrlNormalizer normalizer;
@ -57,7 +57,7 @@ class UrlNormalizingPostProcessor
public Object execute( String expression, Object value )
{
if ( value != null && urlExpressions.contains( expression ) )
if ( value != null && URL_EXPRESSIONS.contains( expression ) )
{
return normalizer.normalize( value.toString() );
}

View File

@ -869,7 +869,8 @@ public class DefaultModelValidator
int idx = fieldName.lastIndexOf( '.' );
if ( idx >= 0 )
{
key = fieldName = fieldName.substring( idx + 1 );
fieldName = fieldName.substring( idx + 1 );
key = fieldName;
}
if ( fieldName.endsWith( "]" ) )