[spring-extensions] branch master updated: Convert off of deprecated method.
Scott Cantor
cantor.2 at osu.edu
Wed Mar 20 15:11:25 EDT 2019
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository spring-extensions.
View the commit online:
http://git.shibboleth.net/view/?p=spring-extensions.git;a=commit;h=81745f318e6dc9a511eb9cafacd9ea7ac4b53856
The following commit(s) were added to refs/heads/master by this push:
new 81745f3 Convert off of deprecated method.
81745f3 is described below
commit 81745f318e6dc9a511eb9cafacd9ea7ac4b53856
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Mar 20 15:11:22 2019 -0400
Convert off of deprecated method.
---
.../net/shibboleth/ext/spring/config/StringToDurationConverter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/net/shibboleth/ext/spring/config/StringToDurationConverter.java b/src/main/java/net/shibboleth/ext/spring/config/StringToDurationConverter.java
index 85e6d62..2b1c264 100644
--- a/src/main/java/net/shibboleth/ext/spring/config/StringToDurationConverter.java
+++ b/src/main/java/net/shibboleth/ext/spring/config/StringToDurationConverter.java
@@ -31,7 +31,7 @@ public class StringToDurationConverter implements Converter<String,Duration> {
/** {@inheritDoc} */
public Duration convert(final String source) {
if (source.startsWith("P") || source.startsWith("-P")) {
- return Duration.ofMillis(DOMTypeSupport.durationToLong(source.trim()));
+ return DOMTypeSupport.durationToDuration(source.trim());
} else {
// Treat as milliseconds.
return Duration.ofMillis(Long.valueOf(source));
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list