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