mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
disable parameter can be local for overridden methods (IDEA-159001)
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert to local variable" "true"
|
||||
// "Convert to local" "true"
|
||||
class Temp {
|
||||
public Temp() {
|
||||
for (int i = 0; i < 10; i++) {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert to local variable" "true"
|
||||
// "Convert to local" "true"
|
||||
class Temp {
|
||||
public boolean flag;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert to local variable" "true"
|
||||
// "Convert to local" "true"
|
||||
class Temp {
|
||||
/**
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert to local variable" "true"
|
||||
// "Convert to local" "true"
|
||||
class Temp {
|
||||
|
||||
void test() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert to local variable" "true"
|
||||
// "Convert to local" "true"
|
||||
class Temp {
|
||||
|
||||
void foo() {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert to local variable" "true"
|
||||
// "Convert to local" "true"
|
||||
class Temp {
|
||||
|
||||
void foo(int k) {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert to local variable" "true"
|
||||
// "Convert to local" "true"
|
||||
class Temp {
|
||||
public Temp(int <caret>p) {
|
||||
for (int i = 0; i < 10; i++) {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert to local variable" "true"
|
||||
// "Convert to local" "true"
|
||||
class Temp {
|
||||
public boolean flag;
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert to local variable" "true"
|
||||
// "Convert to local" "true"
|
||||
class Temp {
|
||||
/**
|
||||
* @param x
|
||||
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// "Convert to local" "false"
|
||||
class A {
|
||||
void foo(int <caret>i) {
|
||||
i = 3;
|
||||
System.out.println("i = " + i);
|
||||
}
|
||||
}
|
||||
|
||||
class B extends A {
|
||||
@Override
|
||||
void foo(int i) {
|
||||
System.out.println("i = " + i); // becomes uncompilable
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert to local variable" "true"
|
||||
// "Convert to local" "true"
|
||||
class Temp {
|
||||
|
||||
void test(int <caret>p) {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert to local variable" "true"
|
||||
// "Convert to local" "true"
|
||||
class Temp {
|
||||
|
||||
void foo(int <caret>x) {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Convert to local variable" "true"
|
||||
// "Convert to local" "true"
|
||||
class Temp {
|
||||
|
||||
void foo(int <caret>x, int k) {
|
||||
|
||||
Reference in New Issue
Block a user