[java-identity-provider COMMIT] /trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/TestSources.java
noreply at shibboleth.net
noreply at shibboleth.net
Sun Jan 18 14:39:15 EST 2015
Author: scantor
Date: Sun Jan 18 14:39:15 2015
New Revision: 7258
URL: http://svn.shibboleth.net/view/java-identity-provider?rev=7258&view=rev
Log:
Fix warnings.
Modified:
trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/TestSources.java
Modified: trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/TestSources.java
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/TestSources.java?rev=7258&r1=7257&r2=7258&view=diff
==============================================================================
--- trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/TestSources.java (original)
+++ trunk/idp-saml-impl/src/test/java/net/shibboleth/idp/saml/impl/TestSources.java Sun Jan 18 14:39:15 2015
@@ -133,7 +133,7 @@
IdPAttribute attr;
Set<IdPAttribute> attributeSet;
- attributeSet = new LazySet<IdPAttribute>();
+ attributeSet = new LazySet<>();
attr = new IdPAttribute(DEPENDS_ON_ATTRIBUTE_NAME_CONNECTOR);
attr.setValues(Arrays.asList(new StringAttributeValue(COMMON_ATTRIBUTE_VALUE_STRING),
@@ -287,8 +287,8 @@
return;
}
- final Map<String, IdPAttribute> map = new HashMap<String, IdPAttribute>(newValues.size());
- for (IdPAttribute attr : newValues) {
+ final Map<String,IdPAttribute> map = new HashMap<>(newValues.size());
+ for (final IdPAttribute attr : newValues) {
if (null == attr) {
continue;
}
More information about the commits
mailing list