Skip to content

Commit

Permalink
Revert public API signature change
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardo-pilastri-sonarsource committed May 31, 2024
1 parent 54ef591 commit 19b8343
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public interface JavaFileScannerContext extends InputFileScannerContext {
* @return SemanticModel if semantic analysis was successful, null otherwise.
*/
@Nullable
Sema getSemanticModel();
Object getSemanticModel();

/**
* Checks if file has been parsed correctly.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public ExplodedGraphWalker(BehaviorCache behaviorCache, JavaFileScannerContext c
this.alwaysTrueOrFalseExpressionCollector = new AlwaysTrueOrFalseExpressionCollector();
this.checkerDispatcher = new CheckerDispatcher(this, checks, context);
this.behaviorCache = behaviorCache;
this.semanticModel = context.getSemanticModel();
this.semanticModel = (Sema) context.getSemanticModel();
}

@VisibleForTesting
Expand All @@ -205,7 +205,7 @@ protected ExplodedGraphWalker(List<SECheck> seChecks, BehaviorCache behaviorCach
this.alwaysTrueOrFalseExpressionCollector = new AlwaysTrueOrFalseExpressionCollector();
this.checkerDispatcher = new CheckerDispatcher(this, seChecks, context);
this.behaviorCache = behaviorCache;
this.semanticModel = context.getSemanticModel();
this.semanticModel = (Sema) context.getSemanticModel();
}

public MethodBehavior visitMethod(MethodTree tree) {
Expand Down

0 comments on commit 19b8343

Please sign in to comment.