KEYCLOAK-12204 Use diamond operator for collections in packages "common" and "v1" from module "saml-core-api"

This commit is contained in:
Andrei Arlou 2019-11-22 22:23:34 +03:00 committed by Stian Thorgersen
parent ca46c7f718
commit de307847ff
16 changed files with 18 additions and 18 deletions

View file

@ -29,7 +29,7 @@ import java.util.List;
*/
public class CommonAdviceType implements Serializable {
protected List<Object> advices = new ArrayList<Object>();
protected List<Object> advices = new ArrayList<>();
/**
* Add an advice

View file

@ -42,7 +42,7 @@ import java.util.List;
*/
public class CommonStatusDetailType implements Serializable {
protected List<Object> any = new ArrayList<Object>();
protected List<Object> any = new ArrayList<>();
/**
* Add status detail

View file

@ -53,7 +53,7 @@ public class SAML11AssertionType extends CommonAssertionType {
protected SAML11AdviceType advice;
protected List<SAML11StatementAbstractType> statements = new ArrayList<SAML11StatementAbstractType>();
protected List<SAML11StatementAbstractType> statements = new ArrayList<>();
protected Element signature;

View file

@ -32,7 +32,7 @@ import java.util.List;
*/
public class SAML11AttributeStatementType extends SAML11SubjectStatementType {
protected List<SAML11AttributeType> attribute = new ArrayList<SAML11AttributeType>();
protected List<SAML11AttributeType> attribute = new ArrayList<>();
public void add(SAML11AttributeType aAttribute) {
this.attribute.add(aAttribute);

View file

@ -33,7 +33,7 @@ import java.util.List;
*/
public class SAML11AttributeType extends SAML11AttributeDesignatorType {
protected List<Object> attributeValues = new ArrayList<Object>();
protected List<Object> attributeValues = new ArrayList<>();
public SAML11AttributeType(String attributeName, URI attributeNamespace) {
super(attributeName, attributeNamespace);

View file

@ -32,7 +32,7 @@ import java.util.List;
*/
public class SAML11AudienceRestrictionCondition extends SAML11ConditionAbstractType {
protected List<URI> audience = new ArrayList<URI>();
protected List<URI> audience = new ArrayList<>();
public void add(URI advice) {
this.audience.add(advice);

View file

@ -40,7 +40,7 @@ public class SAML11AuthenticationStatementType extends SAML11SubjectStatementTyp
protected SAML11SubjectLocalityType subjectLocality;
protected List<SAML11AuthorityBindingType> authorityBinding = new ArrayList<SAML11AuthorityBindingType>();
protected List<SAML11AuthorityBindingType> authorityBinding = new ArrayList<>();
public SAML11AuthenticationStatementType(URI authenticationMethod, XMLGregorianCalendar authenticationInstant) {
this.authenticationMethod = authenticationMethod;

View file

@ -35,7 +35,7 @@ import java.util.List;
*/
public class SAML11AuthorizationDecisionStatementType extends SAML11SubjectStatementType {
protected List<SAML11ActionType> actions = new ArrayList<SAML11ActionType>();
protected List<SAML11ActionType> actions = new ArrayList<>();
protected SAML11EvidenceType evidence;

View file

@ -35,7 +35,7 @@ import java.util.List;
*/
public class SAML11ConditionsType extends CommonConditionsType {
public List<SAML11ConditionAbstractType> conditions = new ArrayList<SAML11ConditionAbstractType>();
public List<SAML11ConditionAbstractType> conditions = new ArrayList<>();
public void add(SAML11ConditionAbstractType condition) {
this.conditions.add(condition);

View file

@ -30,9 +30,9 @@ import java.util.List;
*/
public class SAML11EvidenceType {
protected List<String> assertionIDReference = new ArrayList<String>();
protected List<String> assertionIDReference = new ArrayList<>();
protected List<SAML11AssertionType> assertions = new ArrayList<SAML11AssertionType>();
protected List<SAML11AssertionType> assertions = new ArrayList<>();
public void add(String condition) {
this.assertionIDReference.add(condition);

View file

@ -35,7 +35,7 @@ import java.util.List;
*/
public class SAML11SubjectConfirmationType {
protected List<URI> confirmationMethod = new ArrayList<URI>();
protected List<URI> confirmationMethod = new ArrayList<>();
protected Object subjectConfirmationData;

View file

@ -35,7 +35,7 @@ import java.util.List;
*/
public class SAML11AttributeQueryType extends SAML11SubjectQueryAbstractType {
protected List<SAML11AttributeDesignatorType> attributeDesignator = new ArrayList<SAML11AttributeDesignatorType>();
protected List<SAML11AttributeDesignatorType> attributeDesignator = new ArrayList<>();
protected URI resource;

View file

@ -38,7 +38,7 @@ import java.util.List;
*/
public class SAML11AuthorizationDecisionQueryType extends SAML11SubjectQueryAbstractType {
protected List<SAML11ActionType> action = new ArrayList<SAML11ActionType>();
protected List<SAML11ActionType> action = new ArrayList<>();
protected SAML11EvidenceType evidence;

View file

@ -42,7 +42,7 @@ public abstract class SAML11RequestAbstractType extends CommonRequestAbstractTyp
protected int minorVersion = 1;
protected List<QName> respondWith = new ArrayList<QName>();
protected List<QName> respondWith = new ArrayList<>();
public SAML11RequestAbstractType(String id, XMLGregorianCalendar issueInstant) {
super(id, issueInstant);

View file

@ -37,9 +37,9 @@ public class SAML11RequestType extends SAML11RequestAbstractType {
protected SAML11QueryAbstractType query;
protected List<String> assertionIDRef = new ArrayList<String>();
protected List<String> assertionIDRef = new ArrayList<>();
protected List<String> assertionArtifact = new ArrayList<String>();
protected List<String> assertionArtifact = new ArrayList<>();
public SAML11RequestType(String id, XMLGregorianCalendar issueInstant) {
super(id, issueInstant);

View file

@ -34,7 +34,7 @@ import java.util.List;
*/
public class SAML11ResponseType extends SAML11ResponseAbstractType {
protected List<SAML11AssertionType> assertions = new ArrayList<SAML11AssertionType>();
protected List<SAML11AssertionType> assertions = new ArrayList<>();
protected SAML11StatusType status;