[spring-extensions] branch master updated: IDP-1004 Add @Duration to appropriate methods

Rod Widdowson rdw at steadingsoftware.com
Sun Jul 10 09:13:03 EDT 2016


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

rdw 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=58f4563cf98d654c4e4cab0f73fce1a327f506ac

The following commit(s) were added to refs/heads/master by this push:
       new  58f4563   IDP-1004 Add @Duration to appropriate methods
58f4563 is described below

commit 58f4563cf98d654c4e4cab0f73fce1a327f506ac
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Sun Jul 10 14:08:07 2016 +0100

    IDP-1004 Add @Duration to appropriate methods
    
    https://issues.shibboleth.net/jira/browse/IDP-1004
    
    Add @Duration to all appropriate setters as well as their associated
    getters.  Leave the @Duration on the setter parameter for readability.
---
 .../java/net/shibboleth/ext/spring/factory/HttpClientFactoryBean.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/net/shibboleth/ext/spring/factory/HttpClientFactoryBean.java b/src/main/java/net/shibboleth/ext/spring/factory/HttpClientFactoryBean.java
index 2672965..064b10a 100644
--- a/src/main/java/net/shibboleth/ext/spring/factory/HttpClientFactoryBean.java
+++ b/src/main/java/net/shibboleth/ext/spring/factory/HttpClientFactoryBean.java
@@ -59,7 +59,7 @@ public class HttpClientFactoryBean extends AbstractComponentAwareFactoryBean<Htt
      * 
      * @param timeout maximum length of time in milliseconds to wait for the connection to be established
      */
-    public void setConnectionTimeout(@Duration long timeout) {
+    @Duration public void setConnectionTimeout(@Duration final long timeout) {
         connectionTimeout = timeout;
         if (timeout > Integer.MAX_VALUE) {
             throw new IllegalArgumentException("Timeout was too large");

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


More information about the commits mailing list