From 71e51b55dfce4258df59be3e0b1479ee2ed85b8b Mon Sep 17 00:00:00 2001 From: Andrei Arlou Date: Fri, 22 Nov 2019 23:29:44 +0300 Subject: [PATCH] KEYCLOAK-12205 Use diamond operator in package "org.keycloak.dom.saml.v2.ac" from module "saml-core-api" --- .../java/org/keycloak/dom/saml/v2/ac/ActivationPinType.java | 2 +- .../java/org/keycloak/dom/saml/v2/ac/AuthenticatorBaseType.java | 2 +- .../dom/saml/v2/ac/AuthenticatorTransportProtocolType.java | 2 +- .../dom/saml/v2/ac/AuthnContextDeclarationBaseType.java | 2 +- .../java/org/keycloak/dom/saml/v2/ac/AuthnMethodBaseType.java | 2 +- .../org/keycloak/dom/saml/v2/ac/ComplexAuthenticatorType.java | 2 +- .../java/org/keycloak/dom/saml/v2/ac/ExtensionOnlyType.java | 2 +- .../main/java/org/keycloak/dom/saml/v2/ac/ExtensionType.java | 2 +- .../org/keycloak/dom/saml/v2/ac/GoverningAgreementsType.java | 2 +- .../java/org/keycloak/dom/saml/v2/ac/IdentificationType.java | 2 +- .../java/org/keycloak/dom/saml/v2/ac/KeyActivationType.java | 2 +- .../org/keycloak/dom/saml/v2/ac/OperationalProtectionType.java | 2 +- .../src/main/java/org/keycloak/dom/saml/v2/ac/PasswordType.java | 2 +- .../dom/saml/v2/ac/PrincipalAuthenticationMechanismType.java | 2 +- .../org/keycloak/dom/saml/v2/ac/PrivateKeyProtectionType.java | 2 +- .../main/java/org/keycloak/dom/saml/v2/ac/PublicKeyType.java | 2 +- .../org/keycloak/dom/saml/v2/ac/SecretKeyProtectionType.java | 2 +- .../java/org/keycloak/dom/saml/v2/ac/SecurityAuditType.java | 2 +- .../dom/saml/v2/ac/SharedSecretChallengeResponseType.java | 2 +- .../keycloak/dom/saml/v2/ac/TechnicalProtectionBaseType.java | 2 +- .../src/main/java/org/keycloak/dom/saml/v2/ac/TokenType.java | 2 +- .../org/keycloak/dom/saml/v2/ac/classes/ExtensionListType.java | 2 +- .../dom/saml/v2/ac/classes/GoverningAgreementsType.java | 2 +- .../org/keycloak/dom/saml/v2/ac/classes/ObjectListType.java | 2 +- 24 files changed, 24 insertions(+), 24 deletions(-) diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/ActivationPinType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/ActivationPinType.java index e752d80556..1559106a94 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/ActivationPinType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/ActivationPinType.java @@ -163,7 +163,7 @@ public class ActivationPinType { */ public List getExtension() { if (extension == null) { - extension = new ArrayList(); + extension = new ArrayList<>(); } return this.extension; } diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/AuthenticatorBaseType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/AuthenticatorBaseType.java index 7f327125fd..7c0b5bbb03 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/AuthenticatorBaseType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/AuthenticatorBaseType.java @@ -123,7 +123,7 @@ public class AuthenticatorBaseType { */ public List> getContent() { if (content == null) { - content = new ArrayList>(); + content = new ArrayList<>(); } return this.content; } diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/AuthenticatorTransportProtocolType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/AuthenticatorTransportProtocolType.java index bf5c89efc4..b95583b3c9 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/AuthenticatorTransportProtocolType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/AuthenticatorTransportProtocolType.java @@ -292,7 +292,7 @@ public class AuthenticatorTransportProtocolType { */ public List getExtension() { if (extension == null) { - extension = new ArrayList(); + extension = new ArrayList<>(); } return this.extension; } diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/AuthnContextDeclarationBaseType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/AuthnContextDeclarationBaseType.java index 0685a938a6..ca270eacf4 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/AuthnContextDeclarationBaseType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/AuthnContextDeclarationBaseType.java @@ -196,7 +196,7 @@ public class AuthnContextDeclarationBaseType { */ public List getExtension() { if (extension == null) { - extension = new ArrayList(); + extension = new ArrayList<>(); } return this.extension; } diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/AuthnMethodBaseType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/AuthnMethodBaseType.java index 144a0e20fb..da75f024ac 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/AuthnMethodBaseType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/AuthnMethodBaseType.java @@ -143,7 +143,7 @@ public class AuthnMethodBaseType { */ public List getExtension() { if (extension == null) { - extension = new ArrayList(); + extension = new ArrayList<>(); } return this.extension; } diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/ComplexAuthenticatorType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/ComplexAuthenticatorType.java index d4cf0243b0..f0a8ee46b1 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/ComplexAuthenticatorType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/ComplexAuthenticatorType.java @@ -124,7 +124,7 @@ public class ComplexAuthenticatorType { */ public List> getContent() { if (content == null) { - content = new ArrayList>(); + content = new ArrayList<>(); } return this.content; } diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/ExtensionOnlyType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/ExtensionOnlyType.java index a64d52a9ed..a641e9d4c7 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/ExtensionOnlyType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/ExtensionOnlyType.java @@ -79,7 +79,7 @@ public class ExtensionOnlyType { */ public List getExtension() { if (extension == null) { - extension = new ArrayList(); + extension = new ArrayList<>(); } return this.extension; } diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/ExtensionType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/ExtensionType.java index eeee36bf7b..4a3fe7d326 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/ExtensionType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/ExtensionType.java @@ -80,7 +80,7 @@ public class ExtensionType { */ public List getAny() { if (any == null) { - any = new ArrayList(); + any = new ArrayList<>(); } return this.any; } diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/GoverningAgreementsType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/GoverningAgreementsType.java index e46bde0d7f..b631e4e310 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/GoverningAgreementsType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/GoverningAgreementsType.java @@ -79,7 +79,7 @@ public class GoverningAgreementsType { */ public List getGoverningAgreementRef() { if (governingAgreementRef == null) { - governingAgreementRef = new ArrayList(); + governingAgreementRef = new ArrayList<>(); } return this.governingAgreementRef; } diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/IdentificationType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/IdentificationType.java index d0898dd851..37cb829fd3 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/IdentificationType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/IdentificationType.java @@ -147,7 +147,7 @@ public class IdentificationType { */ public List getExtension() { if (extension == null) { - extension = new ArrayList(); + extension = new ArrayList<>(); } return this.extension; } diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/KeyActivationType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/KeyActivationType.java index 6c999c2957..6ae49fb6a8 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/KeyActivationType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/KeyActivationType.java @@ -100,7 +100,7 @@ public class KeyActivationType { */ public List getExtension() { if (extension == null) { - extension = new ArrayList(); + extension = new ArrayList<>(); } return this.extension; } diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/OperationalProtectionType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/OperationalProtectionType.java index 6cf304fb08..903d0b0757 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/OperationalProtectionType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/OperationalProtectionType.java @@ -121,7 +121,7 @@ public class OperationalProtectionType { */ public List getExtension() { if (extension == null) { - extension = new ArrayList(); + extension = new ArrayList<>(); } return this.extension; } diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/PasswordType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/PasswordType.java index 2b72c466d4..f2158bd3b3 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/PasswordType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/PasswordType.java @@ -150,7 +150,7 @@ public class PasswordType { */ public List getExtension() { if (extension == null) { - extension = new ArrayList(); + extension = new ArrayList<>(); } return this.extension; } diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/PrincipalAuthenticationMechanismType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/PrincipalAuthenticationMechanismType.java index e3b9057797..c6c512b7b4 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/PrincipalAuthenticationMechanismType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/PrincipalAuthenticationMechanismType.java @@ -190,7 +190,7 @@ public class PrincipalAuthenticationMechanismType { */ public List getExtension() { if (extension == null) { - extension = new ArrayList(); + extension = new ArrayList<>(); } return this.extension; } diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/PrivateKeyProtectionType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/PrivateKeyProtectionType.java index ee13827ea2..b0451457da 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/PrivateKeyProtectionType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/PrivateKeyProtectionType.java @@ -142,7 +142,7 @@ public class PrivateKeyProtectionType { */ public List getExtension() { if (extension == null) { - extension = new ArrayList(); + extension = new ArrayList<>(); } return this.extension; } diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/PublicKeyType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/PublicKeyType.java index 11956fe7a7..ad41ad1ea0 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/PublicKeyType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/PublicKeyType.java @@ -85,7 +85,7 @@ public class PublicKeyType { */ public List getExtension() { if (extension == null) { - extension = new ArrayList(); + extension = new ArrayList<>(); } return this.extension; } diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/SecretKeyProtectionType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/SecretKeyProtectionType.java index 5273b97ab9..bd60a013aa 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/SecretKeyProtectionType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/SecretKeyProtectionType.java @@ -121,7 +121,7 @@ public class SecretKeyProtectionType { */ public List getExtension() { if (extension == null) { - extension = new ArrayList(); + extension = new ArrayList<>(); } return this.extension; } diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/SecurityAuditType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/SecurityAuditType.java index 79f29bf27d..63f8d2d106 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/SecurityAuditType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/SecurityAuditType.java @@ -100,7 +100,7 @@ public class SecurityAuditType { */ public List getExtension() { if (extension == null) { - extension = new ArrayList(); + extension = new ArrayList<>(); } return this.extension; } diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/SharedSecretChallengeResponseType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/SharedSecretChallengeResponseType.java index 0a3a3a965a..f6ed356592 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/SharedSecretChallengeResponseType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/SharedSecretChallengeResponseType.java @@ -90,7 +90,7 @@ public class SharedSecretChallengeResponseType { */ public List getExtension() { if (extension == null) { - extension = new ArrayList(); + extension = new ArrayList<>(); } return this.extension; } diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/TechnicalProtectionBaseType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/TechnicalProtectionBaseType.java index 4f8bf8f912..e74986f0b4 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/TechnicalProtectionBaseType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/TechnicalProtectionBaseType.java @@ -123,7 +123,7 @@ public class TechnicalProtectionBaseType { */ public List getExtension() { if (extension == null) { - extension = new ArrayList(); + extension = new ArrayList<>(); } return this.extension; } diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/TokenType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/TokenType.java index be5f05504c..efb8dab69d 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/TokenType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/TokenType.java @@ -100,7 +100,7 @@ public class TokenType { */ public List getExtension() { if (extension == null) { - extension = new ArrayList(); + extension = new ArrayList<>(); } return this.extension; } diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/classes/ExtensionListType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/classes/ExtensionListType.java index 2c3416e171..343680d456 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/classes/ExtensionListType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/classes/ExtensionListType.java @@ -28,7 +28,7 @@ import java.util.List; */ public class ExtensionListType { - protected List content = new ArrayList(); + protected List content = new ArrayList<>(); public void add(ExtensionType obj) { this.content.add(obj); diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/classes/GoverningAgreementsType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/classes/GoverningAgreementsType.java index 0ed48e5c81..4325791ade 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/classes/GoverningAgreementsType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/classes/GoverningAgreementsType.java @@ -43,7 +43,7 @@ import java.util.List; */ public class GoverningAgreementsType { - protected List governingAgreementRef = new ArrayList(); + protected List governingAgreementRef = new ArrayList<>(); public void add(GoverningAgreementRefType gov) { this.governingAgreementRef.add(gov); diff --git a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/classes/ObjectListType.java b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/classes/ObjectListType.java index 1169f050f9..77e36a88b6 100755 --- a/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/classes/ObjectListType.java +++ b/saml-core-api/src/main/java/org/keycloak/dom/saml/v2/ac/classes/ObjectListType.java @@ -28,7 +28,7 @@ import java.util.List; */ public class ObjectListType { - protected List content = new ArrayList(); + protected List content = new ArrayList<>(); public void add(Object obj) { this.content.add(obj);