Home | History | Annotate | Download | only in shaking1
      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 
     12   public Used(String name) {
     13     this.name = name;
     14   }
     15 
     16   public String method() {
     17     return "Hello, " + name;
     18   }
     19 
     20   public String aMethodThatIsNotUsedButKept() {
     21     return "Unused string";
     22   }
     23 }
     24