1 // Copyright (c) 2016, the R8 project authors. Please see the AUTHORS file 2 // for details. All rights reserved. Use of this source code is governed by a 3 // BSD-style license that can be found in the LICENSE file. 4 package shaking2; 5 6 public abstract class SuperClass implements Interface { 7 public int used; 8 staticMethod()9 public static void staticMethod() { 10 System.out.println("SuperClass::staticMethod"); 11 } 12 staticMethod2(int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8)13 public static void staticMethod2(int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8) { 14 System.out.println("SuperClass::staticMethod2: " + (a1 + a2 + a3 + a4 + a5 + a6 + a7 + a8)); 15 } 16 unusedStaticMethod()17 public static void unusedStaticMethod() { 18 System.out.println("SuperClass::unusedStaticMethod"); 19 } 20 virtualMethod()21 public void virtualMethod() { 22 System.out.println("SuperClass::virtualMethod"); 23 } 24 virtualMethod2(int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8)25 public void virtualMethod2(int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8) { 26 System.out.println("SuperClass::virtualMethod2 " + (a1 + a2 + a3 + a4 + a5 + a6 + a7 + a8)); 27 } 28 virtualMethod3()29 public void virtualMethod3() { 30 System.out.println("SuperClass::virtualMethod3"); 31 } 32 virtualMethod4(int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8)33 public void virtualMethod4(int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8) { 34 System.out.println("SuperClass::virtualMethod4 " + (a1 + a2 + a3 + a4 + a5 + a6 + a7 + a8)); 35 } 36 unusedVirtualMethod()37 public void unusedVirtualMethod() { 38 System.out.println("SuperClass::unusedVirtualMethod"); 39 } 40 unusedInterfaceMethod()41 public void unusedInterfaceMethod() { System.out.println("SuperClass::unusedInterfaceMethod"); } 42 accessFields()43 public void accessFields() { 44 System.out.println("SuperClass::fields: " + used); 45 } 46 } 47