This is an automated email from the ASF dual-hosted git repository.

tv pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jcs.git

commit eb4ec7143c1d7f4e576c33fc97b17d36d08bfbdd
Author: Thomas Vandahl <t...@apache.org>
AuthorDate: Tue May 28 15:39:54 2019 +0200

    JCS-195 Update element attributes size on serialization
---
 .../src/main/java/org/apache/commons/jcs/engine/ElementAttributes.java | 3 ++-
 .../org/apache/commons/jcs/engine/behavior/IElementAttributes.java     | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/ElementAttributes.java
 
b/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/ElementAttributes.java
index 4fd0252..e0dd6b8 100644
--- 
a/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/ElementAttributes.java
+++ 
b/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/ElementAttributes.java
@@ -160,7 +160,8 @@ public class ElementAttributes
     }
 
     /**
-     * Size in bytes. This is not used except in the admin pages. It will be 
-1 by default.
+     * Size in bytes. This is not used except in the admin pages. It will be 0 
by default
+     * and is only updated when the element is serialized.
      * <p>
      * @param size The new size value
      */
diff --git 
a/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/behavior/IElementAttributes.java
 
b/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/behavior/IElementAttributes.java
index 2aa4e46..116d187 100644
--- 
a/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/behavior/IElementAttributes.java
+++ 
b/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/behavior/IElementAttributes.java
@@ -60,7 +60,8 @@ public interface IElementAttributes extends Serializable, 
Cloneable
     void setIdleTime( long idle );
 
     /**
-     * Size in bytes. This is not used except in the admin pages. It will be 
-1 by default.
+     * Size in bytes. This is not used except in the admin pages. It will be 0 
by default
+     * and is only updated when the element is serialized.
      * <p>
      * @param size The new size value
      */

Reply via email to