injector: loadJar -> load, small cleanups in main
This commit is contained in:
@@ -77,7 +77,7 @@ public class Deob
|
||||
|
||||
Stopwatch stopwatch = Stopwatch.createStarted();
|
||||
|
||||
ClassGroup group = JarUtil.loadJar(new File(args[0]));
|
||||
ClassGroup group = JarUtil.load(new File(args[0]));
|
||||
|
||||
// remove except RuntimeException
|
||||
run(group, new RuntimeExceptions());
|
||||
|
||||
@@ -93,8 +93,8 @@ public class UpdateMappings
|
||||
}
|
||||
|
||||
UpdateMappings u = new UpdateMappings(
|
||||
JarUtil.loadJar(new File(args[0])),
|
||||
JarUtil.loadJar(new File(args[1]))
|
||||
JarUtil.load(new File(args[0])),
|
||||
JarUtil.load(new File(args[1]))
|
||||
);
|
||||
u.update();
|
||||
u.save(new File(args[2]));
|
||||
|
||||
@@ -49,7 +49,7 @@ public class JarUtil
|
||||
{
|
||||
private static final Logger logger = LoggerFactory.getLogger(JarUtil.class);
|
||||
|
||||
public static ClassGroup loadJar(File jarfile) throws IOException
|
||||
public static ClassGroup load(File jarfile)
|
||||
{
|
||||
ClassGroup group = new ClassGroup();
|
||||
|
||||
@@ -74,6 +74,10 @@ public class JarUtil
|
||||
group.addClass(cv.getClassFile());
|
||||
}
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
group.initialize();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user