removed some code smells

This commit is contained in:
2019-10-23 02:04:57 +02:00
parent 03dcf20229
commit d7c821d1fe
8 changed files with 8 additions and 11 deletions

View File

@@ -37,11 +37,11 @@ import org.codehaus.groovy.control.CompilationFailedException;
public class GroovyValidation extends EmptyValueIsValid {
private String groovyScript;
private GroovyShell shell = new GroovyShell();
private Script script;
public GroovyValidation(String groovyScript) {
this.groovyScript = groovyScript;
GroovyShell shell = new GroovyShell();
script = shell.parse(groovyScript);
}

View File

@@ -34,6 +34,7 @@ import java.util.UUID;
*/
public class UuidValidation extends EmptyValueIsValid {
@SuppressWarnings("ResultOfMethodCallIgnored")
@Override
public void check(int row, String value, ValidationError error) {
try {