mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
HighlightVisitorImpl: add standard quick-fixes for lambda return value
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
// "Wrap using 'Math.toIntExact()'" "true"
|
||||
import java.util.function.*;
|
||||
|
||||
public class Test {
|
||||
|
||||
void m() {
|
||||
|
||||
LongToIntFunction fn = x -> {
|
||||
if(x > 0) {
|
||||
return Math.toIntExact(x * 2);
|
||||
}
|
||||
return 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
// "Wrap using 'Math.toIntExact()'" "true"
|
||||
import java.util.function.*;
|
||||
|
||||
public class Test {
|
||||
|
||||
void m() {
|
||||
|
||||
LongToIntFunction fn = x -> {
|
||||
if(x > 0) {
|
||||
return x<caret>*2;
|
||||
}
|
||||
return 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user