Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade Hibernate Validator * Revert "Suppress Hibernate warning (#7542)" This reverts commit 2b845b6.
- Loading branch information
1 parent
cdc2210
commit 8e80755
Showing
8 changed files
with
75 additions
and
38 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
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
24 changes: 0 additions & 24 deletions
24
framework/src/play-java-forms/src/test/java/play/data/ListForm.java
This file was deleted.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
framework/src/play-java-forms/src/test/java/play/data/TypeArgumentForm.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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (C) 2009-2017 Lightbend Inc. <https://www.lightbend.com> | ||
*/ | ||
package play.data; | ||
|
||
import play.data.validation.Constraints; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
import java.util.Optional; | ||
|
||
public class TypeArgumentForm { | ||
|
||
private List<@Constraints.Min(0) Integer> list; | ||
|
||
private Map<@Constraints.MinLength(3) String, @Constraints.Min(6) Integer> map; | ||
|
||
private Optional<@Constraints.MinLength(9) String> optional; | ||
|
||
public List<Integer> getList() { | ||
return list; | ||
} | ||
|
||
public void setList(final List<Integer> list) { | ||
this.list = list; | ||
} | ||
|
||
public Map<String, Integer> getMap() { | ||
return map; | ||
} | ||
|
||
public void setMap(final Map<String, Integer> map) { | ||
this.map = map; | ||
} | ||
|
||
public Optional<String> getOptional() { | ||
return optional; | ||
} | ||
|
||
public void setOptional(final Optional<String> optional) { | ||
this.optional = optional; | ||
} | ||
} |
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
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
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
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