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 assumevalues3; 5 6 public class Assumevalues { 7 8 public static final int ASSUMED_VALUE = 1; 9 public static final long ASSUMED_VALUEL = 1; 10 11 public static int value = 2; 12 public static long valueL = 2; 13 14 public static void main(String[] args) { 15 value = 3; 16 if (value == 1) { 17 System.out.println("1"); 18 } 19 if (value == 2) { 20 System.out.println("2"); 21 } 22 if (value == 3) { 23 System.out.println("3"); 24 } 25 26 valueL = 3; 27 if (valueL == 1) { 28 System.out.println("1L"); 29 } 30 if (valueL == 2) { 31 System.out.println("2L"); 32 } 33 if (valueL == 3) { 34 System.out.println("3L"); 35 } 36 } 37 } 38