Lines 1468-1477
Link Here
|
1468 |
" ^\n" + |
1468 |
" ^\n" + |
1469 |
"Access to enclosing constructor A2.B() is emulated by a synthetic accessor method\n" + |
1469 |
"Access to enclosing constructor A2.B() is emulated by a synthetic accessor method\n" + |
1470 |
"----------\n" + |
1470 |
"----------\n" + |
1471 |
"3. ERROR in p1\\A2.java (at line 20)\n" + |
1471 |
"3. WARNING in p1\\A2.java (at line 19)\n" + |
|
|
1472 |
" public void foo() { \n" + |
1473 |
" ^^^^^\n" + |
1474 |
"The method foo() from the type A2.C is never used locally\n" + |
1475 |
"----------\n" + |
1476 |
"4. ERROR in p1\\A2.java (at line 20)\n" + |
1472 |
" (new D.E(null, null, null, new F(get()) {}) {}).execute(); \n" + |
1477 |
" (new D.E(null, null, null, new F(get()) {}) {}).execute(); \n" + |
1473 |
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + |
1478 |
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + |
1474 |
"No enclosing instance of type D is accessible. Must qualify the allocation with an enclosing instance of type D (e.g. x.new A() where x is an instance of D).\n" + |
1479 |
"No enclosing instance of type D is accessible. Must qualify the allocation with an enclosing instance of type D (e.g. x.new A() where x is an instance of D).\n" + |
|
|
1480 |
"----------\n" + |
1481 |
"5. WARNING in p1\\A2.java (at line 20)\n" + |
1482 |
" (new D.E(null, null, null, new F(get()) {}) {}).execute(); \n" + |
1483 |
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + |
1484 |
"The type new D.E(){} is never used locally\n" + |
1485 |
"----------\n" + |
1486 |
"6. WARNING in p1\\A2.java (at line 20)\n" + |
1487 |
" (new D.E(null, null, null, new F(get()) {}) {}).execute(); \n" + |
1488 |
" ^^^^^^^^\n" + |
1489 |
"The type new F(){} is never used locally\n" + |
1475 |
"----------\n"); |
1490 |
"----------\n"); |
1476 |
} |
1491 |
} |
1477 |
/** |
1492 |
/** |
Lines 1556-1565
Link Here
|
1556 |
" ^\n" + |
1571 |
" ^\n" + |
1557 |
"Access to enclosing constructor A2.B() is emulated by a synthetic accessor method\n" + |
1572 |
"Access to enclosing constructor A2.B() is emulated by a synthetic accessor method\n" + |
1558 |
"----------\n" + |
1573 |
"----------\n" + |
1559 |
"3. ERROR in p1\\A2.java (at line 20)\n" + |
1574 |
"3. WARNING in p1\\A2.java (at line 19)\n" + |
|
|
1575 |
" public void foo() { \n" + |
1576 |
" ^^^^^\n" + |
1577 |
"The method foo() from the type A2.C is never used locally\n" + |
1578 |
"----------\n" + |
1579 |
"4. ERROR in p1\\A2.java (at line 20)\n" + |
1560 |
" (new D.E(null, null, null, new F(get()) {})).execute(); \n" + |
1580 |
" (new D.E(null, null, null, new F(get()) {})).execute(); \n" + |
1561 |
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + |
1581 |
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + |
1562 |
"No enclosing instance of type D is accessible. Must qualify the allocation with an enclosing instance of type D (e.g. x.new A() where x is an instance of D).\n" + |
1582 |
"No enclosing instance of type D is accessible. Must qualify the allocation with an enclosing instance of type D (e.g. x.new A() where x is an instance of D).\n" + |
|
|
1583 |
"----------\n" + |
1584 |
"5. WARNING in p1\\A2.java (at line 20)\n" + |
1585 |
" (new D.E(null, null, null, new F(get()) {})).execute(); \n" + |
1586 |
" ^^^^^^^^\n" + |
1587 |
"The type new F(){} is never used locally\n" + |
1563 |
"----------\n"); |
1588 |
"----------\n"); |
1564 |
} |
1589 |
} |
1565 |
/** |
1590 |
/** |
Lines 5579-5585
Link Here
|
5579 |
"}", // =================, |
5604 |
"}", // =================, |
5580 |
}, |
5605 |
}, |
5581 |
"----------\n" + |
5606 |
"----------\n" + |
5582 |
"1. ERROR in p\\X.java (at line 11)\n" + |
5607 |
"1. WARNING in p\\X.java (at line 5)\n" + |
|
|
5608 |
" String variable = \"my testing\";\n" + |
5609 |
" ^^^^^^^^\n" + |
5610 |
"The field X.Outer.Inner.variable is never read locally\n" + |
5611 |
"----------\n" + |
5612 |
"2. ERROR in p\\X.java (at line 11)\n" + |
5583 |
" Zork z;\n" + |
5613 |
" Zork z;\n" + |
5584 |
" ^^^^\n" + |
5614 |
" ^^^^\n" + |
5585 |
"Zork cannot be resolved to a type\n" + |
5615 |
"Zork cannot be resolved to a type\n" + |
Lines 5633-5639
Link Here
|
5633 |
"}", // =================, |
5663 |
"}", // =================, |
5634 |
}, |
5664 |
}, |
5635 |
"----------\n" + |
5665 |
"----------\n" + |
5636 |
"1. ERROR in p\\X.java (at line 12)\n" + |
5666 |
"1. WARNING in p\\X.java (at line 4)\n" + |
|
|
5667 |
" String variable = \"my testing\";\n" + |
5668 |
" ^^^^^^^^\n" + |
5669 |
"The field X.Outer.Inner.variable is never read locally\n" + |
5670 |
"----------\n" + |
5671 |
"2. ERROR in p\\X.java (at line 12)\n" + |
5637 |
" Zork z;\n" + |
5672 |
" Zork z;\n" + |
5638 |
" ^^^^\n" + |
5673 |
" ^^^^\n" + |
5639 |
"Zork cannot be resolved to a type\n" + |
5674 |
"Zork cannot be resolved to a type\n" + |
Lines 6423-6444
Link Here
|
6423 |
" ^^^^^\n" + |
6458 |
" ^^^^^\n" + |
6424 |
"The type X.Test4 is never used locally\n" + |
6459 |
"The type X.Test4 is never used locally\n" + |
6425 |
"----------\n" + |
6460 |
"----------\n" + |
6426 |
"2. ERROR in X.java (at line 16)\n" + |
6461 |
"2. WARNING in X.java (at line 13)\n" + |
|
|
6462 |
" public Test4() {\n" + |
6463 |
" ^^^^^^^\n" + |
6464 |
"The constructor X.Test4() is never used locally\n" + |
6465 |
"----------\n" + |
6466 |
"3. WARNING in X.java (at line 14)\n" + |
6467 |
" super(\"available\", new Test3() {\n" + |
6468 |
" ^^^^^^^\n" + |
6469 |
"The type new X.Test3(){} is never used locally\n" + |
6470 |
"----------\n" + |
6471 |
"4. ERROR in X.java (at line 16)\n" + |
6427 |
" System.out.println(X.this.var1.trim());\n" + |
6472 |
" System.out.println(X.this.var1.trim());\n" + |
6428 |
" ^^^^^^\n" + |
6473 |
" ^^^^^^\n" + |
6429 |
"No enclosing instance of the type X is accessible in scope\n" + |
6474 |
"No enclosing instance of the type X is accessible in scope\n" + |
6430 |
"----------\n" + |
6475 |
"----------\n" + |
6431 |
"3. WARNING in X.java (at line 16)\n" + |
6476 |
"5. WARNING in X.java (at line 16)\n" + |
6432 |
" System.out.println(X.this.var1.trim());\n" + |
6477 |
" System.out.println(X.this.var1.trim());\n" + |
6433 |
" ^^^^\n" + |
6478 |
" ^^^^\n" + |
6434 |
"Read access to enclosing field X.var1 is emulated by a synthetic accessor method\n" + |
6479 |
"Read access to enclosing field X.var1 is emulated by a synthetic accessor method\n" + |
6435 |
"----------\n" + |
6480 |
"----------\n" + |
6436 |
"4. WARNING in X.java (at line 17)\n" + |
6481 |
"6. WARNING in X.java (at line 17)\n" + |
6437 |
" System.out.println(var1.trim());\n" + |
6482 |
" System.out.println(var1.trim());\n" + |
6438 |
" ^^^^\n" + |
6483 |
" ^^^^\n" + |
6439 |
"Read access to enclosing field X.var1 is emulated by a synthetic accessor method\n" + |
6484 |
"Read access to enclosing field X.var1 is emulated by a synthetic accessor method\n" + |
6440 |
"----------\n" + |
6485 |
"----------\n" + |
6441 |
"5. ERROR in X.java (at line 17)\n" + |
6486 |
"7. ERROR in X.java (at line 17)\n" + |
6442 |
" System.out.println(var1.trim());\n" + |
6487 |
" System.out.println(var1.trim());\n" + |
6443 |
" ^^^^\n" + |
6488 |
" ^^^^\n" + |
6444 |
"No enclosing instance of the type X is accessible in scope\n" + |
6489 |
"No enclosing instance of the type X is accessible in scope\n" + |