diff options
| author | 2014-09-24 01:00:54 -0400 | |
|---|---|---|
| committer | 2014-09-24 01:00:54 -0400 | |
| commit | 8776a8ba38123c822530e5f659c626c8db616217 (patch) | |
| tree | 8138a4e4447552e598bb99cfd8fb23a5f27f840b /src/cuchaz/enigma/mapping/ConstructorEntry.java | |
| parent | trying to figure out why some mappings to correspond to anything in the jar f... (diff) | |
| download | enigma-fork-8776a8ba38123c822530e5f659c626c8db616217.tar.gz enigma-fork-8776a8ba38123c822530e5f659c626c8db616217.tar.xz enigma-fork-8776a8ba38123c822530e5f659c626c8db616217.zip | |
HOW DO I WRITE SO MANY BUGS?!?
Diffstat (limited to 'src/cuchaz/enigma/mapping/ConstructorEntry.java')
| -rw-r--r-- | src/cuchaz/enigma/mapping/ConstructorEntry.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cuchaz/enigma/mapping/ConstructorEntry.java b/src/cuchaz/enigma/mapping/ConstructorEntry.java index ad029e1..d99d1c3 100644 --- a/src/cuchaz/enigma/mapping/ConstructorEntry.java +++ b/src/cuchaz/enigma/mapping/ConstructorEntry.java | |||
| @@ -43,6 +43,12 @@ public class ConstructorEntry implements BehaviorEntry, Serializable | |||
| 43 | m_signature = other.m_signature; | 43 | m_signature = other.m_signature; |
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | public ConstructorEntry( ConstructorEntry other, String newClassName ) | ||
| 47 | { | ||
| 48 | m_classEntry = new ClassEntry( newClassName ); | ||
| 49 | m_signature = other.m_signature; | ||
| 50 | } | ||
| 51 | |||
| 46 | @Override | 52 | @Override |
| 47 | public ClassEntry getClassEntry( ) | 53 | public ClassEntry getClassEntry( ) |
| 48 | { | 54 | { |
| @@ -77,6 +83,12 @@ public class ConstructorEntry implements BehaviorEntry, Serializable | |||
| 77 | } | 83 | } |
| 78 | 84 | ||
| 79 | @Override | 85 | @Override |
| 86 | public ConstructorEntry cloneToNewClass( ClassEntry classEntry ) | ||
| 87 | { | ||
| 88 | return new ConstructorEntry( this, classEntry.getName() ); | ||
| 89 | } | ||
| 90 | |||
| 91 | @Override | ||
| 80 | public int hashCode( ) | 92 | public int hashCode( ) |
| 81 | { | 93 | { |
| 82 | if( isStatic() ) | 94 | if( isStatic() ) |