commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r426219 - in /jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration: ./ plist/ tree/xpath/
Date Thu, 27 Jul 2006 20:02:34 GMT
Author: oheger
Date: Thu Jul 27 13:02:33 2006
New Revision: 426219

URL: http://svn.apache.org/viewvc?rev=426219&view=rev
Log:
Added serialVersionUIDs to serializable classes; findbugs was complaining

Modified:
    jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/CombinedConfiguration.java
    jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationException.java
    jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationKey.java
    jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationRuntimeException.java
    jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConversionException.java
    jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DataConfiguration.java
    jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DefaultConfigurationBuilder.java
    jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/HierarchicalConfiguration.java
    jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/HierarchicalXMLConfiguration.java
    jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/SubnodeConfiguration.java
    jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/XMLConfiguration.java
    jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/plist/PropertyListConfiguration.java
    jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/plist/XMLPropertyListConfiguration.java
    jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodePointer.java

Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/CombinedConfiguration.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/CombinedConfiguration.java?rev=426219&r1=426218&r2=426219&view=diff
==============================================================================
--- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/CombinedConfiguration.java
(original)
+++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/CombinedConfiguration.java
Thu Jul 27 13:02:33 2006
@@ -106,6 +106,11 @@
      */
     public static final int EVENT_COMBINED_INVALIDATE = 40;
 
