commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mr...@apache.org
Subject svn commit: r440197 - in /jakarta/commons/sandbox/js2j/trunk/src: main/java/org/apache/commons/js2j/ test/java/org/apache/commons/js2j/
Date Mon, 04 Sep 2006 22:15:16 GMT
Author: mrdon
Date: Mon Sep  4 15:15:15 2006
New Revision: 440197

URL: http://svn.apache.org/viewvc?view=rev&rev=440197
Log:
Adding auto-generated serialization ids

Modified:
    jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/CollectionExtensions.java
    jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/FileExtensions.java
    jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/InputStreamExtensions.java
    jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/JavaObjectWrapper.java
    jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ListExtensions.java
    jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/PropertiesExtensions.java
    jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableDynaBean.java
    jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableList.java
    jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableMap.java
    jakarta/commons/sandbox/js2j/trunk/src/test/java/org/apache/commons/js2j/TestScript.java

Modified: jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/CollectionExtensions.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/CollectionExtensions.java?view=diff&rev=440197&r1=440196&r2=440197
==============================================================================
--- jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/CollectionExtensions.java
(original)
+++ jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/CollectionExtensions.java
Mon Sep  4 15:15:15 2006
@@ -41,6 +41,9 @@
      */
     public static ExtensionFunction each(final Collection col) {
         return new ExtensionFunction() {    
+            /** Auto-generated serialization id */
+            private static final long serialVersionUID = -6303362292926144547L;
+
             public Object execute(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[]
args) {
                 Function func = (Function)args[0];
                 Object[] param = new Object[1];
@@ -65,6 +68,9 @@
      */
     public static ExtensionFunction find(final Collection col) {
         return new ExtensionFunction() {    
+            /** Auto-generated serialization id */
+            private static final long serialVersionUID = 3231163709725438572L;
+
             public Object execute(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[]
args) {
                 Function func = (Function)args[0];
                 Object[] param = new Object[1];
@@ -92,6 +98,9 @@
      */
     public static ExtensionFunction findAll(final Collection col) {
         return new ExtensionFunction() {    
+            /** Auto-generated serialization id */
+            private static final long serialVersionUID = 8857541526499998517L;
+
             public Object execute(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[]
args) {
                 Function func = (Function)args[0];
                 Object[] param = new Object[1];

Modified: jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/FileExtensions.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/FileExtensions.java?view=diff&rev=440197&r1=440196&r2=440197
==============================================================================
--- jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/FileExtensions.java
(original)
+++ jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/FileExtensions.java
Mon Sep  4 15:15:15 2006
@@ -44,6 +44,9 @@
      */
     public static ExtensionFunction append(final File file) {
         return new ExtensionFunction() {    
+            /** Auto-generated serialization id */
+            private static final long serialVersionUID = -8708037167577801237L;
+
             public Object execute(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[]
args) 
                     throws IOException {
                 String text = args[0].toString();
@@ -68,6 +71,9 @@
      */
     public static ExtensionFunction getText(final File file) {
         return new ExtensionFunction() {    
+            /** Auto-generated serialization id */
+            private static final long serialVersionUID = 5225834890780473777L;
+
             public Object execute(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[]
args) 
                     throws IOException {
                 
@@ -85,6 +91,9 @@
      */
     public static ExtensionFunction copy(final File file) {
         return new ExtensionFunction() {    
+            /** Auto-generated serialization id */
+            private static final long serialVersionUID = -8565740854310175556L;
+
             public Object execute(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[]
args) 
                     throws IOException {
                 
@@ -133,6 +142,9 @@
      */
     public static ExtensionFunction eachLine(final File file) {
         return new ExtensionFunction() {    
+            /** Auto-generated serialization id */
+            private static final long serialVersionUID = 6912551910810089408L;
+
             public Object execute(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[]
args) 
                     throws IOException {
                 
@@ -164,6 +176,9 @@
      */
     public static ExtensionFunction replace(final File file) {
         return new ExtensionFunction() {    
+            /** Auto-generated serialization id */
+            private static final long serialVersionUID = -785850132775863225L;
+
             public Object execute(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[]
args) 
                     throws IOException {
                 
@@ -197,6 +212,9 @@
      */
     public static ExtensionFunction search(final File file) {
         return new ExtensionFunction() {    
+            /** Auto-generated serialization id */
+            private static final long serialVersionUID = -8841229353342589837L;
+
             public Object execute(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[]
args) 
                     throws IOException {
                 
@@ -220,6 +238,9 @@
      */
     public static ExtensionFunction getLines(final File file) {
         return new ExtensionFunction() {    
+            /** Auto-generated serialization id */
+            private static final long serialVersionUID = -8026495170352394269L;
+
             public Object execute(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[]
args) 
                     throws IOException {
                 
@@ -255,6 +276,9 @@
      */
     public static ExtensionFunction remove(final File file) {
         return new ExtensionFunction() {    
+            /** Auto-generated serialization id */
+            private static final long serialVersionUID = 7808567817975522748L;
+
             public Object execute(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[]
args) 
                     throws IOException {
                 

Modified: jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/InputStreamExtensions.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/InputStreamExtensions.java?view=diff&rev=440197&r1=440196&r2=440197
==============================================================================
--- jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/InputStreamExtensions.java
(original)
+++ jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/InputStreamExtensions.java
Mon Sep  4 15:15:15 2006
@@ -39,6 +39,9 @@
      */
     public static ExtensionFunction getText(final InputStream in) {
         return new ExtensionFunction() {    
+            /** Auto-generated serialization id */
+            private static final long serialVersionUID = -6815768615295922278L;
+
             public Object execute(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[]
args) 
                     throws IOException {
                 

Modified: jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/JavaObjectWrapper.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/JavaObjectWrapper.java?view=diff&rev=440197&r1=440196&r2=440197
==============================================================================
--- jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/JavaObjectWrapper.java
(original)
+++ jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/JavaObjectWrapper.java
Mon Sep  4 15:15:15 2006
@@ -30,6 +30,8 @@
  */
 public class JavaObjectWrapper extends NativeJavaObject implements Scriptable, Wrapper, Serializable
{
 
+    /** Auto-generated serialization id */
+    private static final long serialVersionUID = -6540242119193661910L;
     private Map functions;
 
     public JavaObjectWrapper() {

Modified: jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ListExtensions.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ListExtensions.java?view=diff&rev=440197&r1=440196&r2=440197
==============================================================================
--- jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ListExtensions.java
(original)
+++ jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ListExtensions.java
Mon Sep  4 15:15:15 2006
@@ -39,6 +39,9 @@
      */
     public static ExtensionFunction asImmutable(final List list) {
         return new ExtensionFunction() {    
+            /** Auto-generated serialization id */
+            private static final long serialVersionUID = -7733814382225868750L;
+
             public Object execute(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[]
args) {
                 return Collections.unmodifiableList(list);
             }
@@ -54,6 +57,9 @@
      */
     public static ExtensionFunction asSynchronized(final List list) {
         return new ExtensionFunction() {    
+            /** Auto-generated serialization id */
+            private static final long serialVersionUID = -750831127416692594L;
+
             public Object execute(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[]
args) {
                 return Collections.synchronizedList(list);
             }
@@ -70,6 +76,9 @@
      */
     public static ExtensionFunction pop(final List list) {
         return new ExtensionFunction() {    
+            /** Auto-generated serialization id */
+            private static final long serialVersionUID = 4058513289583883372L;
+
             public Object execute(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[]
args) {
                 Object o = null;
                 if (list.size() > 0) {
@@ -90,6 +99,9 @@
      */
     public static ExtensionFunction sort(final List list) {
         return new ExtensionFunction() {    
+            /** Auto-generated serialization id */
+            private static final long serialVersionUID = -6944406891031819279L;
+
             public Object execute(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[]
args) {
                 Collections.sort(list);
                 return null;
@@ -108,6 +120,9 @@
      */
     public static ExtensionFunction sortEach(final List list) {
         return new ExtensionFunction() {    
+            /** Auto-generated serialization id */
+            private static final long serialVersionUID = 7270893019556217337L;
+
             public Object execute(final Context cx, final Scriptable scope, final Scriptable
thisObj, java.lang.Object[] args) {
                 final Object[] params = new Object[2];
                 final Function func = (Function)args[0];

Modified: jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/PropertiesExtensions.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/PropertiesExtensions.java?view=diff&rev=440197&r1=440196&r2=440197
==============================================================================
--- jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/PropertiesExtensions.java
(original)
+++ jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/PropertiesExtensions.java
Mon Sep  4 15:15:15 2006
@@ -42,6 +42,9 @@
      */
     public static ExtensionFunction load(final Properties props) {
         return new ExtensionFunction() {    
+            /** Auto-generated serialization id */
+            private static final long serialVersionUID = -1324529209501778868L;
+
             public Object execute(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[]
args) 
                     throws IOException {
                 InputStream in = null;
@@ -68,6 +71,9 @@
      */
     public static ExtensionFunction store(final Properties props) {
         return new ExtensionFunction() {    
+            /** Auto-generated serialization id */
+            private static final long serialVersionUID = 720448872482233210L;
+
             public Object execute(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[]
args) 
                     throws IOException {
                 OutputStream in = null;

Modified: jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableDynaBean.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableDynaBean.java?view=diff&rev=440197&r1=440196&r2=440197
==============================================================================
--- jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableDynaBean.java
(original)
+++ jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableDynaBean.java
Mon Sep  4 15:15:15 2006
@@ -32,6 +32,8 @@
  */
 public class ScriptableDynaBean extends JavaObjectWrapper implements Scriptable, Wrapper,
Serializable {
 
+    /** Auto-generated serialization id */
+    private static final long serialVersionUID = 1512451098186727805L;
     private DynaBean bean;
 
     public ScriptableDynaBean() {

Modified: jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableList.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableList.java?view=diff&rev=440197&r1=440196&r2=440197
==============================================================================
--- jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableList.java
(original)
+++ jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableList.java
Mon Sep  4 15:15:15 2006
@@ -25,6 +25,8 @@
 /**  Wrap a java.util.List for JavaScript.  */
 public class ScriptableList extends JavaObjectWrapper implements Scriptable, Wrapper, Serializable
{
 
+    /** Auto-generated serialization id */
+    private static final long serialVersionUID = -2221655313388687110L;
     private List list;
 
 

Modified: jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableMap.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableMap.java?view=diff&rev=440197&r1=440196&r2=440197
==============================================================================
--- jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableMap.java
(original)
+++ jakarta/commons/sandbox/js2j/trunk/src/main/java/org/apache/commons/js2j/ScriptableMap.java
Mon Sep  4 15:15:15 2006
@@ -27,6 +27,8 @@
  */
 public class ScriptableMap extends JavaObjectWrapper implements Scriptable, Wrapper, Serializable
{
 
+    /** Auto-generated serialization id */
+    private static final long serialVersionUID = 7192070806139403748L;
     private Map map;
 
     public ScriptableMap() {

Modified: jakarta/commons/sandbox/js2j/trunk/src/test/java/org/apache/commons/js2j/TestScript.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/js2j/trunk/src/test/java/org/apache/commons/js2j/TestScript.java?view=diff&rev=440197&r1=440196&r2=440197
==============================================================================
--- jakarta/commons/sandbox/js2j/trunk/src/test/java/org/apache/commons/js2j/TestScript.java
(original)
+++ jakarta/commons/sandbox/js2j/trunk/src/test/java/org/apache/commons/js2j/TestScript.java
Mon Sep  4 15:15:15 2006
@@ -17,7 +17,6 @@
 
 import java.io.BufferedReader;
 import java.io.File;
-import java.io.FileNotFoundException;
 import java.io.FileReader;
 import java.io.IOException;
 import java.util.ArrayList;



---------------------------------------------------------------------
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