KEYCLOAK-12202 Remove unnecessary modificators for enums and interfaces in module "saml-core"

This commit is contained in:
Andrei Arlou 2019-11-22 21:37:50 +03:00 committed by Stian Thorgersen
parent fac9733108
commit 5f50c2951a
7 changed files with 15 additions and 15 deletions

View file

@ -64,7 +64,7 @@ public class SAMLParser extends AbstractParser {
// Since we have to support JDK 7, no lambdas are available // Since we have to support JDK 7, no lambdas are available
private interface ParserFactory { private interface ParserFactory {
public StaxParser create(); StaxParser create();
} }
private static final Map<QName, ParserFactory> PARSERS = new HashMap<>(); private static final Map<QName, ParserFactory> PARSERS = new HashMap<>();

View file

@ -95,15 +95,15 @@ public enum SAMLAssertionQNames implements HasQName {
private final QName qName; private final QName qName;
private SAMLAssertionQNames(String localName) { SAMLAssertionQNames(String localName) {
this(JBossSAMLURIConstants.ASSERTION_NSURI, localName); this(JBossSAMLURIConstants.ASSERTION_NSURI, localName);
} }
private SAMLAssertionQNames(HasQName source) { SAMLAssertionQNames(HasQName source) {
this.qName = source.getQName(); this.qName = source.getQName();
} }
private SAMLAssertionQNames(JBossSAMLURIConstants nsUri, String localName) { SAMLAssertionQNames(JBossSAMLURIConstants nsUri, String localName) {
this.qName = new QName(nsUri == null ? null : nsUri.get(), localName); this.qName = new QName(nsUri == null ? null : nsUri.get(), localName);
} }

View file

@ -90,15 +90,15 @@ public enum SAMLMetadataQNames implements HasQName {
private final QName qName; private final QName qName;
private SAMLMetadataQNames(String localName) { SAMLMetadataQNames(String localName) {
this.qName = new QName(JBossSAMLURIConstants.METADATA_NSURI.get(), localName); this.qName = new QName(JBossSAMLURIConstants.METADATA_NSURI.get(), localName);
} }
private SAMLMetadataQNames(HasQName source) { SAMLMetadataQNames(HasQName source) {
this.qName = source.getQName(); this.qName = source.getQName();
} }
private SAMLMetadataQNames(JBossSAMLURIConstants nsUri, String localName) { SAMLMetadataQNames(JBossSAMLURIConstants nsUri, String localName) {
this.qName = new QName(nsUri == null ? null : nsUri.get(), localName); this.qName = new QName(nsUri == null ? null : nsUri.get(), localName);
} }

View file

@ -102,15 +102,15 @@ public enum SAMLProtocolQNames implements HasQName {
private final QName qName; private final QName qName;
private SAMLProtocolQNames(String localName) { SAMLProtocolQNames(String localName) {
this(JBossSAMLURIConstants.PROTOCOL_NSURI, localName); this(JBossSAMLURIConstants.PROTOCOL_NSURI, localName);
} }
private SAMLProtocolQNames(HasQName source) { SAMLProtocolQNames(HasQName source) {
this.qName = source.getQName(); this.qName = source.getQName();
} }
private SAMLProtocolQNames(JBossSAMLURIConstants nsUri, String localName) { SAMLProtocolQNames(JBossSAMLURIConstants nsUri, String localName) {
this.qName = new QName(nsUri == null ? null : nsUri.get(), localName); this.qName = new QName(nsUri == null ? null : nsUri.get(), localName);
} }

View file

@ -77,15 +77,15 @@ public enum XmlDSigQNames implements HasQName {
private final QName qName; private final QName qName;
private XmlDSigQNames(String localName) { XmlDSigQNames(String localName) {
this(JBossSAMLURIConstants.XMLDSIG_NSURI, localName); this(JBossSAMLURIConstants.XMLDSIG_NSURI, localName);
} }
private XmlDSigQNames(HasQName source) { XmlDSigQNames(HasQName source) {
this.qName = source.getQName(); this.qName = source.getQName();
} }
private XmlDSigQNames(JBossSAMLURIConstants nsUri, String localName) { XmlDSigQNames(JBossSAMLURIConstants nsUri, String localName) {
this.qName = new QName(nsUri == null ? null : nsUri.get(), localName); this.qName = new QName(nsUri == null ? null : nsUri.get(), localName);
} }

View file

@ -134,7 +134,7 @@ public enum X500SAMLProfileConstants {
lookup.put(s.friendlyName, s.uri); lookup.put(s.friendlyName, s.uri);
} }
private X500SAMLProfileConstants(String friendlyName, String uristr) { X500SAMLProfileConstants(String friendlyName, String uristr) {
this.uri = uristr; this.uri = uristr;
this.friendlyName = friendlyName; this.friendlyName = friendlyName;
} }

View file

@ -41,7 +41,7 @@ public class ConditionsValidator {
private static final Logger LOG = Logger.getLogger(ConditionsValidator.class); private static final Logger LOG = Logger.getLogger(ConditionsValidator.class);
public static enum Result { public enum Result {
VALID { @Override public Result joinResult(Result otherResult) { return otherResult; } }, VALID { @Override public Result joinResult(Result otherResult) { return otherResult; } },
INDETERMINATE { @Override public Result joinResult(Result otherResult) { return otherResult == INVALID ? INVALID : INDETERMINATE; } }, INDETERMINATE { @Override public Result joinResult(Result otherResult) { return otherResult == INVALID ? INVALID : INDETERMINATE; } },
INVALID { @Override public Result joinResult(Result otherResult) { return INVALID; } }; INVALID { @Override public Result joinResult(Result otherResult) { return INVALID; } };