Clean up String.format
It works like printf, why not use it like printf?
This commit is contained in:
parent
c75c2c204a
commit
e632cf884b
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue