Browse Source

fix some "serialVersionUID" warnings

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@592841 13f79535-47bb-0310-9956-ffa450edef68
master
Jan Materne 17 years ago
parent
commit
b955593f70
8 changed files with 14 additions and 0 deletions
  1. +2
    -0
      src/main/org/apache/tools/ant/BuildEvent.java
  2. +2
    -0
      src/main/org/apache/tools/ant/BuildException.java
  3. +2
    -0
      src/main/org/apache/tools/ant/ExitException.java
  4. +2
    -0
      src/main/org/apache/tools/ant/ExitStatusException.java
  5. +1
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java
  6. +2
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/junit/DOMUtil.java
  7. +1
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/testing/BuildTimeoutException.java
  8. +2
    -0
      src/main/org/apache/tools/ant/util/IdentityStack.java

+ 2
- 0
src/main/org/apache/tools/ant/BuildEvent.java View File

@@ -29,6 +29,8 @@ import java.util.EventObject;
*/ */
public class BuildEvent extends EventObject { public class BuildEvent extends EventObject {


private static final long serialVersionUID = 4538050075952288486L;

/** Project which emitted the event. */ /** Project which emitted the event. */
private Project project; private Project project;
/** Target which emitted the event, if specified. */ /** Target which emitted the event, if specified. */


+ 2
- 0
src/main/org/apache/tools/ant/BuildException.java View File

@@ -25,6 +25,8 @@ import java.io.PrintWriter;
*/ */
public class BuildException extends RuntimeException { public class BuildException extends RuntimeException {


private static final long serialVersionUID = -5419014565354664240L;

/** Exception that might have caused this one. */ /** Exception that might have caused this one. */
private Throwable cause; private Throwable cause;




+ 2
- 0
src/main/org/apache/tools/ant/ExitException.java View File

@@ -26,6 +26,8 @@ package org.apache.tools.ant;
*/ */
public class ExitException extends SecurityException { public class ExitException extends SecurityException {


private static final long serialVersionUID = 2772487854280543363L;

/** Status code */ /** Status code */
private int status; private int status;




+ 2
- 0
src/main/org/apache/tools/ant/ExitStatusException.java View File

@@ -24,6 +24,8 @@ package org.apache.tools.ant;
*/ */
public class ExitStatusException extends BuildException { public class ExitStatusException extends BuildException {


private static final long serialVersionUID = 7760846806886585968L;

/** Status code */ /** Status code */
private int status; private int status;




+ 1
- 0
src/main/org/apache/tools/ant/taskdefs/optional/EchoProperties.java View File

@@ -387,6 +387,7 @@ public class EchoProperties extends Task {
final List keyList = new ArrayList(allProps.keySet()); final List keyList = new ArrayList(allProps.keySet());
Collections.sort(keyList); Collections.sort(keyList);
Properties props = new Properties() { Properties props = new Properties() {
private static final long serialVersionUID = 5090936442309201654L;
public Enumeration keys() { public Enumeration keys() {
return CollectionUtils.asEnumeration(keyList.iterator()); return CollectionUtils.asEnumeration(keyList.iterator());
} }


+ 2
- 0
src/main/org/apache/tools/ant/taskdefs/optional/junit/DOMUtil.java View File

@@ -86,6 +86,8 @@ public final class DOMUtil {


/** custom implementation of a nodelist */ /** custom implementation of a nodelist */
public static class NodeListImpl extends Vector implements NodeList { public static class NodeListImpl extends Vector implements NodeList {
private static final long serialVersionUID = 3175749150080946423L;

/** /**
* Get the number of nodes in the list. * Get the number of nodes in the list.
* @return the length of the list. * @return the length of the list.


+ 1
- 0
src/main/org/apache/tools/ant/taskdefs/optional/testing/BuildTimeoutException.java View File

@@ -30,6 +30,7 @@ import org.apache.tools.ant.Location;


public class BuildTimeoutException extends BuildException { public class BuildTimeoutException extends BuildException {


private static final long serialVersionUID = -8057644603246297562L;


/** /**
* Constructs a build exception with no descriptive information. * Constructs a build exception with no descriptive information.


+ 2
- 0
src/main/org/apache/tools/ant/util/IdentityStack.java View File

@@ -25,6 +25,8 @@ import java.util.Stack;
*/ */
public class IdentityStack extends Stack { public class IdentityStack extends Stack {


private static final long serialVersionUID = -5555522620060077046L;

/** /**
* Get an IdentityStack containing the contents of the specified Stack. * Get an IdentityStack containing the contents of the specified Stack.
* @param s the Stack to copy; ignored if null. * @param s the Stack to copy; ignored if null.


Loading…
Cancel
Save