Skip to content

Commit

Permalink
"Method can be static" fix massive application
Browse files Browse the repository at this point in the history
GitOrigin-RevId: ed296b85922a6814d5c6057b5cbc720f0c546e41
  • Loading branch information
amaembo authored and intellij-monorepo-bot committed Oct 20, 2023
1 parent e52e88a commit 630c129
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import java.util.Map.Entry;

public class StackVarsProcessor {
public void simplifyStackVars(RootStatement root, StructMethod mt, StructClass cl) {
public static void simplifyStackVars(RootStatement root, StructMethod mt, StructClass cl) {
CancellationManager cancellationManager = DecompilerContext.getCancellationManager();

Set<Integer> setReorderedIfs = new HashSet<>();
Expand Down Expand Up @@ -100,7 +100,7 @@ private static void setExprentVersionsToNull(Exprent exprent) {
}
}

private boolean iterateStatements(RootStatement root, SSAUConstructorSparseEx ssa) {
private static boolean iterateStatements(RootStatement root, SSAUConstructorSparseEx ssa) {
CancellationManager cancellationManager = DecompilerContext.getCancellationManager();

FlattenStatementsHelper flatthelper = new FlattenStatementsHelper();
Expand Down Expand Up @@ -230,11 +230,11 @@ private static void replaceSingleVar(Exprent parent, VarExprent var, Exprent des
}
}

private int[] iterateExprent(List<Exprent> lstExprents,
int index,
Exprent next,
Map<VarVersionPair, Exprent> mapVarValues,
SSAUConstructorSparseEx ssau) {
private static int[] iterateExprent(List<Exprent> lstExprents,
int index,
Exprent next,
Map<VarVersionPair, Exprent> mapVarValues,
SSAUConstructorSparseEx ssau) {
Exprent exprent = lstExprents.get(index);

int changed = 0;
Expand Down

0 comments on commit 630c129

Please sign in to comment.