View Javadoc

1   /**
2    * Project MI+
3    *
4    * Copyright (c) 2013, Syed Muhammad Humayun - smhumayun@gmail.com
5    *
6    * This project includes software developed by Syed Muhammad Humayun - smhumayun@gmail.com
7    * http://www.smhumayun.com
8    *
9    * Licensed under the Apache License, Version 2.0 (the
10   * "License"); you may not use this file except in compliance
11   * with the License. You may obtain a copy of the License at:
12   *
13   * http://www.apache.org/licenses/LICENSE-2.0
14   *
15   * Unless required by applicable law or agreed to in writing,
16   * software distributed under the License is distributed on
17   * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18   * KIND, either express or implied. See the License for the
19   * specific language governing permissions and limitations
20   * under the License.
21   */
22  package com.smhumayun.mi_plus.testdata;
23  
24  interface InterfaceForStaticClassInsideTopLevelClass { @SuppressWarnings("UnusedDeclaration")
25                                                         void m1 (); }
26  
27  interface InterfaceForNonStaticClassInsideTopLevelClass { @SuppressWarnings("UnusedDeclaration")
28                                                            void m2 (); }
29  
30  public class TopLevelClass {
31  
32      public static class StaticClassInsideTopLevelClass implements InterfaceForStaticClassInsideTopLevelClass {
33          public void m1() {
34              System.out.println("TopLevelClass$StaticClassInsideTopLevelClass.m1");
35          }
36      }
37  
38      public class NonStaticClassInsideTopLevelClass implements InterfaceForNonStaticClassInsideTopLevelClass {
39          public void m2() {
40              System.out.println("TopLevelClass$NonStaticClassInsideTopLevelClass.m2");
41          }
42      }
43  
44  }