• 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 shaking1;
5 
6 public class Unused {
7 
8   public static int aStaticFieldThatIsNotUsedButKept = 42;
9 
unusedStaticMethod()10   public static void unusedStaticMethod() {
11     System.out.println("unusedStaticMethod");
12   }
13 
unusedInstanceMethod()14   public void unusedInstanceMethod() {
15     System.out.println("unusedInstanceMethod");
16   }
17 
aMethodThatIsNotUsedButKept()18   public String aMethodThatIsNotUsedButKept() {
19     return "Unused string";
20   }
21 }
22