[fixes #3081] make CheckerFramework's This a type annotation

This commit is contained in:
Jan Rieke authored and Roel Spilker committed 2022-01-09 01:36:22 +01:00
1 parent 9be867ef03
commit ae8ff327d2
19 files changed
+100 -129

No files matched your search

@@ -1,3 +1,4 @@
// skip-idempotent
//version 8:
class CheckerFrameworkBasic {
private final int x;
@@ -21,9 +22,8 @@ class CheckerFrameworkBasic {
/**
* @return {@code this}.
*/
@org.checkerframework.common.returnsreceiver.qual.This
@java.lang.SuppressWarnings("all")
public CheckerFrameworkBasic setZ(final int z) {
public @org.checkerframework.common.returnsreceiver.qual.This CheckerFrameworkBasic setZ(final int z) {
this.z = z;
return this;
}