Skip to content

Commit e3aff7c

Browse files
committed
Rename modifiability qualifiers
1 parent 12d6bfc commit e3aff7c

35 files changed

Lines changed: 238 additions & 232 deletions

annotation-file-utilities/src/main/java/org/checkerframework/afu/scenelib/util/coll/WrapperMap.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import java.util.Map;
55
import java.util.Set;
66
import org.checkerframework.checker.modifiability.qual.IteratorPolyMod;
7-
import org.checkerframework.checker.modifiability.qual.PolyShrink;
7+
import org.checkerframework.checker.modifiability.qual.PolyShrinkable;
88

99
/**
1010
* A {@link WrapperMap} is a map all of whose methods delegate by default to those of a supplied
@@ -40,8 +40,8 @@ public boolean containsValue(Object value) {
4040

4141
@SuppressWarnings("keyfor") // use of delegate object
4242
@Override
43-
public @IteratorPolyMod @PolyShrink Set<java.util.Map.Entry<K, V>> entrySet(
44-
@PolyShrink WrapperMap<K, V> this) {
43+
public @IteratorPolyMod @PolyShrinkable Set<java.util.Map.Entry<K, V>> entrySet(
44+
@PolyShrinkable WrapperMap<K, V> this) {
4545
return back.entrySet();
4646
}
4747

buildSrc/src/main/groovy/cf-spotless.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,24 +92,24 @@ spotless {
9292
googleJavaFormat(libs.google.java.format.get().version)
9393
}
9494
formatAnnotations()
95-
.addTypeAnnotation("BottomGrow")
96-
.addTypeAnnotation("BottomReplace")
97-
.addTypeAnnotation("BottomShrink")
95+
.addTypeAnnotation("BottomGrowable")
96+
.addTypeAnnotation("BottomReplaceable")
97+
.addTypeAnnotation("BottomShrinkable")
9898
.addTypeAnnotation("Growable")
9999
.addTypeAnnotation("IteratorPolyMod")
100100
.addTypeAnnotation("Modifiable")
101-
.addTypeAnnotation("PolyGrow")
101+
.addTypeAnnotation("PolyGrowable")
102102
.addTypeAnnotation("PolyModifiable")
103-
.addTypeAnnotation("PolyReplace")
104-
.addTypeAnnotation("PolyShrink")
103+
.addTypeAnnotation("PolyReplaceable")
104+
.addTypeAnnotation("PolyShrinkable")
105105
.addTypeAnnotation("Replaceable")
106106
.addTypeAnnotation("Shrinkable")
107107
.addTypeAnnotation("Ungrowable")
108-
.addTypeAnnotation("MaybeGrow")
108+
.addTypeAnnotation("MaybeGrowable")
109109
.addTypeAnnotation("MaybeIteratorPolyMod")
110110
.addTypeAnnotation("MaybeModifiable")
111-
.addTypeAnnotation("MaybeReplace")
112-
.addTypeAnnotation("MaybeShrink")
111+
.addTypeAnnotation("MaybeReplaceable")
112+
.addTypeAnnotation("MaybeShrinkable")
113113
.addTypeAnnotation("Unmodifiable")
114114
.addTypeAnnotation("UnmodParam")
115115
.addTypeAnnotation("Unreplaceable")

checker-qual/src/main/java/org/checkerframework/checker/modifiability/qual/BottomGrow.java renamed to checker-qual/src/main/java/org/checkerframework/checker/modifiability/qual/BottomGrowable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
@Retention(RetentionPolicy.RUNTIME)
1919
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
2020
@SubtypeOf({Growable.class, Ungrowable.class})
21-
public @interface BottomGrow {}
21+
public @interface BottomGrowable {}

checker-qual/src/main/java/org/checkerframework/checker/modifiability/qual/BottomReplace.java renamed to checker-qual/src/main/java/org/checkerframework/checker/modifiability/qual/BottomReplaceable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
@Retention(RetentionPolicy.RUNTIME)
1919
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
2020
@SubtypeOf({Replaceable.class, Unreplaceable.class})
21-
public @interface BottomReplace {}
21+
public @interface BottomReplaceable {}

checker-qual/src/main/java/org/checkerframework/checker/modifiability/qual/BottomShrink.java renamed to checker-qual/src/main/java/org/checkerframework/checker/modifiability/qual/BottomShrinkable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
@Retention(RetentionPolicy.RUNTIME)
1919
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
2020
@SubtypeOf({Shrinkable.class, Unshrinkable.class})
21-
public @interface BottomShrink {}
21+
public @interface BottomShrinkable {}

checker-qual/src/main/java/org/checkerframework/checker/modifiability/qual/Growable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
@Documented
1919
@Retention(RetentionPolicy.RUNTIME)
2020
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
21-
@SubtypeOf(MaybeGrow.class)
21+
@SubtypeOf(MaybeGrowable.class)
2222
public @interface Growable {}

checker-qual/src/main/java/org/checkerframework/checker/modifiability/qual/MaybeGrow.java renamed to checker-qual/src/main/java/org/checkerframework/checker/modifiability/qual/MaybeGrowable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
2222
@SubtypeOf({})
2323
@DefaultQualifierInHierarchy
24-
public @interface MaybeGrow {}
24+
public @interface MaybeGrowable {}

checker-qual/src/main/java/org/checkerframework/checker/modifiability/qual/MaybeModifiable.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
import java.lang.annotation.Target;
88

99
/**
10-
* Convenience alias meaning {@code @MaybeGrow @MaybeShrink @MaybeReplace}. Represents an unknown or
11-
* arbitrary modifiability capability; the checker cannot determine whether the collection is
12-
* growable, shrinkable, or replaceable.
10+
* Convenience alias meaning {@code @MaybeGrowable @MaybeShrinkable @MaybeReplaceable}. Represents
11+
* an unknown or arbitrary modifiability capability; the checker cannot determine whether the
12+
* collection is growable, shrinkable, or replaceable.
1313
*
1414
* <p>This annotation is not part of the type hierarchy; the Modifiability Checker expands it to
15-
* {@code @MaybeGrow @MaybeShrink @MaybeReplace} on each annotated type.
15+
* {@code @MaybeGrowable @MaybeShrinkable @MaybeReplaceable} on each annotated type.
1616
*
1717
* @checker_framework.manual #modifiability-checker Modifiability Checker
1818
*/

checker-qual/src/main/java/org/checkerframework/checker/modifiability/qual/MaybeReplace.java renamed to checker-qual/src/main/java/org/checkerframework/checker/modifiability/qual/MaybeReplaceable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
2323
@SubtypeOf({})
2424
@DefaultQualifierInHierarchy
25-
public @interface MaybeReplace {}
25+
public @interface MaybeReplaceable {}

checker-qual/src/main/java/org/checkerframework/checker/modifiability/qual/MaybeShrink.java renamed to checker-qual/src/main/java/org/checkerframework/checker/modifiability/qual/MaybeShrinkable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
2323
@SubtypeOf({})
2424
@DefaultQualifierInHierarchy
25-
public @interface MaybeShrink {}
25+
public @interface MaybeShrinkable {}

0 commit comments

Comments
 (0)