ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1771311 - in /webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/token: Timestamp.java UsernameToken.java
Date Fri, 25 Nov 2016 12:42:39 GMT
Author: coheigea
Date: Fri Nov 25 12:42:39 2016
New Revision: 1771311

URL: http://svn.apache.org/viewvc?rev=1771311&view=rev
Log:
More findbugs

Modified:
    webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/token/Timestamp.java
    webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/token/UsernameToken.java

Modified: webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/token/Timestamp.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/token/Timestamp.java?rev=1771311&r1=1771310&r2=1771311&view=diff
==============================================================================
--- webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/token/Timestamp.java
(original)
+++ webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/token/Timestamp.java
Fri Nov 25 12:42:39 2016
@@ -247,7 +247,10 @@ public class Timestamp {
      * @return the "created" time
      */
     public Date getCreated() {
-        return createdDate;
+        if (createdDate != null) {
+            return new Date(createdDate.getTime());
+        }
+        return null;
     }
 
     /**
@@ -256,7 +259,10 @@ public class Timestamp {
      * @return the "expires" time
      */
     public Date getExpires() {
-        return expiresDate;
+        if (expiresDate != null) {
+            return new Date(expiresDate.getTime());
+        }
+        return null;
     }
 
     /**

Modified: webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/token/UsernameToken.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/token/UsernameToken.java?rev=1771311&r1=1771310&r2=1771311&view=diff
==============================================================================
--- webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/token/UsernameToken.java
(original)
+++ webservices/wss4j/trunk/ws-security-dom/src/main/java/org/apache/wss4j/dom/message/token/UsernameToken.java
Fri Nov 25 12:42:39 2016
@@ -429,7 +429,10 @@ public class UsernameToken {
      * @return the Created Date
      */
     public Date getCreatedDate() {
-       return createdDate;
+        if (createdDate != null) {
+            return new Date(createdDate.getTime());
+        }
+        return null;
     }
 
     /**



Mime
View raw message