Skip to content

Commit

Permalink
Remove references to the defunct Object Construction Checker
Browse files Browse the repository at this point in the history
  • Loading branch information
kelloggm committed Jun 27, 2024
1 parent 936a6d0 commit 6147c82
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
* An expression of type {@code @MustCall({"m1", "m2"})} may be obligated to call {@code m1()}
* and/or {@code m2()} before it is deallocated, but it is not obligated to call any other methods.
*
* <p>This annotation is enforced by the Object Construction Checker's {@code -AcheckMustCall} mode.
* It enforces that the methods {@code m1()} and {@code m2()} are called on the annotated expression
* before it is deallocated.
* <p>This annotation can be enforced by running the Resource Leak Checker. It enforces that the
* methods {@code m1()} and {@code m2()} are called on the annotated expression before it is
* deallocated.
*
* <p>The subtyping relationship is:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
* obligation to call any set (even an infinite set!) of methods. This type contains every object.
* This type should rarely be written by a programmer.
*
* <p>The Object Construction Checker cannot verify that the property represented by this annotation
* is enforced; that is, the Object Construction Checker will always issue a warning when the value
* of an expression with this type might be de-allocated.
* <p>The Resource Leak Checker cannot verify that the property represented by this annotation is
* enforced; that is, the Resource Leak Checker will always issue a warning when the value of an
* expression with this type might be de-allocated.
*
* @checker_framework.manual #must-call-checker Must Call Checker
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// A simpler test that @CreatesMustCallFor works as intended wrt the Object Construction Checker.
// A simpler test that @CreatesMustCallFor works as intended wrt the Resource Leak Checker.

// This test has been modified to expect that CreatesMustCallFor is feature-flagged to off.

Expand Down
2 changes: 1 addition & 1 deletion checker/tests/resourceleak/CreatesMustCallForSimple.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// A simple test that @CreatesMustCallFor works as intended wrt the Object Construction Checker.
// A simple test that @CreatesMustCallFor works as intended wrt the Resource Leak Checker.

import org.checkerframework.checker.calledmethods.qual.*;
import org.checkerframework.checker.mustcall.qual.*;
Expand Down
2 changes: 1 addition & 1 deletion checker/tests/resourceleak/CreatesMustCallForSimpler.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// A simpler test that @CreatesMustCallFor works as intended wrt the Object Construction Checker.
// A simpler test that @CreatesMustCallFor works as intended wrt the Resource Leak Checker.

import org.checkerframework.checker.calledmethods.qual.*;
import org.checkerframework.checker.mustcall.qual.*;
Expand Down

0 comments on commit 6147c82

Please sign in to comment.