mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
VariableNameGenerator: fixed failing tests
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user