mirror of
https://github.com/frosch95/SmartCSV.fx.git
synced 2026-04-11 13:38:23 +02:00
removed some code smells
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user