Change rasterizer raw injector from depending on hardcoded values
This commit is contained in:
@@ -52,8 +52,7 @@ public abstract class ArrayStore extends Instruction implements ArrayStoreInstru
|
||||
if (r.getInstruction() instanceof GetFieldInstruction)
|
||||
{
|
||||
GetFieldInstruction gf = (GetFieldInstruction) r.getInstruction();
|
||||
Field f = gf.getMyField();
|
||||
return f;
|
||||
return gf.getMyField();
|
||||
}
|
||||
|
||||
return null;
|
||||
@@ -89,7 +88,7 @@ public abstract class ArrayStore extends Instruction implements ArrayStoreInstru
|
||||
|
||||
Field f1 = gf1.getMyField(),
|
||||
f2 = gf2.getMyField();
|
||||
|
||||
|
||||
assert MappingExecutorUtil.isMaybeEqual(f1, f2);
|
||||
|
||||
if (f1 != null && f2 != null)
|
||||
|
||||
@@ -86,7 +86,7 @@ public class InvokeStatic extends Instruction implements InvokeInstruction
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<net.runelite.asm.Method> getMethods()
|
||||
{
|
||||
return myMethod != null ? Arrays.asList(myMethod) : Collections.EMPTY_LIST;
|
||||
return myMethod != null ? Collections.singletonList(myMethod) : Collections.EMPTY_LIST;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -70,10 +70,9 @@ public class MethodContext
|
||||
return contexts.get(i);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public Collection<InstructionContext> getInstructionContexts()
|
||||
{
|
||||
return (Collection) contexts.values();
|
||||
return contexts.values();
|
||||
}
|
||||
|
||||
public void reset()
|
||||
|
||||
Reference in New Issue
Block a user