Skip to content

Commit

Permalink
Merge branch 'lock-infer-purity' of github.com:mernst/checker-framewo…
Browse files Browse the repository at this point in the history
…rk into lock-infer-purity
  • Loading branch information
mernst committed Sep 28, 2022
2 parents 97217b6 + 5e9a80b commit 5cf0fff
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Expand Up @@ -1304,7 +1304,7 @@ protected void performFlowAnalysis(ClassTree classTree) {

TreePath preTreePath = getVisitorTreePath();

// Don't use getPath, because that depends on the assignmentContext path.
// Don't call AnnotatedTypeFactory#getPath, because it uses visitorTreePath.
setVisitorTreePath(TreePath.getPath(this.root, ct));

// start with the captured store as initialization store
Expand Down
Expand Up @@ -43,5 +43,5 @@ public interface AnnotationProvider {
* @param methodElement a method
* @return true if a call to the method does not undo flow-sensitive type refinement
*/
public boolean isSideEffectFree(ExecutableElement methodElement);
boolean isSideEffectFree(ExecutableElement methodElement);
}
Expand Up @@ -53,7 +53,6 @@ public boolean isSideEffectFree(ExecutableElement methodElement) {
List<? extends AnnotationMirror> annotationMirrors = methodElement.getAnnotationMirrors();

for (AnnotationMirror am : annotationMirrors) {
@SuppressWarnings("deprecation") // method intended for use by the hierarchy
boolean found =
AnnotationUtils.areSameByName(am, "org.checkerframework.dataflow.qual.SideEffectFree");
if (found) {
Expand Down

0 comments on commit 5cf0fff

Please sign in to comment.