mirror of
https://github.com/pxb1988/dex2jar.git
synced 2024-11-26 22:50:42 +00:00
parent
62eba635fd
commit
c577db0da3
@ -3,6 +3,7 @@ Copyright (c) 2009-2014 Panxiaobo
|
||||
|
||||
contributors
|
||||
- Bob Pan <pxb1988#gmail.com>
|
||||
- HyperSpeeed <nico.mexis#kabelmail.de>
|
||||
- Enea Stanzani <aeneas.ltr#gmail.com>
|
||||
- t3stwhat <t3stwhat#gmail.com>
|
||||
- paulhooijenga <paulhooijenga#gmail.com>
|
||||
|
@ -335,23 +335,18 @@ public class TypeTransformer implements Transformer {
|
||||
|
||||
public boolean addUses(String ele) {
|
||||
assert this.next == null;
|
||||
TypeRef t = this;
|
||||
if (t.uses != null) {
|
||||
return t.uses.add(ele);
|
||||
} else {
|
||||
t.uses = new HashSet<>();
|
||||
return t.uses.add(ele);
|
||||
if (this.uses == null) {
|
||||
this.uses = new HashSet<>();
|
||||
}
|
||||
return this.uses.add(ele);
|
||||
}
|
||||
|
||||
public boolean addAllUses(Set<String> uses) {
|
||||
assert this.next == null;
|
||||
if (uses != null) {
|
||||
return uses.addAll(uses);
|
||||
} else {
|
||||
uses = new HashSet<>();
|
||||
return uses.addAll(uses);
|
||||
if (this.uses == null) {
|
||||
this.uses = new HashSet<>();
|
||||
}
|
||||
return this.uses.addAll(uses);
|
||||
}
|
||||
}
|
||||
|
||||
@ -632,10 +627,10 @@ public class TypeTransformer implements Transformer {
|
||||
return mergeObjectType(a, b);
|
||||
} else {
|
||||
String elementTypeA = a.substring(as);
|
||||
String elementTypeB = a.substring(bs);
|
||||
String elementTypeB = b.substring(bs);
|
||||
if (as < bs) {
|
||||
return buildArray(elementTypeB.charAt(0) == 'L' ? bs : bs - 1, "L");
|
||||
} else if (bs > as) {
|
||||
} else if (as > bs) {
|
||||
return buildArray(elementTypeA.charAt(0) == 'L' ? as : as - 1, "L");
|
||||
} else { // as==bs
|
||||
if (elementTypeA.charAt(0) != 'L' || elementTypeB.charAt(0) != 'L') {
|
||||
|
Loading…
Reference in New Issue
Block a user