aboutsummaryrefslogtreecommitdiff
path: root/src/site/xdoc
diff options
context:
space:
mode:
authorSebastian Bazley <sebb@apache.org>2010-05-25 00:33:11 +0000
committerSebastian Bazley <sebb@apache.org>2010-05-25 00:33:11 +0000
commitfa4d01ee0def6d0d0237ce8128cf7fc3cc7d1090 (patch)
tree249dac6b13ac9beca13df8e3ffdd822562200e78 /src/site/xdoc
parentf20b04f1266b1f4aeb8d82a4e9b20dd48e14cbe3 (diff)
downloadapache-commons-bcel-fa4d01ee0def6d0d0237ce8128cf7fc3cc7d1090.tar.gz
Tab police
git-svn-id: https://svn.apache.org/repos/asf/jakarta/bcel/trunk@947875 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/site/xdoc')
-rw-r--r--src/site/xdoc/manual.xml40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/site/xdoc/manual.xml b/src/site/xdoc/manual.xml
index 2fd83a2e..27270b08 100644
--- a/src/site/xdoc/manual.xml
+++ b/src/site/xdoc/manual.xml
@@ -1346,8 +1346,8 @@
String name = null;
try {
- System.out.print("Please enter your name&gt; ");
- name = in.readLine();
+ System.out.print("Please enter your name&gt; ");
+ 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 &lt; 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 &lt; targets.length; i++) {
- InstructionTargeter[] targeters = targets[i].getTargeters();
-
- for(int j=0; j &lt; targeters.length; j++)
- targeters[j].updateTarget(targets[i], next);
- }
+ InstructionHandle[] targets = e.getTargets();
+ for(int i=0; i &lt; targets.length; i++) {
+ InstructionTargeter[] targeters = targets[i].getTargeters();
+
+ for(int j=0; j &lt; targeters.length; j++)
+ targeters[j].updateTarget(targets[i], next);
+ }
}
}
@@ -1628,7 +1628,7 @@ public class Peephole {
if(count &gt; 0) {
System.out.println("Removed " + count + " NOP instructions from method " +
- mg.getName());
+ mg.getName());
m = mg.getMethod();
}