Skip to content

Commit 09d4255

Browse files
committed
Merge pull request Konloch#87 from maaatts/master
Clean up String.format
2 parents c75c2c2 + e632cf8 commit 09d4255

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/the/bytecode/club/bytecodeviewer/JarUtils.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,7 @@ public static void put(final File jarFile) throws IOException {
6868
if(!entry.isDirectory())
6969
files.put(name, bytes);
7070
} else {
71-
String cafebabe = String.format("%02X", bytes[0])
72-
+ String.format("%02X", bytes[1])
73-
+ String.format("%02X", bytes[2])
74-
+ String.format("%02X", bytes[3]);
71+
String cafebabe = String.format("%02X%02X%02X%02X", bytes[0], bytes[1], bytes[2], bytes[3]);
7572
if(cafebabe.toLowerCase().equals("cafebabe")) {
7673
try {
7774
final ClassNode cn = getNode(bytes);

0 commit comments

Comments
 (0)