Java: Improved inspection "Join Declaration And Assignment" - preserve 'final' (IDEA-177132)

This commit is contained in:
Pavel Dolgov
2018-10-05 19:11:52 +03:00
parent f09b4705f3
commit 1245d379ff
5 changed files with 45 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
// "Join declaration and assignment" "GENERIC_ERROR_OR_WARNING"
class C {
int foo() {
final int <caret>a;
a = 1;
return a;
}
}