01: package com.puppycrawl.tools.checkstyle.usage;
02:
03: import java.awt.event.ActionEvent;
04: import javax.swing.AbstractAction;
05: import javax.swing.JButton;
06:
07: public final class InputInnerUsedMethod {
08: public static void show() {
09: JButton b = new JButton(new AbstractAction() {
10: public void actionPerformed(ActionEvent e) {
11: doSomething();
12: }
13: });
14: }
15:
16: private static void doSomething() {
17: }
18: }
|