File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
checker-qual/src/main/java/org/checkerframework/checker/mustcall/qual
resourceleak-nocreatesmustcallfor Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1313 * An expression of type {@code @MustCall({"m1", "m2"})} may be obligated to call {@code m1()}
1414 * and/or {@code m2()} before it is deallocated, but it is not obligated to call any other methods.
1515 *
16- * <p>This annotation is enforced by the Object Construction Checker's {@code -AcheckMustCall} mode.
17- * It enforces that the methods {@code m1()} and {@code m2()} are called on the annotated expression
18- * before it is deallocated.
16+ * <p>This annotation can be enforced by running the Resource Leak Checker. It enforces that the
17+ * methods {@code m1()} and {@code m2()} are called on the annotated expression before it is
18+ * deallocated.
1919 *
2020 * <p>The subtyping relationship is:
2121 *
Original file line number Diff line number Diff line change 1111 * obligation to call any set (even an infinite set!) of methods. This type contains every object.
1212 * This type should rarely be written by a programmer.
1313 *
14- * <p>The Object Construction Checker cannot verify that the property represented by this annotation
15- * is enforced; that is, the Object Construction Checker will always issue a warning when the value
16- * of an expression with this type might be de-allocated.
14+ * <p>The Resource Leak Checker cannot verify that the property represented by this annotation is
15+ * enforced; that is, the Resource Leak Checker will always issue a warning when the value of an
16+ * expression with this type might be de-allocated.
1717 *
1818 * @checker_framework.manual #must-call-checker Must Call Checker
1919 */
Original file line number Diff line number Diff line change 1- // A simpler test that @CreatesMustCallFor works as intended wrt the Object Construction Checker.
1+ // A simpler test that @CreatesMustCallFor works as intended wrt the Resource Leak Checker.
22
33// This test has been modified to expect that CreatesMustCallFor is feature-flagged to off.
44
Original file line number Diff line number Diff line change 1- // A simple test that @CreatesMustCallFor works as intended wrt the Object Construction Checker.
1+ // A simple test that @CreatesMustCallFor works as intended wrt the Resource Leak Checker.
22
33import org .checkerframework .checker .calledmethods .qual .*;
44import org .checkerframework .checker .mustcall .qual .*;
Original file line number Diff line number Diff line change 1- // A simpler test that @CreatesMustCallFor works as intended wrt the Object Construction Checker.
1+ // A simpler test that @CreatesMustCallFor works as intended wrt the Resource Leak Checker.
22
33import org .checkerframework .checker .calledmethods .qual .*;
44import org .checkerframework .checker .mustcall .qual .*;
You can’t perform that action at this time.
0 commit comments