Search in sources :

Example 1 with MustCall

use of org.checkerframework.checker.mustcall.qual.MustCall in project checker-framework by typetools.

the class SimpleSocketField method test.

void test() {
    @MustCall("close") Socket s = mySock;
    // :: error: assignment
    @MustCall({}) Socket s1 = mySock;
}
Also used : MustCall(org.checkerframework.checker.mustcall.qual.MustCall) Socket(java.net.Socket)

Aggregations

Socket (java.net.Socket)1 MustCall (org.checkerframework.checker.mustcall.qual.MustCall)1