Add missing @Override annotations

This commit is contained in:
Robert Scholte 2015-01-10 18:00:57 +01:00
parent bb4988496a
commit 05686a8260
11 changed files with 41 additions and 0 deletions

View File

@ -83,6 +83,7 @@ public class DefaultSettingsBuilder
return this; return this;
} }
@Override
public SettingsBuildingResult build( SettingsBuildingRequest request ) public SettingsBuildingResult build( SettingsBuildingRequest request )
throws SettingsBuildingException throws SettingsBuildingException
{ {
@ -232,6 +233,7 @@ public class DefaultSettingsBuilder
interpolator.addPostProcessor( new InterpolationPostProcessor() interpolator.addPostProcessor( new InterpolationPostProcessor()
{ {
@Override
public Object execute( String expression, Object value ) public Object execute( String expression, Object value )
{ {
if ( value != null ) if ( value != null )

View File

@ -43,11 +43,13 @@ public class DefaultSettingsBuildingRequest
private Properties userProperties; private Properties userProperties;
@Override
public File getGlobalSettingsFile() public File getGlobalSettingsFile()
{ {
return globalSettingsFile; return globalSettingsFile;
} }
@Override
public DefaultSettingsBuildingRequest setGlobalSettingsFile( File globalSettingsFile ) public DefaultSettingsBuildingRequest setGlobalSettingsFile( File globalSettingsFile )
{ {
this.globalSettingsFile = globalSettingsFile; this.globalSettingsFile = globalSettingsFile;
@ -55,11 +57,13 @@ public class DefaultSettingsBuildingRequest
return this; return this;
} }
@Override
public SettingsSource getGlobalSettingsSource() public SettingsSource getGlobalSettingsSource()
{ {
return globalSettingsSource; return globalSettingsSource;
} }
@Override
public DefaultSettingsBuildingRequest setGlobalSettingsSource( SettingsSource globalSettingsSource ) public DefaultSettingsBuildingRequest setGlobalSettingsSource( SettingsSource globalSettingsSource )
{ {
this.globalSettingsSource = globalSettingsSource; this.globalSettingsSource = globalSettingsSource;
@ -67,11 +71,13 @@ public class DefaultSettingsBuildingRequest
return this; return this;
} }
@Override
public File getUserSettingsFile() public File getUserSettingsFile()
{ {
return userSettingsFile; return userSettingsFile;
} }
@Override
public DefaultSettingsBuildingRequest setUserSettingsFile( File userSettingsFile ) public DefaultSettingsBuildingRequest setUserSettingsFile( File userSettingsFile )
{ {
this.userSettingsFile = userSettingsFile; this.userSettingsFile = userSettingsFile;
@ -79,11 +85,13 @@ public class DefaultSettingsBuildingRequest
return this; return this;
} }
@Override
public SettingsSource getUserSettingsSource() public SettingsSource getUserSettingsSource()
{ {
return userSettingsSource; return userSettingsSource;
} }
@Override
public DefaultSettingsBuildingRequest setUserSettingsSource( SettingsSource userSettingsSource ) public DefaultSettingsBuildingRequest setUserSettingsSource( SettingsSource userSettingsSource )
{ {
this.userSettingsSource = userSettingsSource; this.userSettingsSource = userSettingsSource;
@ -91,6 +99,7 @@ public class DefaultSettingsBuildingRequest
return this; return this;
} }
@Override
public Properties getSystemProperties() public Properties getSystemProperties()
{ {
if ( systemProperties == null ) if ( systemProperties == null )
@ -101,6 +110,7 @@ public class DefaultSettingsBuildingRequest
return systemProperties; return systemProperties;
} }
@Override
public DefaultSettingsBuildingRequest setSystemProperties( Properties systemProperties ) public DefaultSettingsBuildingRequest setSystemProperties( Properties systemProperties )
{ {
if ( systemProperties != null ) if ( systemProperties != null )
@ -120,6 +130,7 @@ public class DefaultSettingsBuildingRequest
return this; return this;
} }
@Override
public Properties getUserProperties() public Properties getUserProperties()
{ {
if ( userProperties == null ) if ( userProperties == null )
@ -130,6 +141,7 @@ public class DefaultSettingsBuildingRequest
return userProperties; return userProperties;
} }
@Override
public DefaultSettingsBuildingRequest setUserProperties( Properties userProperties ) public DefaultSettingsBuildingRequest setUserProperties( Properties userProperties )
{ {
if ( userProperties != null ) if ( userProperties != null )

View File

@ -43,11 +43,13 @@ class DefaultSettingsBuildingResult
this.problems = ( problems != null ) ? problems : new ArrayList<SettingsProblem>(); this.problems = ( problems != null ) ? problems : new ArrayList<SettingsProblem>();
} }
@Override
public Settings getEffectiveSettings() public Settings getEffectiveSettings()
{ {
return effectiveSettings; return effectiveSettings;
} }
@Override
public List<SettingsProblem> getProblems() public List<SettingsProblem> getProblems()
{ {
return problems; return problems;

View File

@ -64,21 +64,25 @@ public class DefaultSettingsProblem
this.exception = exception; this.exception = exception;
} }
@Override
public String getSource() public String getSource()
{ {
return source; return source;
} }
@Override
public int getLineNumber() public int getLineNumber()
{ {
return lineNumber; return lineNumber;
} }
@Override
public int getColumnNumber() public int getColumnNumber()
{ {
return columnNumber; return columnNumber;
} }
@Override
public String getLocation() public String getLocation()
{ {
StringBuilder buffer = new StringBuilder( 256 ); StringBuilder buffer = new StringBuilder( 256 );
@ -113,11 +117,13 @@ public class DefaultSettingsProblem
return buffer.toString(); return buffer.toString();
} }
@Override
public Exception getException() public Exception getException()
{ {
return exception; return exception;
} }
@Override
public String getMessage() public String getMessage()
{ {
String msg; String msg;
@ -139,6 +145,7 @@ public class DefaultSettingsProblem
return msg; return msg;
} }
@Override
public Severity getSeverity() public Severity getSeverity()
{ {
return severity; return severity;

View File

@ -52,6 +52,7 @@ class DefaultSettingsProblemCollector
this.source = source; this.source = source;
} }
@Override
public void add( SettingsProblem.Severity severity, String message, int line, int column, Exception cause ) public void add( SettingsProblem.Severity severity, String message, int line, int column, Exception cause )
{ {
if ( line <= 0 && column <= 0 && ( cause instanceof SettingsParseException ) ) if ( line <= 0 && column <= 0 && ( cause instanceof SettingsParseException ) )

View File

@ -45,6 +45,7 @@ public class DefaultSettingsDecrypter
@Requirement( hint = "maven" ) @Requirement( hint = "maven" )
private SecDispatcher securityDispatcher; private SecDispatcher securityDispatcher;
@Override
public SettingsDecryptionResult decrypt( SettingsDecryptionRequest request ) public SettingsDecryptionResult decrypt( SettingsDecryptionRequest request )
{ {
List<SettingsProblem> problems = new ArrayList<SettingsProblem>(); List<SettingsProblem> problems = new ArrayList<SettingsProblem>();

View File

@ -79,6 +79,7 @@ public class DefaultSettingsDecryptionRequest
this.proxies = new ArrayList<Proxy>( Arrays.asList( proxy ) ); this.proxies = new ArrayList<Proxy>( Arrays.asList( proxy ) );
} }
@Override
public List<Server> getServers() public List<Server> getServers()
{ {
if ( servers == null ) if ( servers == null )
@ -89,6 +90,7 @@ public class DefaultSettingsDecryptionRequest
return servers; return servers;
} }
@Override
public DefaultSettingsDecryptionRequest setServers( List<Server> servers ) public DefaultSettingsDecryptionRequest setServers( List<Server> servers )
{ {
this.servers = servers; this.servers = servers;
@ -96,6 +98,7 @@ public class DefaultSettingsDecryptionRequest
return this; return this;
} }
@Override
public List<Proxy> getProxies() public List<Proxy> getProxies()
{ {
if ( proxies == null ) if ( proxies == null )
@ -106,6 +109,7 @@ public class DefaultSettingsDecryptionRequest
return proxies; return proxies;
} }
@Override
public DefaultSettingsDecryptionRequest setProxies( List<Proxy> proxies ) public DefaultSettingsDecryptionRequest setProxies( List<Proxy> proxies )
{ {
this.proxies = proxies; this.proxies = proxies;

View File

@ -48,26 +48,31 @@ class DefaultSettingsDecryptionResult
this.problems = ( problems != null ) ? problems : new ArrayList<SettingsProblem>(); this.problems = ( problems != null ) ? problems : new ArrayList<SettingsProblem>();
} }
@Override
public Server getServer() public Server getServer()
{ {
return servers.isEmpty() ? null : servers.get( 0 ); return servers.isEmpty() ? null : servers.get( 0 );
} }
@Override
public List<Server> getServers() public List<Server> getServers()
{ {
return servers; return servers;
} }
@Override
public Proxy getProxy() public Proxy getProxy()
{ {
return proxies.isEmpty() ? null : proxies.get( 0 ); return proxies.isEmpty() ? null : proxies.get( 0 );
} }
@Override
public List<Proxy> getProxies() public List<Proxy> getProxies()
{ {
return proxies; return proxies;
} }
@Override
public List<SettingsProblem> getProblems() public List<SettingsProblem> getProblems()
{ {
return problems; return problems;

View File

@ -42,6 +42,7 @@ public class DefaultSettingsReader
implements SettingsReader implements SettingsReader
{ {
@Override
public Settings read( File input, Map<String, ?> options ) public Settings read( File input, Map<String, ?> options )
throws IOException throws IOException
{ {
@ -55,6 +56,7 @@ public class DefaultSettingsReader
return settings; return settings;
} }
@Override
public Settings read( Reader input, Map<String, ?> options ) public Settings read( Reader input, Map<String, ?> options )
throws IOException throws IOException
{ {
@ -78,6 +80,7 @@ public class DefaultSettingsReader
} }
} }
@Override
public Settings read( InputStream input, Map<String, ?> options ) public Settings read( InputStream input, Map<String, ?> options )
throws IOException throws IOException
{ {

View File

@ -42,6 +42,7 @@ public class DefaultSettingsWriter
implements SettingsWriter implements SettingsWriter
{ {
@Override
public void write( File output, Map<String, Object> options, Settings settings ) public void write( File output, Map<String, Object> options, Settings settings )
throws IOException throws IOException
{ {
@ -60,6 +61,7 @@ public class DefaultSettingsWriter
write( WriterFactory.newXmlWriter( output ), options, settings ); write( WriterFactory.newXmlWriter( output ), options, settings );
} }
@Override
public void write( Writer output, Map<String, Object> options, Settings settings ) public void write( Writer output, Map<String, Object> options, Settings settings )
throws IOException throws IOException
{ {
@ -84,6 +86,7 @@ public class DefaultSettingsWriter
} }
} }
@Override
public void write( OutputStream output, Map<String, Object> options, Settings settings ) public void write( OutputStream output, Map<String, Object> options, Settings settings )
throws IOException throws IOException
{ {

View File

@ -47,6 +47,7 @@ public class DefaultSettingsValidator
private static final String ILLEGAL_REPO_ID_CHARS = ILLEGAL_FS_CHARS; private static final String ILLEGAL_REPO_ID_CHARS = ILLEGAL_FS_CHARS;
@Override
public void validate( Settings settings, SettingsProblemCollector problems ) public void validate( Settings settings, SettingsProblemCollector problems )
{ {
if ( settings.isUsePluginRegistry() ) if ( settings.isUsePluginRegistry() )