summaryrefslogtreecommitdiff
path: root/src/cuchaz/enigma/analysis/SourceIndex.java
diff options
context:
space:
mode:
authorGravatar jeff2014-10-01 00:04:18 -0400
committerGravatar jeff2014-10-01 00:04:18 -0400
commit5eeee98418bb39367258442a82b75a081a6f91e0 (patch)
tree16bd812576caad8a3af7f5616bdcaac7bc30b992 /src/cuchaz/enigma/analysis/SourceIndex.java
parentfixed nasty issue with renaming inner classes, but alas, more bugs remain (diff)
downloadenigma-fork-5eeee98418bb39367258442a82b75a081a6f91e0.tar.gz
enigma-fork-5eeee98418bb39367258442a82b75a081a6f91e0.tar.xz
enigma-fork-5eeee98418bb39367258442a82b75a081a6f91e0.zip
fixed inner class renaming bug
also added smarter sorting to class mappings
Diffstat (limited to '')
-rw-r--r--src/cuchaz/enigma/analysis/SourceIndex.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cuchaz/enigma/analysis/SourceIndex.java b/src/cuchaz/enigma/analysis/SourceIndex.java
index 21a499e..0e33de0 100644
--- a/src/cuchaz/enigma/analysis/SourceIndex.java
+++ b/src/cuchaz/enigma/analysis/SourceIndex.java
@@ -90,7 +90,7 @@ public class SourceIndex
90 //System.out.println( String.format( "%s \"%s\" region: %s", node.getNodeType(), name, region ) ); 90 //System.out.println( String.format( "%s \"%s\" region: %s", node.getNodeType(), name, region ) );
91 91
92 // for tokens representing inner classes, make sure we only get the simple name 92 // for tokens representing inner classes, make sure we only get the simple name
93 int pos = node.getText().lastIndexOf( '$' ); 93 int pos = name.lastIndexOf( '$' );
94 if( pos >= 0 ) 94 if( pos >= 0 )
95 { 95 {
96 token.end -= pos + 1; 96 token.end -= pos + 1;