Repository: incubator-geode Updated Branches: refs/heads/feature/GEODE-949-2 2b6df9a23 -> 5dcd68178
Add missing @Override annotations Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/5dcd6817 Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/5dcd6817 Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/5dcd6817 Branch: refs/heads/feature/GEODE-949-2 Commit: 5dcd68178ddb191f8422d2e1e7f4761c6abc91d8 Parents: 2b6df9a Author: Kirk Lund <[email protected]> Authored: Thu Mar 17 14:07:11 2016 -0700 Committer: Kirk Lund <[email protected]> Committed: Thu Mar 17 14:07:11 2016 -0700 ---------------------------------------------------------------------- .../security/generator/UserPasswordWithExtraPropsAuthInit.java | 1 + .../gemfire/security/templates/LdapUserAuthenticator.java | 3 +++ .../com/gemstone/gemfire/security/templates/PKCSAuthInit.java | 1 + .../com/gemstone/gemfire/security/templates/XmlErrorHandler.java | 3 +++ 4 files changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/5dcd6817/geode-core/src/test/java/com/gemstone/gemfire/security/generator/UserPasswordWithExtraPropsAuthInit.java ---------------------------------------------------------------------- diff --git a/geode-core/src/test/java/com/gemstone/gemfire/security/generator/UserPasswordWithExtraPropsAuthInit.java b/geode-core/src/test/java/com/gemstone/gemfire/security/generator/UserPasswordWithExtraPropsAuthInit.java index ad96440..b29f16b 100755 --- a/geode-core/src/test/java/com/gemstone/gemfire/security/generator/UserPasswordWithExtraPropsAuthInit.java +++ b/geode-core/src/test/java/com/gemstone/gemfire/security/generator/UserPasswordWithExtraPropsAuthInit.java @@ -46,6 +46,7 @@ public class UserPasswordWithExtraPropsAuthInit extends UserPasswordAuthInit { super(); } + @Override public Properties getCredentials(final Properties securityProperties, final DistributedMember server, final boolean isPeer) throws AuthenticationFailedException { final Properties securityPropertiesCopy = super.getCredentials(securityProperties, server, isPeer); final String extraProps = securityProperties.getProperty(EXTRA_PROPS); http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/5dcd6817/geode-core/src/test/java/com/gemstone/gemfire/security/templates/LdapUserAuthenticator.java ---------------------------------------------------------------------- diff --git a/geode-core/src/test/java/com/gemstone/gemfire/security/templates/LdapUserAuthenticator.java b/geode-core/src/test/java/com/gemstone/gemfire/security/templates/LdapUserAuthenticator.java index 78ff01a..fd2286e 100755 --- a/geode-core/src/test/java/com/gemstone/gemfire/security/templates/LdapUserAuthenticator.java +++ b/geode-core/src/test/java/com/gemstone/gemfire/security/templates/LdapUserAuthenticator.java @@ -50,6 +50,7 @@ public class LdapUserAuthenticator implements Authenticator { return new LdapUserAuthenticator(); } + @Override public void init(final Properties securityProps, final LogWriter systemLogWriter, final LogWriter securityLogWriter) throws AuthenticationFailedException { logger.info("Initializing LdapUserAuthenticator with {}", securityProps); @@ -71,6 +72,7 @@ public class LdapUserAuthenticator implements Authenticator { } } + @Override public Principal authenticate(final Properties credentials, final DistributedMember member) { final String userName = credentials.getProperty(UserPasswordAuthInit.USER_NAME); if (userName == null) { @@ -98,6 +100,7 @@ public class LdapUserAuthenticator implements Authenticator { return new UsernamePrincipal(userName); } + @Override public void close() { } } http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/5dcd6817/geode-core/src/test/java/com/gemstone/gemfire/security/templates/PKCSAuthInit.java ---------------------------------------------------------------------- diff --git a/geode-core/src/test/java/com/gemstone/gemfire/security/templates/PKCSAuthInit.java b/geode-core/src/test/java/com/gemstone/gemfire/security/templates/PKCSAuthInit.java index 3cae27d..a60c8fb 100755 --- a/geode-core/src/test/java/com/gemstone/gemfire/security/templates/PKCSAuthInit.java +++ b/geode-core/src/test/java/com/gemstone/gemfire/security/templates/PKCSAuthInit.java @@ -57,6 +57,7 @@ public class PKCSAuthInit implements AuthInitialize { return new PKCSAuthInit(); } + @Override public void init(final LogWriter systemLogWriter, final LogWriter securityLogWriter) throws AuthenticationFailedException { this.systemLogWriter = systemLogWriter; this.securityLogWriter = securityLogWriter; http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/5dcd6817/geode-core/src/test/java/com/gemstone/gemfire/security/templates/XmlErrorHandler.java ---------------------------------------------------------------------- diff --git a/geode-core/src/test/java/com/gemstone/gemfire/security/templates/XmlErrorHandler.java b/geode-core/src/test/java/com/gemstone/gemfire/security/templates/XmlErrorHandler.java index 6abb4a0..19d10c6 100755 --- a/geode-core/src/test/java/com/gemstone/gemfire/security/templates/XmlErrorHandler.java +++ b/geode-core/src/test/java/com/gemstone/gemfire/security/templates/XmlErrorHandler.java @@ -49,6 +49,7 @@ public class XmlErrorHandler implements ErrorHandler { * Throws back the exception with the name of the XML file and the position * where the exception occurred. */ + @Override public void error(final SAXParseException exception) throws SAXException { throw new SAXParseException("Error while parsing XML at line " + exception.getLineNumber() + " column " + exception.getColumnNumber() + ": " + exception.getMessage(), null, exception); } @@ -57,6 +58,7 @@ public class XmlErrorHandler implements ErrorHandler { * Throws back the exception with the name of the XML file and the position * where the exception occurred. */ + @Override public void fatalError(final SAXParseException exception) throws SAXException { throw new SAXParseException("Fatal error while parsing XML at line " + exception.getLineNumber() + " column " + exception.getColumnNumber() + ": " + exception.getMessage(), null, exception); } @@ -65,6 +67,7 @@ public class XmlErrorHandler implements ErrorHandler { * Log the exception at {@link LogWriter#warning(String)} level with XML * filename and the position of exception in the file. */ + @Override public void warning(final SAXParseException exception) throws SAXException { this.systemLogWriter.warning("Warning while parsing XML [" + this.xmlFileName + "] at line " + exception.getLineNumber() + " column " + exception.getColumnNumber() + ": " + exception.getMessage(), exception); }
