Java inspection: Check the return type in "Move return to computation" (IDEA-121153)

This commit is contained in:
Pavel Dolgov
2016-09-07 16:47:16 +03:00
parent ec6dddf222
commit 7883184f5a
6 changed files with 99 additions and 22 deletions
@@ -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,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