mirror of https://github.com/apache/maven.git
Add missing @Override annotations
This commit is contained in:
parent
bb4988496a
commit
05686a8260
|
@ -83,6 +83,7 @@ public class DefaultSettingsBuilder
|
|||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SettingsBuildingResult build( SettingsBuildingRequest request )
|
||||
throws SettingsBuildingException
|
||||
{
|
||||
|
@ -232,6 +233,7 @@ public class DefaultSettingsBuilder
|
|||
|
||||
interpolator.addPostProcessor( new InterpolationPostProcessor()
|
||||
{
|
||||
@Override
|
||||
public Object execute( String expression, Object value )
|
||||
{
|
||||
if ( value != null )
|
||||
|
|
|
@ -43,11 +43,13 @@ public class DefaultSettingsBuildingRequest
|
|||
|
||||
private Properties userProperties;
|
||||
|
||||
@Override
|
||||
public File getGlobalSettingsFile()
|
||||
{
|
||||
return globalSettingsFile;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DefaultSettingsBuildingRequest setGlobalSettingsFile( File globalSettingsFile )
|
||||
{
|
||||
this.globalSettingsFile = globalSettingsFile;
|
||||
|
@ -55,11 +57,13 @@ public class DefaultSettingsBuildingRequest
|
|||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SettingsSource getGlobalSettingsSource()
|
||||
{
|
||||
return globalSettingsSource;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DefaultSettingsBuildingRequest setGlobalSettingsSource( SettingsSource globalSettingsSource )
|
||||
{
|
||||
this.globalSettingsSource = globalSettingsSource;
|
||||
|
@ -67,11 +71,13 @@ public class DefaultSettingsBuildingRequest
|
|||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public File getUserSettingsFile()
|
||||
{
|
||||
return userSettingsFile;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DefaultSettingsBuildingRequest setUserSettingsFile( File userSettingsFile )
|
||||
{
|
||||
this.userSettingsFile = userSettingsFile;
|
||||
|
@ -79,11 +85,13 @@ public class DefaultSettingsBuildingRequest
|
|||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SettingsSource getUserSettingsSource()
|
||||
{
|
||||
return userSettingsSource;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DefaultSettingsBuildingRequest setUserSettingsSource( SettingsSource userSettingsSource )
|
||||
{
|
||||
this.userSettingsSource = userSettingsSource;
|
||||
|
@ -91,6 +99,7 @@ public class DefaultSettingsBuildingRequest
|
|||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Properties getSystemProperties()
|
||||
{
|
||||
if ( systemProperties == null )
|
||||
|
@ -101,6 +110,7 @@ public class DefaultSettingsBuildingRequest
|
|||
return systemProperties;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DefaultSettingsBuildingRequest setSystemProperties( Properties systemProperties )
|
||||
{
|
||||
if ( systemProperties != null )
|
||||
|
@ -120,6 +130,7 @@ public class DefaultSettingsBuildingRequest
|
|||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Properties getUserProperties()
|
||||
{
|
||||
if ( userProperties == null )
|
||||
|
@ -130,6 +141,7 @@ public class DefaultSettingsBuildingRequest
|
|||
return userProperties;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DefaultSettingsBuildingRequest setUserProperties( Properties userProperties )
|
||||
{
|
||||
if ( userProperties != null )
|
||||
|
|
|
@ -43,11 +43,13 @@ class DefaultSettingsBuildingResult
|
|||
this.problems = ( problems != null ) ? problems : new ArrayList<SettingsProblem>();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Settings getEffectiveSettings()
|
||||
{
|
||||
return effectiveSettings;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SettingsProblem> getProblems()
|
||||
{
|
||||
return problems;
|
||||
|
|
|
@ -64,21 +64,25 @@ public class DefaultSettingsProblem
|
|||
this.exception = exception;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSource()
|
||||
{
|
||||
return source;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getLineNumber()
|
||||
{
|
||||
return lineNumber;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getColumnNumber()
|
||||
{
|
||||
return columnNumber;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getLocation()
|
||||
{
|
||||
StringBuilder buffer = new StringBuilder( 256 );
|
||||
|
@ -113,11 +117,13 @@ public class DefaultSettingsProblem
|
|||
return buffer.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Exception getException()
|
||||
{
|
||||
return exception;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getMessage()
|
||||
{
|
||||
String msg;
|
||||
|
@ -139,6 +145,7 @@ public class DefaultSettingsProblem
|
|||
return msg;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Severity getSeverity()
|
||||
{
|
||||
return severity;
|
||||
|
|
|
@ -52,6 +52,7 @@ class DefaultSettingsProblemCollector
|
|||
this.source = source;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void add( SettingsProblem.Severity severity, String message, int line, int column, Exception cause )
|
||||
{
|
||||
if ( line <= 0 && column <= 0 && ( cause instanceof SettingsParseException ) )
|
||||
|
|
|
@ -45,6 +45,7 @@ public class DefaultSettingsDecrypter
|
|||
@Requirement( hint = "maven" )
|
||||
private SecDispatcher securityDispatcher;
|
||||
|
||||
@Override
|
||||
public SettingsDecryptionResult decrypt( SettingsDecryptionRequest request )
|
||||
{
|
||||
List<SettingsProblem> problems = new ArrayList<SettingsProblem>();
|
||||
|
|
|
@ -79,6 +79,7 @@ public class DefaultSettingsDecryptionRequest
|
|||
this.proxies = new ArrayList<Proxy>( Arrays.asList( proxy ) );
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Server> getServers()
|
||||
{
|
||||
if ( servers == null )
|
||||
|
@ -89,6 +90,7 @@ public class DefaultSettingsDecryptionRequest
|
|||
return servers;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DefaultSettingsDecryptionRequest setServers( List<Server> servers )
|
||||
{
|
||||
this.servers = servers;
|
||||
|
@ -96,6 +98,7 @@ public class DefaultSettingsDecryptionRequest
|
|||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Proxy> getProxies()
|
||||
{
|
||||
if ( proxies == null )
|
||||
|
@ -106,6 +109,7 @@ public class DefaultSettingsDecryptionRequest
|
|||
return proxies;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DefaultSettingsDecryptionRequest setProxies( List<Proxy> proxies )
|
||||
{
|
||||
this.proxies = proxies;
|
||||
|
|
|
@ -48,26 +48,31 @@ class DefaultSettingsDecryptionResult
|
|||
this.problems = ( problems != null ) ? problems : new ArrayList<SettingsProblem>();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Server getServer()
|
||||
{
|
||||
return servers.isEmpty() ? null : servers.get( 0 );
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Server> getServers()
|
||||
{
|
||||
return servers;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Proxy getProxy()
|
||||
{
|
||||
return proxies.isEmpty() ? null : proxies.get( 0 );
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Proxy> getProxies()
|
||||
{
|
||||
return proxies;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SettingsProblem> getProblems()
|
||||
{
|
||||
return problems;
|
||||
|
|
|
@ -42,6 +42,7 @@ public class DefaultSettingsReader
|
|||
implements SettingsReader
|
||||
{
|
||||
|
||||
@Override
|
||||
public Settings read( File input, Map<String, ?> options )
|
||||
throws IOException
|
||||
{
|
||||
|
@ -55,6 +56,7 @@ public class DefaultSettingsReader
|
|||
return settings;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Settings read( Reader input, Map<String, ?> options )
|
||||
throws IOException
|
||||
{
|
||||
|
@ -78,6 +80,7 @@ public class DefaultSettingsReader
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Settings read( InputStream input, Map<String, ?> options )
|
||||
throws IOException
|
||||
{
|
||||
|
|
|
@ -42,6 +42,7 @@ public class DefaultSettingsWriter
|
|||
implements SettingsWriter
|
||||
{
|
||||
|
||||
@Override
|
||||
public void write( File output, Map<String, Object> options, Settings settings )
|
||||
throws IOException
|
||||
{
|
||||
|
@ -60,6 +61,7 @@ public class DefaultSettingsWriter
|
|||
write( WriterFactory.newXmlWriter( output ), options, settings );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write( Writer output, Map<String, Object> options, Settings settings )
|
||||
throws IOException
|
||||
{
|
||||
|
@ -84,6 +86,7 @@ public class DefaultSettingsWriter
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write( OutputStream output, Map<String, Object> options, Settings settings )
|
||||
throws IOException
|
||||
{
|
||||
|
|
|
@ -47,6 +47,7 @@ public class DefaultSettingsValidator
|
|||
|
||||
private static final String ILLEGAL_REPO_ID_CHARS = ILLEGAL_FS_CHARS;
|
||||
|
||||
@Override
|
||||
public void validate( Settings settings, SettingsProblemCollector problems )
|
||||
{
|
||||
if ( settings.isUsePluginRegistry() )
|
||||
|
|
Loading…
Reference in New Issue