mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
copy to final: effectifely final is enough fot java 8 (IDEA-152934); change wording
This commit is contained in:
+1
-1
@@ -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
-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
-1
@@ -1,4 +1,4 @@
|
||||
// "Copy 'o' to temp final variable" "true"
|
||||
// "Copy 'o' to final temp variable" "true"
|
||||
class Test1 {
|
||||
void foo(){}
|
||||
{
|
||||
|
||||
+1
-1
@@ -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
-1
@@ -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
-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
-1
@@ -1,4 +1,4 @@
|
||||
// "Copy 'i' to temp final variable" "false"
|
||||
// "Copy 'i' to final temp variable" "false"
|
||||
interface I {
|
||||
int f();
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Copy 'o' to temp final variable" "true"
|
||||
// "Copy 'o' to final temp variable" "true"
|
||||
class Test1 {
|
||||
void foo(){}
|
||||
{
|
||||
|
||||
+1
-1
@@ -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" };
|
||||
|
||||
|
||||
+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