1
2
3
4
5
6
7
8
9
10
11
12
13 package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocmethod;
14
15 import java.awt.event.MouseEvent;
16 import java.awt.event.MouseAdapter;
17 import javax.swing.JButton;
18
19 public class InputJavadocMethodScopeAnonInner
20 {
21
22
23
24 private JButton mButton = new JButton();
25
26
27
28
29 private Runnable mRunnable = new Runnable() {
30 public void run()
31 {
32 System.identityHashCode("running");
33 }
34 };
35
36
37
38
39 InputJavadocMethodScopeAnonInner()
40 {
41 mButton.addMouseListener( new MouseAdapter()
42 {
43 public void mouseClicked( MouseEvent aEv )
44 {
45 System.identityHashCode("click");
46 }
47 } );
48 }
49
50
51
52
53 public void addInputAnonInner()
54 {
55 mButton.addMouseListener( new MouseAdapter()
56 {
57 public void mouseClicked( MouseEvent aEv )
58 {
59 System.identityHashCode("click");
60 }
61 } );
62 }
63 }