Skip to content

Commit

Permalink
Mkae method static.
Browse files Browse the repository at this point in the history
  • Loading branch information
khatchad committed Jan 22, 2024
1 parent 6a48c24 commit 49d65c8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -462,15 +462,15 @@ public void inferPrimitiveParameters(CallGraph callGraph, PointerAnalysis<Instan
subMonitor.done();
}

private boolean containsPrimitive(InstanceKey instanceKey, PointerAnalysis<InstanceKey> pointerAnalysis, IProgressMonitor monitor) {
private static boolean containsPrimitive(InstanceKey instanceKey, PointerAnalysis<InstanceKey> pointerAnalysis, IProgressMonitor monitor) {
SubMonitor subMonitor = SubMonitor.convert(monitor, "Examining instance...", 1);

if (instanceKey instanceof ConstantKey<?>) {
ConstantKey<?> constantKey = (ConstantKey<?>) instanceKey;
Object constantValue = constantKey.getValue();

if (constantValue != null) {
LOG.info("Found constant value: " + constantValue + " for parameter of: " + this + ".");
LOG.info("Found constant value: " + constantValue + ".");
subMonitor.done();
return true;
}
Expand Down

0 comments on commit 49d65c8

Please sign in to comment.