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 Used { 7 8 public static int aStaticFieldThatIsNotUsedButKept = 42; 9 10 private final String name; 11 Used(String name)12 public Used(String name) { 13 this.name = name; 14 } 15 method()16 public String method() { 17 return "Hello, " + name; 18 } 19 aMethodThatIsNotUsedButKept()20 public String aMethodThatIsNotUsedButKept() { 21 return "Unused string"; 22 } 23 } 24