You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by se...@apache.org on 2010/05/25 02:33:11 UTC
svn commit: r947875 - /jakarta/bcel/trunk/src/site/xdoc/manual.xml
Author: sebb
Date: Tue May 25 00:33:11 2010
New Revision: 947875
URL: http://svn.apache.org/viewvc?rev=947875&view=rev
Log:
Tab police
Modified:
jakarta/bcel/trunk/src/site/xdoc/manual.xml
Modified: jakarta/bcel/trunk/src/site/xdoc/manual.xml
URL: http://svn.apache.org/viewvc/jakarta/bcel/trunk/src/site/xdoc/manual.xml?rev=947875&r1=947874&r2=947875&view=diff
==============================================================================
--- jakarta/bcel/trunk/src/site/xdoc/manual.xml (original)
+++ jakarta/bcel/trunk/src/site/xdoc/manual.xml Tue May 25 00:33:11 2010
@@ -1346,8 +1346,8 @@
String name = null;
try {
- System.out.print("Please enter your name> ");
- name = in.readLine();
+ System.out.print("Please enter your name> ");
+ name = in.readLine();
} catch(IOException e) { return; }
System.out.println("Hello, " + name);
@@ -1572,14 +1572,14 @@ public class Peephole {
ConstantPoolGen cp = new ConstantPoolGen(clazz.getConstantPool());
for(int i=0; i < methods.length; i++) {
- if(!(methods[i].isAbstract() || methods[i].isNative())) {
- MethodGen mg = new MethodGen(methods[i],
- clazz.getClassName(), cp);
- Method stripped = removeNOPs(mg);
-
- if(stripped != null) // Any NOPs stripped?
- methods[i] = stripped; // Overwrite with stripped method
- }
+ if(!(methods[i].isAbstract() || methods[i].isNative())) {
+ MethodGen mg = new MethodGen(methods[i],
+ clazz.getClassName(), cp);
+ Method stripped = removeNOPs(mg);
+
+ if(stripped != null) // Any NOPs stripped?
+ methods[i] = stripped; // Overwrite with stripped method
+ }
}
/* Dump the class to "class name"_.class
@@ -1604,7 +1604,7 @@ public class Peephole {
/* Some nasty Java compilers may add NOP at end of method.
*/
if((next = last.getNext()) == null)
- break;
+ break;
count += match.length;
@@ -1612,15 +1612,15 @@ public class Peephole {
* (non-nop) instruction.
*/
try {
- il.delete(first, last);
+ il.delete(first, last);
} catch(TargetLostException e) {
- InstructionHandle[] targets = e.getTargets();
- for(int i=0; i < targets.length; i++) {
- InstructionTargeter[] targeters = targets[i].getTargeters();
-
- for(int j=0; j < targeters.length; j++)
- targeters[j].updateTarget(targets[i], next);
- }
+ InstructionHandle[] targets = e.getTargets();
+ for(int i=0; i < targets.length; i++) {
+ InstructionTargeter[] targeters = targets[i].getTargeters();
+
+ for(int j=0; j < targeters.length; j++)
+ targeters[j].updateTarget(targets[i], next);
+ }
}
}
@@ -1628,7 +1628,7 @@ public class Peephole {
if(count > 0) {
System.out.println("Removed " + count + " NOP instructions from method " +
- mg.getName());
+ mg.getName());
m = mg.getMethod();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@jakarta.apache.org
For additional commands, e-mail: notifications-help@jakarta.apache.org