1 // Copyright (c) 2017, 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 shaking13; 5 6 import shakinglib.LibraryClass; 7 8 public class Shaking { 9 fieldTest()10 private static void fieldTest() { 11 AClassWithFields instance = new AClassWithFields(); 12 instance.intField = 1; 13 AClassWithFields.staticIntField = 2; 14 15 LibraryClass.staticIntField = 3; 16 LibraryClass libraryInstance = new LibraryClass(); 17 libraryInstance.intField = 4; 18 } 19 main(String[] args)20 public static void main(String[] args) { 21 fieldTest(); 22 } 23 } 24