Merge pull request #87 from maaatts/master

Clean up String.format
This commit is contained in:
Kalen (Konloch) Kinloch 2015-08-31 15:25:15 -06:00
commit 09d4255e2a

View file

@ -68,10 +68,7 @@ public class JarUtils {
if(!entry.isDirectory())
files.put(name, bytes);
} else {
String cafebabe = String.format("%02X", bytes[0])
+ String.format("%02X", bytes[1])
+ String.format("%02X", bytes[2])
+ String.format("%02X", bytes[3]);
String cafebabe = String.format("%02X%02X%02X%02X", bytes[0], bytes[1], bytes[2], bytes[3]);
if(cafebabe.toLowerCase().equals("cafebabe")) {
try {
final ClassNode cn = getNode(bytes);