-
Notifications
You must be signed in to change notification settings - Fork 573
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HV-1863 Adjust annotation processor tests
- Loading branch information
Showing
2 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 4 additions & 5 deletions
9
...src/test/java17/org/hibernate/validator/ap/record/RecordWithInvalidMethodConstraints.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
/* | ||
* Hibernate, Relational Persistence for Idiomatic Java | ||
* Hibernate Validator, declare and validate application constraints | ||
* | ||
* License: GNU Lesser General Public License (LGPL), version 2.1 or later | ||
* See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html | ||
* License: Apache License, Version 2.0 | ||
* See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>. | ||
*/ | ||
package org.hibernate.validator.ap.record; | ||
|
||
import java.util.Date; | ||
import javax.validation.constraints.FutureOrPresent; | ||
import javax.validation.constraints.NotBlank; | ||
import javax.validation.constraints.Positive; | ||
|
||
/** | ||
* @author Jan Schatteman | ||
*/ | ||
public record RecordWithInvalidMethodConstraints(@NotBlank String string, @FutureOrPresent Date date) { | ||
|
||
public void doNothing(@Positive String s) { | ||
public void doNothing(@FutureOrPresent String string) { | ||
// | ||
} | ||
} |