KEYCLOAK-12210 Use diamond operator for collections in package "org.keycloak.dom.xmlsec.w3" from module "saml-core-api"

This commit is contained in:
Andrei Arlou 2019-11-23 00:55:49 +03:00 committed by Stian Thorgersen
parent c74a081ad8
commit 677349de6c
17 changed files with 17 additions and 17 deletions

View file

@ -51,7 +51,7 @@ public class KeyInfoType {
protected String id; protected String id;
protected List<Object> contentList = new ArrayList<Object>(); protected List<Object> contentList = new ArrayList<>();
public void addContent(Object content) { public void addContent(Object content) {
this.contentList.add(content); this.contentList.add(content);

View file

@ -42,7 +42,7 @@ import java.util.List;
*/ */
public class ManifestType { public class ManifestType {
protected List<ReferenceType> reference = new ArrayList<ReferenceType>(); protected List<ReferenceType> reference = new ArrayList<>();
protected String id; protected String id;
public void addReference(ReferenceType ref) { public void addReference(ReferenceType ref) {

View file

@ -44,7 +44,7 @@ import java.util.List;
*/ */
public class ObjectType { public class ObjectType {
protected List<Object> content = new ArrayList<Object>(); protected List<Object> content = new ArrayList<>();
protected String id; protected String id;
protected String mimeType; protected String mimeType;
protected String encoding; protected String encoding;

View file

@ -49,7 +49,7 @@ import java.util.List;
*/ */
public class PGPDataType { public class PGPDataType {
protected List<Object> content = new ArrayList<Object>(); protected List<Object> content = new ArrayList<>();
public void add(Object obj) { public void add(Object obj) {
this.content.add(obj); this.content.add(obj);

View file

@ -43,7 +43,7 @@ import java.util.List;
*/ */
public class SPKIDataType { public class SPKIDataType {
protected List<Object> spkiSexpAndAny = new ArrayList<Object>(); protected List<Object> spkiSexpAndAny = new ArrayList<>();
public void addSPKI(Object obj) { public void addSPKI(Object obj) {
this.spkiSexpAndAny.add(obj); this.spkiSexpAndAny.add(obj);

View file

@ -44,7 +44,7 @@ import java.util.List;
*/ */
public class SignatureMethodType { public class SignatureMethodType {
protected List<Object> content = new ArrayList<Object>(); protected List<Object> content = new ArrayList<>();
protected String algorithm; protected String algorithm;
public void add(Object obj) { public void add(Object obj) {

View file

@ -42,7 +42,7 @@ import java.util.List;
*/ */
public class SignaturePropertiesType { public class SignaturePropertiesType {
protected List<SignaturePropertyType> signatureProperty = new ArrayList<SignaturePropertyType>(); protected List<SignaturePropertyType> signatureProperty = new ArrayList<>();
protected String id; protected String id;
public void addSignatureProperty(SignaturePropertyType sig) { public void addSignatureProperty(SignaturePropertyType sig) {

View file

@ -42,7 +42,7 @@ import java.util.List;
*/ */
public class SignaturePropertyType { public class SignaturePropertyType {
protected List<Object> content = new ArrayList<Object>(); protected List<Object> content = new ArrayList<>();
protected String target; protected String target;
protected String id; protected String id;

View file

@ -48,7 +48,7 @@ public class SignatureType {
protected SignedInfoType signedInfo; protected SignedInfoType signedInfo;
protected SignatureValueType signatureValue; protected SignatureValueType signatureValue;
protected KeyInfoType keyInfo; protected KeyInfoType keyInfo;
protected List<ObjectType> object = new ArrayList<ObjectType>(); protected List<ObjectType> object = new ArrayList<>();
protected String id; protected String id;
/** /**

View file

@ -46,7 +46,7 @@ public class SignedInfoType {
protected CanonicalizationMethodType canonicalizationMethod; protected CanonicalizationMethodType canonicalizationMethod;
protected SignatureMethodType signatureMethod; protected SignatureMethodType signatureMethod;
protected List<ReferenceType> reference = new ArrayList<ReferenceType>(); protected List<ReferenceType> reference = new ArrayList<>();
protected String id; protected String id;
/** /**

View file

@ -44,7 +44,7 @@ import java.util.List;
*/ */
public class TransformType { public class TransformType {
protected List<Object> content = new ArrayList<Object>(); protected List<Object> content = new ArrayList<>();
protected URI algorithm; protected URI algorithm;
public TransformType(URI algorithm) { public TransformType(URI algorithm) {

View file

@ -42,7 +42,7 @@ import java.util.List;
*/ */
public class TransformsType { public class TransformsType {
protected List<TransformType> transform = new ArrayList<TransformType>(); protected List<TransformType> transform = new ArrayList<>();
public void addTransformsType(TransformType tt) { public void addTransformsType(TransformType tt) {
this.transform.add(tt); this.transform.add(tt);

View file

@ -48,7 +48,7 @@ import java.util.List;
*/ */
public class X509DataType { public class X509DataType {
protected List<Object> x509IssuerSerialOrX509SKIOrX509SubjectName = new ArrayList<Object>(); protected List<Object> x509IssuerSerialOrX509SKIOrX509SubjectName = new ArrayList<>();
public void add(Object obj) { public void add(Object obj) {
this.x509IssuerSerialOrX509SKIOrX509SubjectName.add(obj); this.x509IssuerSerialOrX509SKIOrX509SubjectName.add(obj);

View file

@ -42,7 +42,7 @@ import java.util.List;
*/ */
public class EncryptionPropertiesType { public class EncryptionPropertiesType {
protected List<EncryptionPropertyType> encryptionProperty = new ArrayList<EncryptionPropertyType>(); protected List<EncryptionPropertyType> encryptionProperty = new ArrayList<>();
protected String id; protected String id;
public void addEncryptionProperty(EncryptionPropertyType enc) { public void addEncryptionProperty(EncryptionPropertyType enc) {

View file

@ -47,7 +47,7 @@ public class EncryptionPropertyType {
protected URI target; protected URI target;
protected String id; protected String id;
private Map<QName, String> otherAttributes = new HashMap<QName, String>(); private Map<QName, String> otherAttributes = new HashMap<>();
/** /**
* Gets the value of the target property. * Gets the value of the target property.

View file

@ -61,7 +61,7 @@ public class ReferenceList {
} }
} }
private List<References> referencesList = new ArrayList<References>(); private List<References> referencesList = new ArrayList<>();
public void add(References ref) { public void add(References ref) {
this.referencesList.add(ref); this.referencesList.add(ref);

View file

@ -43,7 +43,7 @@ import java.util.List;
*/ */
public class TransformsType { public class TransformsType {
protected List<TransformType> transform = new ArrayList<TransformType>(); protected List<TransformType> transform = new ArrayList<>();
public void add(TransformType tt) { public void add(TransformType tt) {
this.transform.add(tt); this.transform.add(tt);