Skip to content

Commit 4c3d0c7

Browse files
committed
Add remaining Validation constraint annotations
1 parent bbbd960 commit 4c3d0c7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

lib/src/main/java/com/diffplug/spotless/java/FormatAnnotationsStep.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ public final class FormatAnnotationsStep implements Serializable {
7171
"ArrayLen",
7272
"ArrayLenRange",
7373
"ArrayWithoutPackage",
74+
"AssertFalse",
75+
"AssertTrue",
7476
"AwtAlphaCompositingRule",
7577
"AwtColorSpace",
7678
"AwtCursorType",
@@ -108,14 +110,18 @@ public final class FormatAnnotationsStep implements Serializable {
108110
"Critical",
109111
"Current",
110112
"D",
113+
"DecimalMax",
114+
"DecimalMin",
111115
"DefaultType",
112116
"degrees",
113117
"Det",
118+
"Digits",
114119
"DoesNotMatchRegex",
115120
"DotSeparatedIdentifiers",
116121
"DotSeparatedIdentifiersOrPrimitiveType",
117122
"DoubleVal",
118123
"E",
124+
"Email",
119125
"Encrypted",
120126
"EnhancedRegex",
121127
"EnumVal",
@@ -139,6 +145,8 @@ public final class FormatAnnotationsStep implements Serializable {
139145
"FqBinaryName",
140146
"Frequency",
141147
"FullyQualifiedName",
148+
"Future",
149+
"FutureOrPresent",
142150
"g",
143151
"GTENegativeOne",
144152
"GuardedBy",
@@ -213,6 +221,7 @@ public final class FormatAnnotationsStep implements Serializable {
213221
"m3",
214222
"Mass",
215223
"MatchesRegex",
224+
"Max",
216225
"MaybeAliased",
217226
"MaybeDerivedFromConstant",
218227
"MaybePresent",
@@ -221,6 +230,7 @@ public final class FormatAnnotationsStep implements Serializable {
221230
"MethodVal",
222231
"MethodValBottom",
223232
"min",
233+
"Min",
224234
"MinLen",
225235
"mm",
226236
"mm2",
@@ -235,7 +245,9 @@ public final class FormatAnnotationsStep implements Serializable {
235245
"MustCallAlias",
236246
"MustCallUnknown",
237247
"N",
248+
"Negative",
238249
"NegativeIndexFor",
250+
"NegativeOrZero",
239251
"NewObject",
240252
"NonConstant",
241253
"NonDet",
@@ -244,19 +256,25 @@ public final class FormatAnnotationsStep implements Serializable {
244256
"NonNull",
245257
"NonNullType",
246258
"NonRaw",
259+
"NotBlank",
247260
"NotCalledMethods",
261+
"NotEmpty",
248262
"NotNull",
249263
"NotQualifier",
250264
"NTDBottom",
251265
"NTDMiddle",
252266
"NTDSide",
253267
"NTDTop",
268+
"Null",
254269
"Nullable",
255270
"NullableType",
256271
"Odd",
257272
"OptionalBottom",
258273
"OrderNonDet",
259274
"Parent",
275+
"Past",
276+
"PastOrPresent",
277+
"Pattern",
260278
"PatternA",
261279
"PatternAB",
262280
"PatternAC",
@@ -297,6 +315,7 @@ public final class FormatAnnotationsStep implements Serializable {
297315
"PolyValue",
298316
"PolyVariableNameDefault",
299317
"Positive",
318+
"PositiveOrZero",
300319
"Present",
301320
"PrimitiveType",
302321
"PropertyKey",
@@ -326,6 +345,7 @@ public final class FormatAnnotationsStep implements Serializable {
326345
"SignednessGlb",
327346
"SignedPositive",
328347
"SignedPositiveFromUnsigned",
348+
"Size",
329349
"Speed",
330350
"StringVal",
331351
"SubQual",

0 commit comments

Comments
 (0)