copy to final: effectifely final is enough fot java 8 (IDEA-152934); change wording

This commit is contained in:
Anna Kozlova
2016-03-14 17:48:06 +01:00
parent e31a812438
commit a54e0ed47e
13 changed files with 21 additions and 17 deletions
@@ -1,4 +1,4 @@
// "Copy 'a' to temp final variable" "true"
// "Copy 'a' to final temp variable" "true"
public class DoubleTrouble {
public void test() {
int a = 1;
@@ -1,4 +1,4 @@
// "Copy 'i' to temp final variable" "true"
// "Copy 'i' to final temp variable" "true"
import java.io.*;
class a {
@@ -1,4 +1,4 @@
// "Copy 'o' to temp final variable" "true"
// "Copy 'o' to final temp variable" "true"
class Test1 {
void foo(){}
{
@@ -1,4 +1,4 @@
// "Copy 'i' to temp final variable" "true"
// "Copy 'i' to final temp variable" "true"
class ParamTypeBug {
private static String strings[] = new String[]{ "a", "b", "c" };
@@ -1,4 +1,4 @@
// "Copy 'a' to temp final variable" "true"
// "Copy 'a' to final temp variable" "true"
public class DoubleTrouble {
public void test() {
int a = 1;
@@ -1,4 +1,4 @@
// "Copy 'i' to temp final variable" "true"
// "Copy 'i' to final temp variable" "true"
import java.io.*;
class a {
@@ -1,4 +1,4 @@
// "Copy 'i' to temp final variable" "false"
// "Copy 'i' to final temp variable" "false"
interface I {
int f();
}
@@ -1,4 +1,4 @@
// "Copy 'o' to temp final variable" "true"
// "Copy 'o' to final temp variable" "true"
class Test1 {
void foo(){}
{
@@ -1,4 +1,4 @@
// "Copy 'i' to temp final variable" "true"
// "Copy 'i' to final temp variable" "true"
class ParamTypeBug {
private static String strings[] = new String[]{ "a", "b", "c" };
@@ -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,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;