Skip to content

Commit

Permalink
Add Jakarta Validation's Valid and constraints annotations (#2335 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg authored Nov 14, 2024
2 parents 22d9f3d + 649eb59 commit 575d683
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
* Bump default `ktlint` version to latest `1.3.0` -> `1.4.0`. ([#2314](https://github.com/diffplug/spotless/pull/2314))
* Add _Sort Members_ feature based on [Eclipse JDT](plugin-gradle/README.md#eclipse-jdt) implementation. ([#2312](https://github.com/diffplug/spotless/pull/2312))
* Bump default `jackson` version to latest `2.18.0` -> `2.18.1`. ([#2319](https://github.com/diffplug/spotless/pull/2319))
* Bump default `ktfmt` version to latest `0.52` -> `0.53`. ([#2320](https://github.com/diffplug/spotless/pull/2320)
* Bump default `ktfmt` version to latest `0.52` -> `0.53`. ([#2320](https://github.com/diffplug/spotless/pull/2320))
### Fixed
* You can now use `removeUnusedImports` and `googleJavaFormat` at the same time again. (fixes [#2159](https://github.com/diffplug/spotless/issues/2159))
* The default list of type annotations used by `formatAnnotations` now includes Jakarta Validation's `Valid` and constraints validations (fixes [#2334](https://github.com/diffplug/spotless/issues/2334))

## [3.0.0.BETA4] - 2024-10-24
### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ public final class FormatAnnotationsStep implements Serializable {
"ArrayLen",
"ArrayLenRange",
"ArrayWithoutPackage",
"AssertFalse",
"AssertTrue",
"AwtAlphaCompositingRule",
"AwtColorSpace",
"AwtCursorType",
Expand Down Expand Up @@ -108,14 +110,18 @@ public final class FormatAnnotationsStep implements Serializable {
"Critical",
"Current",
"D",
"DecimalMax",
"DecimalMin",
"DefaultType",
"degrees",
"Det",
"Digits",
"DoesNotMatchRegex",
"DotSeparatedIdentifiers",
"DotSeparatedIdentifiersOrPrimitiveType",
"DoubleVal",
"E",
"Email",
"Encrypted",
"EnhancedRegex",
"EnumVal",
Expand All @@ -139,6 +145,8 @@ public final class FormatAnnotationsStep implements Serializable {
"FqBinaryName",
"Frequency",
"FullyQualifiedName",
"Future",
"FutureOrPresent",
"g",
"GTENegativeOne",
"GuardedBy",
Expand Down Expand Up @@ -213,6 +221,7 @@ public final class FormatAnnotationsStep implements Serializable {
"m3",
"Mass",
"MatchesRegex",
"Max",
"MaybeAliased",
"MaybeDerivedFromConstant",
"MaybePresent",
Expand All @@ -221,6 +230,7 @@ public final class FormatAnnotationsStep implements Serializable {
"MethodVal",
"MethodValBottom",
"min",
"Min",
"MinLen",
"mm",
"mm2",
Expand All @@ -235,7 +245,9 @@ public final class FormatAnnotationsStep implements Serializable {
"MustCallAlias",
"MustCallUnknown",
"N",
"Negative",
"NegativeIndexFor",
"NegativeOrZero",
"NewObject",
"NonConstant",
"NonDet",
Expand All @@ -244,19 +256,25 @@ public final class FormatAnnotationsStep implements Serializable {
"NonNull",
"NonNullType",
"NonRaw",
"NotBlank",
"NotCalledMethods",
"NotEmpty",
"NotNull",
"NotQualifier",
"NTDBottom",
"NTDMiddle",
"NTDSide",
"NTDTop",
"Null",
"Nullable",
"NullableType",
"Odd",
"OptionalBottom",
"OrderNonDet",
"Parent",
"Past",
"PastOrPresent",
"Pattern",
"PatternA",
"PatternAB",
"PatternAC",
Expand Down Expand Up @@ -297,6 +315,7 @@ public final class FormatAnnotationsStep implements Serializable {
"PolyValue",
"PolyVariableNameDefault",
"Positive",
"PositiveOrZero",
"Present",
"PrimitiveType",
"PropertyKey",
Expand Down Expand Up @@ -326,6 +345,7 @@ public final class FormatAnnotationsStep implements Serializable {
"SignednessGlb",
"SignedPositive",
"SignedPositiveFromUnsigned",
"Size",
"Speed",
"StringVal",
"SubQual",
Expand Down Expand Up @@ -381,6 +401,7 @@ public final class FormatAnnotationsStep implements Serializable {
"UpperBoundBottom",
"UpperBoundLiteral",
"UpperBoundUnknown",
"Valid",
"ValueTypeAnno",
"VariableNameDefaultBottom",
"VariableNameDefaultMiddle",
Expand Down
3 changes: 2 additions & 1 deletion plugin-gradle/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
### Changed
* Bump default `ktlint` version to latest `1.3.0` -> `1.4.0`. ([#2314](https://github.com/diffplug/spotless/pull/2314))
* Bump default `jackson` version to latest `2.18.0` -> `2.18.1`. ([#2319](https://github.com/diffplug/spotless/pull/2319))
* Bump default `ktfmt` version to latest `0.52` -> `0.53`. ([#2320](https://github.com/diffplug/spotless/pull/2320)
* Bump default `ktfmt` version to latest `0.52` -> `0.53`. ([#2320](https://github.com/diffplug/spotless/pull/2320))
### Fixed
* You can now use `removeUnusedImports` and `googleJavaFormat` at the same time again. (fixes [#2159](https://github.com/diffplug/spotless/issues/2159))
* The default list of type annotations used by `formatAnnotations` now includes Jakarta Validation's `Valid` and constraints validations (fixes [#2334](https://github.com/diffplug/spotless/issues/2334))

## [7.0.0.BETA4] - 2024-10-24
### Added
Expand Down
3 changes: 2 additions & 1 deletion plugin-maven/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ We adhere to the [keepachangelog](https://keepachangelog.com/en/1.0.0/) format (
### Changed
* Bump default `ktlint` version to latest `1.3.0` -> `1.4.0`. ([#2314](https://github.com/diffplug/spotless/pull/2314))
* Bump default `jackson` version to latest `2.18.0` -> `2.18.1`. ([#2319](https://github.com/diffplug/spotless/pull/2319))
* Bump default `ktfmt` version to latest `0.52` -> `0.53`. ([#2320](https://github.com/diffplug/spotless/pull/2320)
* Bump default `ktfmt` version to latest `0.52` -> `0.53`. ([#2320](https://github.com/diffplug/spotless/pull/2320))
### Fixed
* You can now use `removeUnusedImports` and `googleJavaFormat` at the same time again. (fixes [#2159](https://github.com/diffplug/spotless/issues/2159))
* The default list of type annotations used by `formatAnnotations` now includes Jakarta Validation's `Valid` and constraints validations (fixes [#2334](https://github.com/diffplug/spotless/issues/2334))

## [2.44.0.BETA4] - 2024-10-24
### Added
Expand Down

0 comments on commit 575d683

Please sign in to comment.