Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ cd universe
./.ci-build.sh
````

## Supported Options

Linter options:
* `checkOaM` Enables encapsulation checks (Owner-as-Modifier). Without this option, only topology checks are performed,
so make sure to enable set this option if it should be checked that `@Any` references are not used for writing.

Linter options can be passed via `-Alint=<option>`. Note that everything except the last option given in that way is
ignored (see https://checkerframework.org/manual/#alint for more details)!

## Type checking example

Expand Down
11 changes: 11 additions & 0 deletions src/main/java/universe/jdk.astub
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
import universe.qual.Any;

package java.io;

class PrintStream {
public void print(char @Any [] s);
public void print(@Any String s);
public void print(@Any Object obj);
public void println(char @Any [] x);
public void println(@Any String s);
public void println(@Any Object x);
}

package java.lang;

class Object {
Expand Down