mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
Works for unary operation Do not suggested if replacement is the same as the original code Replacement is displayed in the quick-fix name
16 lines
415 B
Java
16 lines
415 B
Java
// "Fix all 'Constant expression can be evaluated' problems in file" "true"
|
|
class Test {
|
|
void test() {
|
|
String[] squares = new String[10];
|
|
squares[0] = "0*0=0";
|
|
squares[1] = "1*1=1";
|
|
squares[2] = "2*2=4";
|
|
squares[3] = "3*3=9";
|
|
squares[4] = "4*4=16";
|
|
squares[5] = "5*5=25";
|
|
squares[6] = "6*6=36";
|
|
squares[7] = "7*7=49";
|
|
squares[8] = "8*8=64";
|
|
squares[9] = "9*9=81";
|
|
}
|
|
} |