+    /**
+     * The serial version ID.
+     */
+    private static final long serialVersionUID = 8338574525528692307L;
+
     /** Constant for the expression engine for parsing the at path. */
     private static final DefaultExpressionEngine AT_ENGINE = new DefaultExpressionEngine();
 

Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationException.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationException.java?rev=426219&r1=426218&r2=426219&view=diff
==============================================================================
--- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationException.java
(original)
+++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationException.java
Thu Jul 27 13:02:33 2006
@@ -28,6 +28,11 @@
 public class ConfigurationException extends NestableException
 {
     /**
+     * The serial version ID.
+     */
+    private static final long serialVersionUID = -1316746661346991484L;
+
+    /**
      * Constructs a new <code>ConfigurationException</code> without specified
      * detail message.
      */

Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationKey.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationKey.java?rev=426219&r1=426218&r2=426219&view=diff
==============================================================================
--- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationKey.java
(original)
+++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationKey.java
Thu Jul 27 13:02:33 2006
@@ -61,6 +61,11 @@
     /** Constant for the initial StringBuffer size.*/
     private static final int INITIAL_SIZE = 32;
 
+    /**
+     * The serial version ID.
+     */
+    private static final long serialVersionUID = -4299732083605277656L;
+
     /** Holds a buffer with the so far created key.*/
     private StringBuffer keyBuffer;
 

Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationRuntimeException.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationRuntimeException.java?rev=426219&r1=426218&r2=426219&view=diff
==============================================================================
--- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationRuntimeException.java
(original)
+++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConfigurationRuntimeException.java
Thu Jul 27 13:02:33 2006
@@ -29,6 +29,11 @@
 public class ConfigurationRuntimeException extends NestableRuntimeException
 {
     /**
+     * The serial version ID.
+     */
+    private static final long serialVersionUID = -7838702245512140996L;
+
+    /**
      * Constructs a new <code>ConfigurationRuntimeException</code> without
      * specified detail message.
      */

Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConversionException.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConversionException.java?rev=426219&r1=426218&r2=426219&view=diff
==============================================================================
--- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConversionException.java
(original)
+++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/ConversionException.java
Thu Jul 27 13:02:33 2006
@@ -27,6 +27,11 @@
 public class ConversionException extends ConfigurationRuntimeException
 {
     /**
+     * The serial version UID.
+     */
+    private static final long serialVersionUID = -5167943099293540392L;
+
+    /**
      * Constructs a new <code>ConversionException</code> without specified
      * detail message.
      */

Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DataConfiguration.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DataConfiguration.java?rev=426219&r1=426218&r2=426219&view=diff
==============================================================================
--- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DataConfiguration.java
(original)
+++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DataConfiguration.java
Thu Jul 27 13:02:33 2006
@@ -54,6 +54,11 @@
     /** The default format for dates. */
     public static final String DEFAULT_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss";
 
+    /**
+     * The serial version UID.
+     */
+    private static final long serialVersionUID = -69011336405718640L;
+
     /** Stores the wrapped configuration.*/
     protected Configuration configuration;
 

Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DefaultConfigurationBuilder.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DefaultConfigurationBuilder.java?rev=426219&r1=426218&r2=426219&view=diff
==============================================================================
--- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DefaultConfigurationBuilder.java
(original)
+++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DefaultConfigurationBuilder.java
Thu Jul 27 13:02:33 2006
@@ -301,6 +301,11 @@
     {PROPERTIES_PROVIDER, XML_PROVIDER, XML_PROVIDER, JNDI_PROVIDER,
             SYSTEM_PROVIDER, PLIST_PROVIDER, BUILDER_PROVIDER};
 
+    /**
+     * The serial version UID.
+     */
+    private static final long serialVersionUID = -3113777854714492123L;
+
     /** Stores the configuration that is currently constructed.*/
     private CombinedConfiguration constructedConfiguration;
 

Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/HierarchicalConfiguration.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/HierarchicalConfiguration.java?rev=426219&r1=426218&r2=426219&view=diff
==============================================================================
--- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/HierarchicalConfiguration.java
(original)
+++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/HierarchicalConfiguration.java
Thu Jul 27 13:02:33 2006
@@ -106,6 +106,11 @@
     /** Constant for the add nodes event.*/
     public static final int EVENT_ADD_NODES = 11;
 
+    /**
+     * The serial version UID.
+     */
+    private static final long serialVersionUID = 3373812230395363192L;
+
     /** Stores the default expression engine to be used for new objects.*/
     private static ExpressionEngine defaultExpressionEngine = new DefaultExpressionEngine();
 
@@ -907,6 +912,11 @@
      */
     public static class Node extends DefaultConfigurationNode implements Serializable
     {
+        /**
+         * The serial version UID.
+         */
+        private static final long serialVersionUID = -6357500633536941775L;
+
         /**
          * Creates a new instance of <code>Node</code>.
          */

Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/HierarchicalXMLConfiguration.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/HierarchicalXMLConfiguration.java?rev=426219&r1=426218&r2=426219&view=diff
==============================================================================
--- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/HierarchicalXMLConfiguration.java
(original)
+++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/HierarchicalXMLConfiguration.java
Thu Jul 27 13:02:33 2006
@@ -1,5 +1,5 @@
 /*
- * Copyright 2004-2005 The Apache Software Foundation.
+ * Copyright 2004-2006 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License")
  * you may not use this file except in compliance with the License.
@@ -34,5 +34,8 @@
  */
 public class HierarchicalXMLConfiguration extends XMLConfiguration
 {
-
+    /**
+     * The serial version UID.
+     */
+    private static final long serialVersionUID = 5597530014798917521L;
 }

Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/SubnodeConfiguration.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/SubnodeConfiguration.java?rev=426219&r1=426218&r2=426219&view=diff
==============================================================================
--- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/SubnodeConfiguration.java
(original)
+++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/SubnodeConfiguration.java
Thu Jul 27 13:02:33 2006
@@ -67,6 +67,11 @@
  */
 public class SubnodeConfiguration extends HierarchicalConfiguration
 {
+    /**
+     * The serial version UID.
+     */
+    private static final long serialVersionUID = 3105734147019386480L;
+
     /** Stores the parent configuration. */
     private HierarchicalConfiguration parent;
 

Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/XMLConfiguration.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/XMLConfiguration.java?rev=426219&r1=426218&r2=426219&view=diff
==============================================================================
--- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/XMLConfiguration.java
(original)
+++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/XMLConfiguration.java
Thu Jul 27 13:02:33 2006
@@ -106,6 +106,11 @@
  */
 public class XMLConfiguration extends AbstractHierarchicalFileConfiguration
 {
+    /**
+     * The serial version UID.
+     */
+    private static final long serialVersionUID = 2453781111653383552L;
+
     /** Constant for the default root element name. */
     private static final String DEFAULT_ROOT_NAME = "configuration";
 
@@ -718,6 +723,11 @@
      */
     class XMLNode extends Node
     {
+        /**
+         * The serial version UID.
+         */
+        private static final long serialVersionUID = -4133988932174596562L;
+
         /**
          * Creates a new instance of <code>XMLNode</code> and initializes it
          * with a name and the corresponding XML element.

Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/plist/PropertyListConfiguration.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/plist/PropertyListConfiguration.java?rev=426219&r1=426218&r2=426219&view=diff
==============================================================================
--- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/plist/PropertyListConfiguration.java
(original)
+++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/plist/PropertyListConfiguration.java
Thu Jul 27 13:02:33 2006
@@ -66,6 +66,11 @@
  */
 public class PropertyListConfiguration extends AbstractHierarchicalFileConfiguration
 {
+    /**
+     * The serial version UID.
+     */
+    private static final long serialVersionUID = 3227248503779092127L;
+
     /** Size of the indentation for the generated file. */
     private static final int INDENT_SIZE = 4;
 

Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/plist/XMLPropertyListConfiguration.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/plist/XMLPropertyListConfiguration.java?rev=426219&r1=426218&r2=426219&view=diff
==============================================================================
--- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/plist/XMLPropertyListConfiguration.java
(original)
+++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/plist/XMLPropertyListConfiguration.java
Thu Jul 27 13:02:33 2006
@@ -115,6 +115,11 @@
  */
 public class XMLPropertyListConfiguration extends AbstractHierarchicalFileConfiguration
 {
+    /**
+     * The serial version UID.
+     */
+    private static final long serialVersionUID = -3162063751042475985L;
+
     /** Size of the indentation for the generated file. */
     private static final int INDENT_SIZE = 4;
 
@@ -427,6 +432,11 @@
      */
     public static class PListNode extends Node
     {
+        /**
+         * The serial version UID.
+         */
+        private static final long serialVersionUID = -7614060264754798317L;
+
         /** The standard format of dates in plist files. */
         private static DateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
 
@@ -540,6 +550,11 @@
      */
     public static class ArrayNode extends PListNode
     {
+        /**
+         * The serial version UID.
+         */
+        private static final long serialVersionUID = 5586544306664205835L;
+
         /** The list of values in the array. */
         private List list = new ArrayList();
 

Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodePointer.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodePointer.java?rev=426219&r1=426218&r2=426219&view=diff
==============================================================================
--- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodePointer.java
(original)
+++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/tree/xpath/ConfigurationNodePointer.java
Thu Jul 27 13:02:33 2006
@@ -41,6 +41,11 @@
  */
 class ConfigurationNodePointer extends NodePointer
 {
+    /**
+     * The serial version UID.
+     */
+    private static final long serialVersionUID = -1087475639680007713L;
+
     /** Stores the associated configuration node. */
     private ConfigurationNode node;
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message