File 01bsh-jedit-asm.patch of Package jedit

Description: jEdit uses a modified bsh version. This patch to document
 differences between Debian bsh and jEdit bsh.
Author: Gabriele Giacone <1o5g4r8o@gmail.com>

--- a/bsh/asm/src/bsh/org/objectweb/asm/ByteVector.java
+++ b/bsh/asm/src/bsh/org/objectweb/asm/ByteVector.java
@@ -22,7 +22,7 @@
  * Author: Eric Bruneton
  */
 
-package bsh.org.objectweb.asm;
+package org.gjt.sp.jedit.bsh.org.objectweb.asm;
 
 /**
  * A dynamically extensible vector of bytes. This class is roughly equivalent to
--- a/bsh/asm/src/bsh/org/objectweb/asm/ClassVisitor.java
+++ b/bsh/asm/src/bsh/org/objectweb/asm/ClassVisitor.java
@@ -22,7 +22,7 @@
  * Author: Eric Bruneton
  */
 
-package bsh.org.objectweb.asm;
+package org.gjt.sp.jedit.bsh.org.objectweb.asm;
 
 /**
  * A visitor to visit a Java class. The methods of this interface must be called
--- a/bsh/asm/src/bsh/org/objectweb/asm/ClassWriter.java
+++ b/bsh/asm/src/bsh/org/objectweb/asm/ClassWriter.java
@@ -22,14 +22,14 @@
  * Author: Eric Bruneton
  */
 
-package bsh.org.objectweb.asm;
+package org.gjt.sp.jedit.bsh.org.objectweb.asm;
 
 /**
- * A {@link ClassVisitor ClassVisitor} that generates Java class files. More
+ * A {@link org.gjt.sp.jedit.bsh.org.objectweb.asm.ClassVisitor ClassVisitor} that generates Java class files. More
  * precisely this visitor generates a byte array conforming to the Java class
  * file format. It can be used alone, to generate a Java class "from scratch",
- * or with one or more {@link ClassReader ClassReader} and adapter class
- * visitor to generate a modified class from one or more existing Java classes.
+ * or with one or more adapter class
+ * visitors to generate a modified class from one or more existing Java classes.
  */
 
 public class ClassWriter implements ClassVisitor {
--- a/bsh/asm/src/bsh/org/objectweb/asm/CodeVisitor.java
+++ b/bsh/asm/src/bsh/org/objectweb/asm/CodeVisitor.java
@@ -22,7 +22,7 @@
  * Author: Eric Bruneton
  */
 
-package bsh.org.objectweb.asm;
+package org.gjt.sp.jedit.bsh.org.objectweb.asm;
 
 /**
  * A visitor to visit the bytecode instructions of a Java method. The methods
--- a/bsh/asm/src/bsh/org/objectweb/asm/CodeWriter.java
+++ b/bsh/asm/src/bsh/org/objectweb/asm/CodeWriter.java
@@ -22,7 +22,7 @@
  * Author: Eric Bruneton
  */
 
-package bsh.org.objectweb.asm;
+package org.gjt.sp.jedit.bsh.org.objectweb.asm;
 
 /**
  * A {@link CodeVisitor CodeVisitor} that generates Java bytecode instructions.
--- a/bsh/asm/src/bsh/org/objectweb/asm/Constants.java
+++ b/bsh/asm/src/bsh/org/objectweb/asm/Constants.java
@@ -22,7 +22,7 @@
  * Author: Eric Bruneton
  */
 
-package bsh.org.objectweb.asm;
+package org.gjt.sp.jedit.bsh.org.objectweb.asm;
 
 /**
  * Defines the JVM opcodes, access flags and array type codes. This interface
--- a/bsh/asm/src/bsh/org/objectweb/asm/Edge.java
+++ b/bsh/asm/src/bsh/org/objectweb/asm/Edge.java
@@ -22,7 +22,7 @@
  * Author: Eric Bruneton
  */
 
-package bsh.org.objectweb.asm;
+package org.gjt.sp.jedit.bsh.org.objectweb.asm;
 
 /**
  * An edge in the control flow graph of a method body. See {@link Label Label}.
--- a/bsh/asm/src/bsh/org/objectweb/asm/Item.java
+++ b/bsh/asm/src/bsh/org/objectweb/asm/Item.java
@@ -22,7 +22,7 @@
  * Author: Eric Bruneton
  */
 
-package bsh.org.objectweb.asm;
+package org.gjt.sp.jedit.bsh.org.objectweb.asm;
 
 /**
  * A constant pool item. Constant pool items can be created with the 'newXXX'
--- a/bsh/asm/src/bsh/org/objectweb/asm/Label.java
+++ b/bsh/asm/src/bsh/org/objectweb/asm/Label.java
@@ -22,7 +22,7 @@
  * Author: Eric Bruneton
  */
 
-package bsh.org.objectweb.asm;
+package org.gjt.sp.jedit.bsh.org.objectweb.asm;
 
 /**
  * A label represents a position in the bytecode of a method. Labels are used
--- a/bsh/asm/src/bsh/org/objectweb/asm/Type.java
+++ b/bsh/asm/src/bsh/org/objectweb/asm/Type.java
@@ -22,7 +22,7 @@
  * Author: Eric Bruneton
  */
 
-package bsh.org.objectweb.asm;
+package org.gjt.sp.jedit.bsh.org.objectweb.asm;
 
 import java.lang.reflect.Method;
 
@@ -464,7 +464,7 @@
    */
 
   public String getDescriptor () {
-    StringBuffer buf = new StringBuffer();
+    StringBuilder buf = new StringBuilder();
     getDescriptor(buf);
     return buf.toString();
   }
@@ -483,7 +483,7 @@
     final Type returnType,
     final Type[] argumentTypes)
   {
-    StringBuffer buf = new StringBuffer();
+    StringBuilder buf = new StringBuilder();
     buf.append('(');
     for (int i = 0; i < argumentTypes.length; ++i) {
       argumentTypes[i].getDescriptor(buf);
@@ -500,7 +500,7 @@
    * @param buf the string buffer to which the descriptor must be appended.
    */
 
-  private void getDescriptor (final StringBuffer buf) {
+  private void getDescriptor(final StringBuilder buf) {
     switch (sort) {
       case VOID:    buf.append('V'); return;
       case BOOLEAN: buf.append('Z'); return;
@@ -542,7 +542,7 @@
    */
 
   public static String getDescriptor (final Class c) {
-    StringBuffer buf = new StringBuffer();
+    StringBuilder buf = new StringBuilder();
     getDescriptor(buf, c);
     return buf.toString();
   }
@@ -556,7 +556,7 @@
 
   public static String getMethodDescriptor (final Method m) {
     Class[] parameters = m.getParameterTypes();
-    StringBuffer buf = new StringBuffer();
+    StringBuilder buf = new StringBuilder();
     buf.append('(');
     for (int i = 0; i < parameters.length; ++i) {
       getDescriptor(buf, parameters[i]);
@@ -573,7 +573,7 @@
    * @param c the class whose descriptor must be computed.
    */
 
-  private static void getDescriptor (final StringBuffer buf, final Class c) {
+  private static void getDescriptor (final StringBuilder buf, final Class c) {
     Class d = c;
     while (true) {
       if (d.isPrimitive()) {