KEYCLOAK-12206 Use diamond operator in package "org.keycloak.dom.saml.v2.assertion" from module "saml-core-api"

This commit is contained in:
Andrei Arlou 2019-11-22 23:43:20 +03:00 committed by Stian Thorgersen
parent c0ebd786e3
commit cd671177d2
11 changed files with 13 additions and 13 deletions

View File

@ -221,7 +221,7 @@ public class AssertionType extends CommonAssertionType {
}
public Set<AttributeStatementType> getAttributeStatements() {
Set<AttributeStatementType> attributeStatements = new HashSet<AttributeStatementType>();
Set<AttributeStatementType> attributeStatements = new HashSet<>();
Set<StatementAbstractType> statements = getStatements();
if (statements != null) {

View File

@ -44,7 +44,7 @@ import java.util.List;
*/
public class AttributeStatementType extends StatementAbstractType {
protected List<ASTChoiceType> attributes = new ArrayList<ASTChoiceType>();
protected List<ASTChoiceType> attributes = new ArrayList<>();
/**
* Add an attribute

View File

@ -49,11 +49,11 @@ import java.util.Map;
*/
public class AttributeType implements Serializable {
protected List<Object> attributeValue = new ArrayList<Object>();
protected List<Object> attributeValue = new ArrayList<>();
protected String name;
protected String nameFormat;
protected String friendlyName;
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
private Map<QName, String> otherAttributes = new HashMap<>();
public AttributeType(String name) {
this.name = name;

View File

@ -43,7 +43,7 @@ import java.util.List;
*/
public class AudienceRestrictionType extends ConditionAbstractType implements Serializable {
protected List<URI> audience = new ArrayList<URI>();
protected List<URI> audience = new ArrayList<>();
/**
* Add an audience

View File

@ -59,11 +59,11 @@ import java.util.Set;
*/
public class AuthnContextType implements Serializable {
private final Set<URI> authenticatingAuthority = new LinkedHashSet<URI>();
private final Set<URI> authenticatingAuthority = new LinkedHashSet<>();
private AuthnContextTypeSequence sequence;
private final Set<URIType> URITypes = new HashSet<URIType>();
private final Set<URIType> URITypes = new HashSet<>();
/**
* Add an authenticating authority

View File

@ -44,7 +44,7 @@ import java.util.List;
*/
public class AuthzDecisionStatementType extends StatementAbstractType {
protected List<ActionType> action = new ArrayList<ActionType>();
protected List<ActionType> action = new ArrayList<>();
protected EvidenceType evidence;
protected String resource;
protected DecisionType decision;

View File

@ -49,7 +49,7 @@ import java.util.List;
*/
public class ConditionsType extends CommonConditionsType implements Serializable {
protected List<ConditionAbstractType> conditions = new ArrayList<ConditionAbstractType>();
protected List<ConditionAbstractType> conditions = new ArrayList<>();
/**
* Add a condition

View File

@ -47,7 +47,7 @@ import java.util.List;
*/
public class EvidenceType implements Serializable {
protected List<ChoiceType> evidences = new ArrayList<ChoiceType>();
protected List<ChoiceType> evidences = new ArrayList<>();
/**
* Add an evidence

View File

@ -44,7 +44,7 @@ import java.util.List;
*/
public class ProxyRestrictionType extends ConditionAbstractType {
protected List<URI> audience = new ArrayList<URI>();
protected List<URI> audience = new ArrayList<>();
protected BigInteger count;

View File

@ -59,7 +59,7 @@ public class SubjectConfirmationDataType implements Serializable {
protected String address;
private final Map<QName, String> otherAttributes = new HashMap<QName, String>();
private final Map<QName, String> otherAttributes = new HashMap<>();
private Object anyType;

View File

@ -51,7 +51,7 @@ import java.util.List;
*/
public class SubjectType implements Serializable {
protected List<SubjectConfirmationType> subjectConfirmation = new ArrayList<SubjectConfirmationType>();
protected List<SubjectConfirmationType> subjectConfirmation = new ArrayList<>();
protected STSubType subType;