mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Java inspection: Check the return type in "Move return to computation" (IDEA-121153)
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Move 'return' closer to computation of the value of 's'" "true"
|
||||
class T {
|
||||
int f(String a) {
|
||||
String f(String a) {
|
||||
String s = a;
|
||||
if (s == null) {
|
||||
return ""; /* return comment */ // end of line
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// "Move 'return' closer to computation of the value of 's'" "true"
|
||||
class T {
|
||||
int f(String a) {
|
||||
String f(String a) {
|
||||
String s = a;
|
||||
if (s == null) {
|
||||
s = ""; // end of line
|
||||
|
||||
Reference in New Issue
Block a user