From a23cab698572aa5b21f9da56d3feb98c6d4f7b10 Mon Sep 17 00:00:00 2001 From: jochen Date: Sat, 4 Sep 1999 11:40:09 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1164 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/obfuscator/ClassIdentifier.java.in | 10 ++++++---- jode/jode/obfuscator/Makefile.am | 9 +++++---- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/jode/jode/obfuscator/ClassIdentifier.java.in b/jode/jode/obfuscator/ClassIdentifier.java.in index 2eeaf87..5943bcc 100644 --- a/jode/jode/obfuscator/ClassIdentifier.java.in +++ b/jode/jode/obfuscator/ClassIdentifier.java.in @@ -185,10 +185,12 @@ public class ClassIdentifier extends Identifier { public int compare(Object o1, Object o2) { Identifier i1 = (Identifier)o1; Identifier i2 = (Identifier)o2; - boolean special1 = (i1.equals("") - || i1.equals("")); - boolean special2 = (i2.equals("") - || i2.equals("")); + String name1 = i1.getName(); + String name2 = i2.getName(); + boolean special1 = (name1.equals("") + || name1.equals("")); + boolean special2 = (name2.equals("") + || name2.equals("")); // Put constructors at the beginning if (special1 != special2) { return special1 ? -1 : 1; diff --git a/jode/jode/obfuscator/Makefile.am b/jode/jode/obfuscator/Makefile.am index 92004fd..774aa5e 100644 --- a/jode/jode/obfuscator/Makefile.am +++ b/jode/jode/obfuscator/Makefile.am @@ -3,7 +3,8 @@ JAR = @JAR@ JAVAC = @JAVAC@ JAVADEP = $(top_builddir)/javaDependencies.pl -subdir=$(subdir)\ - -dependdir=$(top_builddir) -classpath=$(top_builddir):$(top_srcdir) + -dependdir=$(top_builddir) -classpath=$(top_builddir):$(top_srcdir) \ + -depfile=Makefile.dep CLASSPATH = @CLASSPATH@ CLASSLIB = @CLASSLIB@ SUBSTCP = @SUBSTCP@ @@ -42,13 +43,13 @@ MY_JAVA_FILES = \ noinst_DATA = $(MY_JAVA_FILES:.java=.class) EXTRA_DIST = $(MY_JAVA_FILES) -@QUOTE@-include $(MY_JAVA_FILES:.java=.dep) +@QUOTE@-include Makefile.dep %.class: %.java $(JAVAC) -classpath `$(SUBSTCP) $(BUILD_CLASSPATH):$(CLASSLIB)` -d $(top_builddir) $< -%.dep: %.class - $(JAVADEP) $< >$@ +Makefile.dep: $(MY_JAVA_FILES:.java=.class) + $(JAVADEP) $^ clean-local: @rm -f *.class