mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8167117: insert missing final keywords
Reviewed-by: jlaskey, sundar
This commit is contained in:
parent
9bf4e700fc
commit
c86ac94029
58 changed files with 398 additions and 405 deletions
|
@ -37,13 +37,13 @@ public class MissingMethodExample extends ArrayList
|
|||
implements MissingMethodHandler {
|
||||
|
||||
@Override
|
||||
public Object doesNotUnderstand(String name, Object... args) {
|
||||
public Object doesNotUnderstand(final String name, final Object... args) {
|
||||
// This simple doesNotUnderstand just prints method name and args.
|
||||
// You can put useful method routing logic here.
|
||||
System.out.println("you called " + name);
|
||||
if (args.length != 0) {
|
||||
System.out.println("arguments are: ");
|
||||
for (Object arg : args) {
|
||||
for (final Object arg : args) {
|
||||
System.out.println(" " + arg);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue