commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcu...@apache.org
Subject svn commit: r700613 - in /commons/sandbox/javaflow/trunk/src: java/org/apache/commons/javaflow/ java/org/apache/commons/javaflow/ant/ test/org/apache/commons/javaflow/bytecode/transformation/ test/org/apache/commons/javaflow/bytecode/transformation/rew...
Date Tue, 30 Sep 2008 22:26:05 GMT
Author: tcurdt
Date: Tue Sep 30 15:26:04 2008
New Revision: 700613

URL: http://svn.apache.org/viewvc?rev=700613&view=rev
Log:
https://issues.apache.org/jira/browse/SANDBOX-162

added serialze ids,
organize imports,
re-indent,


Modified:
    commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationDeath.java
    commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ant/AntRewriteTask.java
    commons/sandbox/javaflow/trunk/src/test/org/apache/commons/javaflow/bytecode/transformation/DefaultConstructorDump.java
    commons/sandbox/javaflow/trunk/src/test/org/apache/commons/javaflow/bytecode/transformation/rewrite/BlackRed.java

Modified: commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationDeath.java
URL: http://svn.apache.org/viewvc/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationDeath.java?rev=700613&r1=700612&r2=700613&view=diff
==============================================================================
--- commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationDeath.java
(original)
+++ commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ContinuationDeath.java
Tue Sep 30 15:26:04 2008
@@ -13,7 +13,10 @@
  * @author Kohsuke Kawaguchi
  */
 public final class ContinuationDeath extends Error {
-    final String mode;
+    
+	private static final long serialVersionUID = 1L;
+
+	final String mode;
 
     public ContinuationDeath(String mode) {
         this.mode = mode;

Modified: commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ant/AntRewriteTask.java
URL: http://svn.apache.org/viewvc/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ant/AntRewriteTask.java?rev=700613&r1=700612&r2=700613&view=diff
==============================================================================
--- commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ant/AntRewriteTask.java
(original)
+++ commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/ant/AntRewriteTask.java
Tue Sep 30 15:26:04 2008
@@ -48,8 +48,13 @@
     /**
      * Directory to which the transformed files will be written.
      * This can be the same as the source directory.
+     * @deprecated
      */
     public void setDstDir(final File pFile) {
+    	setDestdir(pFile);
+    }
+    
+    public void setDestdir(final File pFile) {
         dstDir = pFile;
     }
 

Modified: commons/sandbox/javaflow/trunk/src/test/org/apache/commons/javaflow/bytecode/transformation/DefaultConstructorDump.java
URL: http://svn.apache.org/viewvc/commons/sandbox/javaflow/trunk/src/test/org/apache/commons/javaflow/bytecode/transformation/DefaultConstructorDump.java?rev=700613&r1=700612&r2=700613&view=diff
==============================================================================
--- commons/sandbox/javaflow/trunk/src/test/org/apache/commons/javaflow/bytecode/transformation/DefaultConstructorDump.java
(original)
+++ commons/sandbox/javaflow/trunk/src/test/org/apache/commons/javaflow/bytecode/transformation/DefaultConstructorDump.java
Tue Sep 30 15:26:04 2008
@@ -1,8 +1,6 @@
 package org.apache.commons.javaflow.bytecode.transformation;
 
-import org.objectweb.asm.AnnotationVisitor;
 import org.objectweb.asm.ClassWriter;
-import org.objectweb.asm.FieldVisitor;
 import org.objectweb.asm.Label;
 import org.objectweb.asm.MethodVisitor;
 import org.objectweb.asm.Opcodes;
@@ -11,9 +9,9 @@
 public class DefaultConstructorDump implements Opcodes {
 
   public static byte[] dump() throws Exception {
-    FieldVisitor fv;
+    //FieldVisitor fv;
     MethodVisitor mv;
-    AnnotationVisitor av0;
+    //AnnotationVisitor av0;
 
     ClassWriter cw = new ClassWriter(true);
     cw.visit( V1_2, ACC_PUBLIC + ACC_FINAL + ACC_SUPER, "org/apache/commons/javaflow/bytecode/transformation/asm/data/DefaultConstructor",
null, "java/lang/Thread", null);

Modified: commons/sandbox/javaflow/trunk/src/test/org/apache/commons/javaflow/bytecode/transformation/rewrite/BlackRed.java
URL: http://svn.apache.org/viewvc/commons/sandbox/javaflow/trunk/src/test/org/apache/commons/javaflow/bytecode/transformation/rewrite/BlackRed.java?rev=700613&r1=700612&r2=700613&view=diff
==============================================================================
--- commons/sandbox/javaflow/trunk/src/test/org/apache/commons/javaflow/bytecode/transformation/rewrite/BlackRed.java
(original)
+++ commons/sandbox/javaflow/trunk/src/test/org/apache/commons/javaflow/bytecode/transformation/rewrite/BlackRed.java
Tue Sep 30 15:26:04 2008
@@ -13,45 +13,48 @@
  */
 public final class BlackRed implements Runnable, Serializable {
 
-  public void run() {
-    // new Black( new Red( new Black( new Suspend()))).run();
-    new Black( new Suspend()).run();
-  }
-
-  
-  class Black implements Runnable {
-    final Runnable r;
-
-    public Black( Runnable r) {
-      this.r = r;
-    }
-
-    public void run() {
-      String s = "foo"; // have some random variable
-      r.run();
-    }
-  }
-
-  
-  class Red implements Runnable {
-    final Runnable r;
-
-    public Red( Runnable r) {
-      this.r = r;
-    }
-
-    public void run() {
-      int i = 5; // have some random variable
-      r.run();
-    }
-  }
-
-  
-  class Suspend implements Runnable {
-    public void run() {
-      Continuation.suspend();
-    }
-  }
+	private static final long serialVersionUID = 1L;
+
+
+	public void run() {
+		// new Black( new Red( new Black( new Suspend()))).run();
+		new Black( new Suspend()).run();
+	}
+
+
+	class Black implements Runnable {
+		final Runnable r;
+
+		public Black( Runnable r) {
+			this.r = r;
+		}
+
+		public void run() {
+			String s = "foo"; // have some random variable
+			r.run();
+		}
+	}
+
+
+	class Red implements Runnable {
+		final Runnable r;
+
+		public Red( Runnable r) {
+			this.r = r;
+		}
+
+		public void run() {
+			int i = 5; // have some random variable
+			r.run();
+		}
+	}
+
+
+	class Suspend implements Runnable {
+		public void run() {
+			Continuation.suspend();
+		}
+	}
 
 }
 



Mime
View raw message