Mads Ager | 418d1ca | 2017-05-22 09:35:49 +0200 | [diff] [blame] | 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 | |
| 10 | public static void unusedStaticMethod() { |
| 11 | System.out.println("unusedStaticMethod"); |
| 12 | } |
| 13 | |
| 14 | public void unusedInstanceMethod() { |
| 15 | System.out.println("unusedInstanceMethod"); |
| 16 | } |
| 17 | |
| 18 | public String aMethodThatIsNotUsedButKept() { |
| 19 | return "Unused string"; |
| 20 | } |
| 21 | } |