[spring-extensions] branch master updated: JSPT-79 - Review date and time handling for Java 8
Ian Young
ian at iay.org.uk
Thu Mar 21 07:53:12 EDT 2019
This is an automated email from the git hooks/post-receive script.
iay 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=fd19cf45f23bb37d279828c0222f1bf523d7f46c
The following commit(s) were added to refs/heads/master by this push:
new fd19cf4 JSPT-79 - Review date and time handling for Java 8
fd19cf4 is described below
commit fd19cf45f23bb37d279828c0222f1bf523d7f46c
Author: Ian Young <ian at iay.org.uk>
AuthorDate: Thu Mar 21 11:53:09 2019 +0000
JSPT-79 - Review date and time handling for Java 8
Track method name change from java-support.
---
.../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 2b1c264..4c8e9bd 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 DOMTypeSupport.durationToDuration(source.trim());
+ return DOMTypeSupport.stringToDuration(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