commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1819437 - in /commons/proper/beanutils/trunk/src: changes/ main/java/org/apache/commons/beanutils2/
Date Thu, 28 Dec 2017 18:31:10 GMT
Author: ggregory
Date: Thu Dec 28 18:31:10 2017
New Revision: 1819437

URL: http://svn.apache.org/viewvc?rev=1819437&view=rev
Log:
[BEANUTILS-505] Add missing serialVersionUID to Serializable classes.

Modified:
    commons/proper/beanutils/trunk/src/changes/changes.xml
    commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BasicDynaBean.java
    commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BasicDynaClass.java
    commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BeanAccessLanguageException.java
    commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BeanComparator.java
    commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BeanMap.java
    commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/ConversionException.java
    commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/ConvertingWrapDynaBean.java
    commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/JDBCDynaClass.java
    commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/LazyDynaBean.java
    commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/LazyDynaClass.java
    commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/LazyDynaList.java
    commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/LazyDynaMap.java
    commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/NestedNullException.java
    commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/ResultSetDynaClass.java
    commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/RowSetDynaClass.java
    commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/WeakFastHashMap.java
    commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/WrapDynaBean.java
    commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/WrapDynaClass.java

Modified: commons/proper/beanutils/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/changes/changes.xml?rev=1819437&r1=1819436&r2=1819437&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/changes/changes.xml (original)
+++ commons/proper/beanutils/trunk/src/changes/changes.xml Thu Dec 28 18:31:10 2017
@@ -39,6 +39,9 @@
       <action issue="BEANUTILS-500" dev="dbrosius" type="update" due-to="Dave Brosius,
Gary Gregory">
         Upgrade from Apache Commons Collections 3 to 4.
       </action>
+      <action issue="BEANUTILS-505" dev="ggregory" type="update" due-to="Gary Gregory">
+        Add missing serialVersionUID to Serializable classes.
+      </action>
     </release>
 
     <release version="1.9.3" date="2016-09-21" description="Bug fix release, now builds
