diff --git a/baksmali/src/main/java/org/jf/baksmali/baksmali.java b/baksmali/src/main/java/org/jf/baksmali/baksmali.java index 8e90616f..dc49640f 100644 --- a/baksmali/src/main/java/org/jf/baksmali/baksmali.java +++ b/baksmali/src/main/java/org/jf/baksmali/baksmali.java @@ -68,7 +68,7 @@ public class baksmali { Iterables.concat(options.bootClassPathEntries, extraClassPathEntries), dexFile, options.apiLevel); } catch (Exception ex) { - System.err.println("\n\nError occured while loading boot class path files. Aborting."); + System.err.println("\n\nError occurred while loading boot class path files. Aborting."); ex.printStackTrace(System.err); return false; } @@ -217,7 +217,7 @@ public class baksmali { writer = new IndentingWriter(bufWriter); classDefinition.writeTo((IndentingWriter)writer); } catch (Exception ex) { - System.err.println("\n\nError occured while disassembling class " + classDescriptor.replace('/', '.') + " - skipping class"); + System.err.println("\n\nError occurred while disassembling class " + classDescriptor.replace('/', '.') + " - skipping class"); ex.printStackTrace(); // noinspection ResultOfMethodCallIgnored smaliFile.delete(); @@ -229,7 +229,7 @@ public class baksmali { try { writer.close(); } catch (Throwable ex) { - System.err.println("\n\nError occured while closing file " + smaliFile.toString()); + System.err.println("\n\nError occurred while closing file " + smaliFile.toString()); ex.printStackTrace(); } } diff --git a/smali-integration-tests/src/test/smali/junit-tests/SpecialInstructionPaddingTest/SpecialInstructionPaddingTest.smali b/smali-integration-tests/src/test/smali/junit-tests/SpecialInstructionPaddingTest/SpecialInstructionPaddingTest.smali index 49b4ae41..7e17dce0 100644 --- a/smali-integration-tests/src/test/smali/junit-tests/SpecialInstructionPaddingTest/SpecialInstructionPaddingTest.smali +++ b/smali-integration-tests/src/test/smali/junit-tests/SpecialInstructionPaddingTest/SpecialInstructionPaddingTest.smali @@ -12,7 +12,7 @@ .registers 2 .annotation runtime Lorg/junit/Test; .end annotation - + const v0, 0 invoke-static {}, LSpecialInstructionPaddingTest;->paddingTest()I move-result v0 @@ -120,7 +120,7 @@ :Label13 .end packed-switch - #this tests out an issue that occured where the prior packed switch data starts at a byte offset + #this tests out an issue that occurred where the prior packed switch data starts at a byte offset #that is 4 byte aligned but isn't 8 byte aligned, which caused the code to report the size of the #instruction to be 2 bytes more than it should be. # diff --git a/util/src/main/java/org/jf/util/ClassFileNameHandler.java b/util/src/main/java/org/jf/util/ClassFileNameHandler.java index 5619478c..aede10e8 100644 --- a/util/src/main/java/org/jf/util/ClassFileNameHandler.java +++ b/util/src/main/java/org/jf/util/ClassFileNameHandler.java @@ -142,7 +142,7 @@ public class ClassFileNameHandler { writer.close(); f.delete(); //doesn't throw IOException } catch (IOException ex) { - //if an exception occured, it's likely that we're on a windows system. + //if an exception occurred, it's likely that we're on a windows system. return true; } }