mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
copy to final: effectifely final is enough fot java 8 (IDEA-152934); change wording
This commit is contained in:
+2
-2
@@ -1,9 +1,9 @@
|
||||
// "Copy 'a' to temp final variable" "true"
|
||||
// "Copy 'a' to effectively final temp variable" "true"
|
||||
class Test {
|
||||
public void test() {
|
||||
int a = 1;
|
||||
a = 2;
|
||||
final int finalA = a;
|
||||
int finalA = a;
|
||||
Runnable r = () -> {
|
||||
System.out.println(finalA);
|
||||
};
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Copy 'a' to temp final variable" "true"
|
||||
// "Copy 'a' to effectively final temp variable" "true"
|
||||
class Test {
|
||||
public void test() {
|
||||
int a = 1;
|
||||
|
||||
Reference in New Issue
Block a user