with Java 8">

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BasicDynaBean.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BasicDynaBean.java?rev=1819437&r1=1819436&r2=1819437&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BasicDynaBean.java
(original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BasicDynaBean.java
Thu Dec 28 18:31:10 2017
@@ -42,10 +42,10 @@ import java.util.Map;
 
 public class BasicDynaBean implements DynaBean, Serializable {
 
+    private static final long serialVersionUID = 1L;
 
     // ---------------------------------------------------------- Constructors
 
-
     /**
      * Construct a new <code>DynaBean</code> associated with the specified
      * <code>DynaClass</code> instance.

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BasicDynaClass.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BasicDynaClass.java?rev=1819437&r1=1819436&r2=1819437&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BasicDynaClass.java
(original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BasicDynaClass.java
Thu Dec 28 18:31:10 2017
@@ -38,6 +38,7 @@ import java.util.HashMap;
 
 public class BasicDynaClass implements DynaClass, Serializable {
 
+    private static final long serialVersionUID = 1L;
 
     // ----------------------------------------------------------- Constructors
 

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BeanAccessLanguageException.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BeanAccessLanguageException.java?rev=1819437&r1=1819436&r2=1819437&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BeanAccessLanguageException.java
(original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BeanAccessLanguageException.java
Thu Dec 28 18:31:10 2017
@@ -28,6 +28,8 @@ package org.apache.commons.beanutils2;
 
 public class BeanAccessLanguageException extends IllegalArgumentException {
 
+    private static final long serialVersionUID = 1L;
+
     // --------------------------------------------------------- Constuctors
 
     /**

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BeanComparator.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BeanComparator.java?rev=1819437&r1=1819436&r2=1819437&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BeanComparator.java
(original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BeanComparator.java
Thu Dec 28 18:31:10 2017
@@ -48,6 +48,7 @@ import org.apache.commons.collections4.c
  */
 public class BeanComparator<T> implements Comparator<T>, Serializable {
 
+    private static final long serialVersionUID = 1L;
     private String property;
     private final Comparator<?> comparator;
 

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BeanMap.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BeanMap.java?rev=1819437&r1=1819436&r2=1819437&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BeanMap.java
(original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/BeanMap.java
Thu Dec 28 18:31:10 2017
@@ -76,6 +76,9 @@ public class BeanMap extends AbstractMap
      */
     @Deprecated
     public static HashMap defaultTransformers = new HashMap() {
+
+        private static final long serialVersionUID = 1L;
+
         @Override
         public void clear() {
             throw new UnsupportedOperationException();

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/ConversionException.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/ConversionException.java?rev=1819437&r1=1819436&r2=1819437&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/ConversionException.java
(original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/ConversionException.java
Thu Dec 28 18:31:10 2017
@@ -29,10 +29,10 @@ package org.apache.commons.beanutils2;
 
 public class ConversionException extends RuntimeException {
 
+    private static final long serialVersionUID = 1L;
 
     // ----------------------------------------------------------- Constructors
 
-
     /**
      * Construct a new exception with the specified message.
      *

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/ConvertingWrapDynaBean.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/ConvertingWrapDynaBean.java?rev=1819437&r1=1819436&r2=1819437&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/ConvertingWrapDynaBean.java
(original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/ConvertingWrapDynaBean.java
Thu Dec 28 18:31:10 2017
@@ -34,7 +34,7 @@ import java.lang.reflect.InvocationTarge
 
 public class ConvertingWrapDynaBean extends WrapDynaBean {
 
-
+    private static final long serialVersionUID = 1L;
 
     /**
      * Construct a new <code>DynaBean</code> associated with the specified

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/JDBCDynaClass.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/JDBCDynaClass.java?rev=1819437&r1=1819436&r2=1819437&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/JDBCDynaClass.java
(original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/JDBCDynaClass.java
Thu Dec 28 18:31:10 2017
@@ -37,6 +37,8 @@ import java.util.Map;
 
 abstract class JDBCDynaClass implements DynaClass, Serializable {
 
+    private static final long serialVersionUID = 1L;
+
     // ----------------------------------------------------- Instance Variables
 
     /**

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/LazyDynaBean.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/LazyDynaBean.java?rev=1819437&r1=1819436&r2=1819437&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/LazyDynaBean.java
(original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/LazyDynaBean.java
Thu Dec 28 18:31:10 2017
@@ -123,8 +123,9 @@ import org.apache.commons.logging.LogFac
  */
 public class LazyDynaBean implements DynaBean, Serializable {
 
+    private static final long serialVersionUID = 1L;
 
-   /**
+ /**
     * Commons Logging
     */
     private transient Log logger = LogFactory.getLog(LazyDynaBean.class);

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/LazyDynaClass.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/LazyDynaClass.java?rev=1819437&r1=1819436&r2=1819437&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/LazyDynaClass.java
(original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/LazyDynaClass.java
Thu Dec 28 18:31:10 2017
@@ -44,6 +44,8 @@ package org.apache.commons.beanutils2;
  */
 public class LazyDynaClass extends BasicDynaClass implements MutableDynaClass  {
 
+    private static final long serialVersionUID = 1L;
+
     /**
      * Controls whether changes to this DynaClass's properties are allowed.
      */

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/LazyDynaList.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/LazyDynaList.java?rev=1819437&r1=1819436&r2=1819437&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/LazyDynaList.java
(original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/LazyDynaList.java
Thu Dec 28 18:31:10 2017
@@ -160,6 +160,8 @@ import java.util.Map;
  */
 public class LazyDynaList extends ArrayList<Object> {
 
+    private static final long serialVersionUID = 1L;
+
     /**
      * The DynaClass of the List's elements.
      */

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/LazyDynaMap.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/LazyDynaMap.java?rev=1819437&r1=1819436&r2=1819437&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/LazyDynaMap.java
(original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/LazyDynaMap.java
Thu Dec 28 18:31:10 2017
@@ -47,6 +47,8 @@ import java.util.Map;
  */
 public class LazyDynaMap extends LazyDynaBean implements MutableDynaClass {
 
+    private static final long serialVersionUID = 1L;
+
     /**
      * The name of this DynaClass (analogous to the
      * <code>getName()</code> method of <code>java.lang.Class</code>).

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/NestedNullException.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/NestedNullException.java?rev=1819437&r1=1819436&r2=1819437&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/NestedNullException.java
(original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/NestedNullException.java
Thu Dec 28 18:31:10 2017
@@ -27,6 +27,8 @@ package org.apache.commons.beanutils2;
 
 public class NestedNullException extends BeanAccessLanguageException {
 
+    private static final long serialVersionUID = 1L;
+
     // --------------------------------------------------------- Constuctors
 
     /**

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/ResultSetDynaClass.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/ResultSetDynaClass.java?rev=1819437&r1=1819436&r2=1819437&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/ResultSetDynaClass.java
(original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/ResultSetDynaClass.java
Thu Dec 28 18:31:10 2017
@@ -82,10 +82,10 @@ import java.util.Iterator;
 
 public class ResultSetDynaClass extends JDBCDynaClass {
 
+    private static final long serialVersionUID = 1L;
 
     // ----------------------------------------------------------- Constructors
 
-
     /**
      * <p>Construct a new ResultSetDynaClass for the specified
      * <code>ResultSet</code>.  The property names corresponding

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/RowSetDynaClass.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/RowSetDynaClass.java?rev=1819437&r1=1819436&r2=1819437&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/RowSetDynaClass.java
(original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/RowSetDynaClass.java
Thu Dec 28 18:31:10 2017
@@ -66,6 +66,7 @@ import java.util.List;
 
 public class RowSetDynaClass extends JDBCDynaClass {
 
+    private static final long serialVersionUID = 1L;
 
     // ----------------------------------------------------- Instance variables
 

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/WeakFastHashMap.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/WeakFastHashMap.java?rev=1819437&r1=1819436&r2=1819437&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/WeakFastHashMap.java
(original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/WeakFastHashMap.java
Thu Dec 28 18:31:10 2017
@@ -63,6 +63,8 @@ import java.util.WeakHashMap;
  */
 public class WeakFastHashMap<K, V> extends HashMap<K, V> {
 
+    private static final long serialVersionUID = 1L;
+
     /**
      * The underlying map we are managing.
      */

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/WrapDynaBean.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/WrapDynaBean.java?rev=1819437&r1=1819436&r2=1819437&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/WrapDynaBean.java
(original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/WrapDynaBean.java
Thu Dec 28 18:31:10 2017
@@ -46,10 +46,10 @@ import java.lang.reflect.InvocationTarge
 
 public class WrapDynaBean implements DynaBean, Serializable {
 
+    private static final long serialVersionUID = 1L;
 
     // ---------------------------------------------------------- Constructors
 
-
     /**
      * Construct a new <code>DynaBean</code> associated with the specified
      * JavaBean instance.

Modified: commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/WrapDynaClass.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/WrapDynaClass.java?rev=1819437&r1=1819436&r2=1819437&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/WrapDynaClass.java
(original)
+++ commons/proper/beanutils/trunk/src/main/java/org/apache/commons/beanutils2/WrapDynaClass.java
Thu Dec 28 18:31:10 2017
@@ -194,6 +194,9 @@ public class WrapDynaClass implements Dy
      */
     @Deprecated
     protected static HashMap<Object, Object> dynaClasses = new HashMap<Object, Object>()
{
+
+        private static final long serialVersionUID = 1L;
+
         @Override
         public void clear() {
             getDynaClassesMap().clear();



Mime
View raw message