[java-opensaml] 01/02: CheckStyle: new Long(foo) become Long.valueOf(foo)
Rod Widdowson
rdw at steadingsoftware.com
Tue Feb 12 11:56:58 EST 2019
This is an automated email from the git hooks/post-receive script.
rdw pushed a commit to branch master
in repository java-opensaml.
View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=cab6e496db2ef738abb2de64af3349d4d811ca51
commit cab6e496db2ef738abb2de64af3349d4d811ca51
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Tue Feb 12 16:41:17 2019 +0000
CheckStyle: new Long(foo) become Long.valueOf(foo)
---
.../saml/saml2/metadata/impl/EntitiesDescriptorUnmarshaller.java | 2 +-
.../org/opensaml/saml/saml2/metadata/impl/EntitiesDescriptorTest.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opensaml-saml-impl/src/main/java/org/opensaml/saml/saml2/metadata/impl/EntitiesDescriptorUnmarshaller.java b/opensaml-saml-impl/src/main/java/org/opensaml/saml/saml2/metadata/impl/EntitiesDescriptorUnmarshaller.java
index 33ae690..8c001ce 100644
--- a/opensaml-saml-impl/src/main/java/org/opensaml/saml/saml2/metadata/impl/EntitiesDescriptorUnmarshaller.java
+++ b/opensaml-saml-impl/src/main/java/org/opensaml/saml/saml2/metadata/impl/EntitiesDescriptorUnmarshaller.java
@@ -69,7 +69,7 @@ public class EntitiesDescriptorUnmarshaller extends AbstractSAMLObjectUnmarshall
&& !Strings.isNullOrEmpty(attribute.getValue())) {
entitiesDescriptor.setValidUntil(new DateTime(attribute.getValue(), ISOChronology.getInstanceUTC()));
} else if (attribute.getLocalName().equals(CacheableSAMLObject.CACHE_DURATION_ATTRIB_NAME)) {
- entitiesDescriptor.setCacheDuration(new Long(DOMTypeSupport.durationToLong(attribute.getValue())));
+ entitiesDescriptor.setCacheDuration(Long.valueOf(DOMTypeSupport.durationToLong(attribute.getValue())));
} else if (attribute.getLocalName().equals(EntitiesDescriptor.NAME_ATTRIB_NAME)) {
entitiesDescriptor.setName(attribute.getValue());
} else {
diff --git a/opensaml-saml-impl/src/test/java/org/opensaml/saml/saml2/metadata/impl/EntitiesDescriptorTest.java b/opensaml-saml-impl/src/test/java/org/opensaml/saml/saml2/metadata/impl/EntitiesDescriptorTest.java
index 70f17dd..ea9c370 100644
--- a/opensaml-saml-impl/src/test/java/org/opensaml/saml/saml2/metadata/impl/EntitiesDescriptorTest.java
+++ b/opensaml-saml-impl/src/test/java/org/opensaml/saml/saml2/metadata/impl/EntitiesDescriptorTest.java
@@ -143,7 +143,7 @@ public class EntitiesDescriptorTest extends XMLObjectProviderBaseTestCase {
entitiesDescriptor.setName(expectedName);
entitiesDescriptor.setID(expectedID);
- entitiesDescriptor.setCacheDuration(new Long(expectedCacheDuration));
+ entitiesDescriptor.setCacheDuration(Long.valueOf(expectedCacheDuration));
entitiesDescriptor.setValidUntil(expectedValidUntil);
assertXMLEquals(expectedOptionalAttributesDOM, entitiesDescriptor);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list