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

Loading…
Cancel
Save