Skip to content

Commit

Permalink
KEYCLOAK-12211 Use diamond operator for collections in package "org.k…
Browse files Browse the repository at this point in the history
…eycloak.dom.saml.v2.protocol" from module "saml-core-api"
  • Loading branch information
Captain1653 authored and stianst committed Nov 26, 2019
1 parent 71e51b5 commit a33957b
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
*/
public class AssertionIDRequestType extends RequestAbstractType {

protected List<String> assertionIDRef = new ArrayList<String>();
protected List<String> assertionIDRef = new ArrayList<>();

public AssertionIDRequestType(String id, XMLGregorianCalendar instant) {
super(id, instant);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
*/
public class AttributeQueryType extends SubjectQueryAbstractType {

protected List<AttributeType> attribute = new ArrayList<AttributeType>();
protected List<AttributeType> attribute = new ArrayList<>();

public AttributeQueryType(String id, XMLGregorianCalendar instant) {
super(id, instant);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
*/
public class AuthzDecisionQueryType extends SubjectQueryAbstractType {

protected List<ActionType> action = new ArrayList<ActionType>();
protected List<ActionType> action = new ArrayList<>();

protected EvidenceType evidence;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
*/
public class ExtensionsType {

protected List<Object> any = new ArrayList<Object>();
protected List<Object> any = new ArrayList<>();

/**
* Add an extension
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
*/
public class IDPListType {

protected List<IDPEntryType> idpEntry = new ArrayList<IDPEntryType>();
protected List<IDPEntryType> idpEntry = new ArrayList<>();
protected URI getComplete;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class LogoutRequestType extends RequestAbstractType {

protected EncryptedElementType encryptedID;

protected List<String> sessionIndex = new ArrayList<String>();
protected List<String> sessionIndex = new ArrayList<>();

protected String reason;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
*/
public class RequestedAuthnContextType {

protected List<String> authnContextClassRef = new ArrayList<String>();
protected List<String> authnContextDeclRef = new ArrayList<String>();
protected List<String> authnContextClassRef = new ArrayList<>();
protected List<String> authnContextDeclRef = new ArrayList<>();
protected AuthnContextComparisonType comparison;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
*/
public class ResponseType extends StatusResponseType {

protected List<RTChoiceType> assertions = new ArrayList<ResponseType.RTChoiceType>();
protected List<RTChoiceType> assertions = new ArrayList<>();

public ResponseType(String id, XMLGregorianCalendar issueInstant) {
super(id, issueInstant);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
public class ScopingType {

protected IDPListType idpList;
protected List<URI> requesterID = new ArrayList<URI>();
protected List<URI> requesterID = new ArrayList<>();

protected BigInteger proxyCount;

Expand Down

0 comments on commit a33957b

Please sign in to comment.