[java-identity-provider] branch master updated: JSPT-79 - Review date and time handling for Java 8

Scott Cantor cantor.2 at osu.edu
Thu Mar 14 16:35:47 EDT 2019


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch master
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=e556d43561568653451bcbff45cf9e29be76673d

The following commit(s) were added to refs/heads/master by this push:
       new  e556d43   JSPT-79 - Review date and time handling for Java 8
e556d43 is described below

commit e556d43561568653451bcbff45cf9e29be76673d
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Mar 14 16:35:44 2019 -0400

    JSPT-79 - Review date and time handling for Java 8
    
    https://issues.shibboleth.net/jira/browse/JSPT-79
    
    Fixup for cacheDuration type change.
---
 .../net/shibboleth/idp/cas/service/impl/ServiceEntityDescriptor.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/idp-cas-impl/src/main/java/net/shibboleth/idp/cas/service/impl/ServiceEntityDescriptor.java b/idp-cas-impl/src/main/java/net/shibboleth/idp/cas/service/impl/ServiceEntityDescriptor.java
index ef20e6e..16b19b5 100644
--- a/idp-cas-impl/src/main/java/net/shibboleth/idp/cas/service/impl/ServiceEntityDescriptor.java
+++ b/idp-cas-impl/src/main/java/net/shibboleth/idp/cas/service/impl/ServiceEntityDescriptor.java
@@ -17,6 +17,7 @@
 
 package net.shibboleth.idp.cas.service.impl;
 
+import java.time.Duration;
 import java.time.Instant;
 import java.time.temporal.ChronoUnit;
 import java.util.Collections;
@@ -194,7 +195,7 @@ public class ServiceEntityDescriptor extends AbstractSAMLObject implements Entit
     }
 
     /** {@inheritDoc} */
-    public Long getCacheDuration() {
+    public Duration getCacheDuration() {
         return null;
     }
 
@@ -203,7 +204,7 @@ public class ServiceEntityDescriptor extends AbstractSAMLObject implements Entit
      * 
      * {@inheritDoc}
      */
-    public void setCacheDuration(final Long duration) {
+    public void setCacheDuration(final Duration duration) {
         throw new UnsupportedOperationException();
     }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list