use ImportHandler.DEFAULT_XXX_LIMIT constants

fixed the order of constructor parameters


git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@941 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 4efd9c5761
commit 1f25d615f2
  1. 8
      jode/jode/Decompiler.java

@ -118,8 +118,8 @@ public class Decompiler {
String classPath = System.getProperty("java.class.path");
File destDir = null;
ZipOutputStream destZip = null;
int importPackageLimit = 3;
int importClassLimit = 3;
int importPackageLimit = ImportHandler.DEFAULT_PACKAGE_LIMIT;
int importClassLimit = ImportHandler.DEFAULT_CLASS_LIMIT;;
GlobalOptions.err.println(GlobalOptions.copyright);
for (i=0; i<params.length && params[i].startsWith("-"); i++) {
if (params[i].equals("-v"))
@ -200,8 +200,8 @@ public class Decompiler {
}
ClassInfo.setClassPath(classPath);
ImportHandler imports = new ImportHandler(importClassLimit,
importPackageLimit);
ImportHandler imports = new ImportHandler(importPackageLimit,
importClassLimit);
TabbedPrintWriter writer = null;
if (destDir == null)
writer = new TabbedPrintWriter(System.out, imports);

Loading…
Cancel
Save