Skip to content
Permalink
Browse files
remove SizeValidator; TCK failure was a red herring
  • Loading branch information
mbenson committed Oct 16, 2018
1 parent 3135a41 commit 57a3f7d746f0de1165d173227e856e8d6bb6dfcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
@@ -29,7 +29,7 @@
import javax.validation.constraints.Size;

/**
* Description: Abstract validator impl. for @Size annotation<br/>
* Description: Abstract validator impl. for @Size annotation.
*/
public abstract class SizeValidator<T> implements ConstraintValidator<Size, T> {
public static class ForArray<T> extends SizeValidator<T> {
@@ -84,12 +84,6 @@ public ForMap() {
}
}

public static class ForNumber extends SizeValidator<Number> {
public ForNumber() {
super(Number::intValue);
}
}

private final ToIntFunction<? super T> sizeOf;

protected int min;
@@ -126,7 +126,6 @@ javax.validation.constraints.Size=\
org.apache.bval.constraints.SizeValidator$ForArray$OfBoolean,\
org.apache.bval.constraints.SizeValidator$ForCharSequence,\
org.apache.bval.constraints.SizeValidator$ForCollection,\
org.apache.bval.constraints.SizeValidator$ForMap,\
org.apache.bval.constraints.SizeValidator$ForNumber
org.apache.bval.constraints.SizeValidator$ForMap

javax.validation.constraints.Pattern=org.apache.bval.constraints.PatternValidator

0 comments on commit 57a3f7d

Please sign in to comment.