mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-03 05:25:29 +00:00
Collide traits only on same level
This commit is contained in:
@@ -38,7 +38,7 @@ public class ConstVarNameMultinameUsage extends ConstVarMultinameUsage implement
|
||||
public boolean collides(MultinameUsage other) {
|
||||
if ((other instanceof ConstVarNameMultinameUsage) || (other instanceof MethodNameMultinameUsage)) {
|
||||
TraitMultinameUsage otherTrait = (TraitMultinameUsage) other;
|
||||
if (otherTrait.classIndex == classIndex && otherTrait.traitsType == traitsType) {
|
||||
if (otherTrait.classIndex == classIndex && otherTrait.traitsType == traitsType && otherTrait.parentTraitIndex == parentTraitIndex) {
|
||||
if (other.sameMultinameName(this)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ public class MethodNameMultinameUsage extends MethodMultinameUsage implements De
|
||||
public boolean collides(MultinameUsage other) {
|
||||
if ((other instanceof MethodNameMultinameUsage) || (other instanceof ConstVarNameMultinameUsage)) {
|
||||
TraitMultinameUsage otherTrait = (TraitMultinameUsage) other;
|
||||
if (otherTrait.classIndex == classIndex && otherTrait.traitsType == traitsType) {
|
||||
if (otherTrait.classIndex == classIndex && otherTrait.traitsType == traitsType && otherTrait.parentTraitIndex == parentTraitIndex) {
|
||||
if (other.sameMultinameName(this)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user