• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 class UnusedSubclass extends SuperClass {
7   private int used;
8   private int unused;
9 
UnusedSubclass(int used)10   public UnusedSubclass(int used) {
11     this.used = used;
12   }
13 
14   @Override
virtualMethod()15   public void virtualMethod() {
16     System.out.println("UnusedSubclass::virtualMethod");
17   }
18 
19   @Override
interfaceMethod()20   public void interfaceMethod() {
21     System.out.println("UnusedSubclass::interfaceMethod");
22   }
23 
24   @Override
interfaceMethod2()25   public void interfaceMethod2() {
26     System.out.println("UnusedSubclass::interfaceMethod2");
27   }
28 
29   @Override
interfaceMethod3()30   public void interfaceMethod3() {
31     System.out.println("UnusedSubclass::interfaceMethod3");
32   }
33 
34   @Override
interfaceMethod4()35   public void interfaceMethod4() {
36     System.out.println("UnusedSubclass::interfaceMethod4");
37   }
38 
39   @Override
interfaceMethod5(int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8)40   public void interfaceMethod5(int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8) {
41     System.out.println("SubClass1::interfaceMethod5 " + (a1 + a2 + a3 + a4 + a5 + a6 + a7 + a8));
42   }
43 }
44