@Retention(value=RUNTIME) @Target(value=FIELD) public @interface MinLength
If you simply wish to require that an option have a non-empty value then use NotEmpty instead
NotEmpty
int
length
public abstract int length
Copyright © 2012–2017. All rights reserved.