diff options
Diffstat (limited to 'test/cuchaz/enigma/inputs/innerClasses/A_Anonymous.java')
| -rw-r--r-- | test/cuchaz/enigma/inputs/innerClasses/A_Anonymous.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/cuchaz/enigma/inputs/innerClasses/A_Anonymous.java b/test/cuchaz/enigma/inputs/innerClasses/A_Anonymous.java new file mode 100644 index 0000000..f644439 --- /dev/null +++ b/test/cuchaz/enigma/inputs/innerClasses/A_Anonymous.java | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | /******************************************************************************* | ||
| 2 | * Copyright (c) 2015 Jeff Martin. | ||
| 3 | * All rights reserved. This program and the accompanying materials | ||
| 4 | * are made available under the terms of the GNU Lesser General Public | ||
| 5 | * License v3.0 which accompanies this distribution, and is available at | ||
| 6 | * http://www.gnu.org/licenses/lgpl.html | ||
| 7 | * | ||
| 8 | * Contributors: | ||
| 9 | * Jeff Martin - initial API and implementation | ||
| 10 | ******************************************************************************/ | ||
| 11 | package cuchaz.enigma.inputs.innerClasses; | ||
| 12 | |||
| 13 | public class A_Anonymous { | ||
| 14 | |||
| 15 | public void foo() { | ||
| 16 | Runnable runnable = new Runnable() { | ||
| 17 | @Override | ||
| 18 | public void run() { | ||
| 19 | // don't care | ||
| 20 | } | ||
| 21 | }; | ||
| 22 | runnable.run(); | ||
| 23 | } | ||
| 24 | } | ||