mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-28 23:50:57 +07:00
17 lines
325 B
Java
17 lines
325 B
Java
// "Replace method call on lambda with lambda body" "true-preview"
|
|
|
|
import java.util.function.Supplier;
|
|
|
|
abstract class TrivialUsageInline {
|
|
|
|
public <T> T evaluateUnderLock(Supplier<T> supplier) {
|
|
if (true) {
|
|
return supplier.get();
|
|
}
|
|
else {
|
|
return null;
|
|
}
|
|
|
|
}
|
|
}
|