VariableNameGenerator: fixed failing tests

This commit is contained in:
Tagir Valeev
2018-12-21 13:31:29 +07:00
parent 8d1a008a46
commit 92048254c1
17 changed files with 32 additions and 32 deletions
@@ -13,6 +13,6 @@ public class Test {
void testOpt(String powerValue) {
Optional<Power> optPower = Power.parseValue(powerValue);
optPower.ifPresent(power1 -> power = power1);
optPower.ifPresent(value -> power = value);
}
}
@@ -4,6 +4,6 @@ import java.util.*;
public class Main {
public static Runnable get(Optional<String> s) {
return s.<Runnable>map(s1 -> s1::trim).orElse(null);
return s.<Runnable>map(value -> value::trim).orElse(null);
}
}