1 6 7 package com.puppycrawl.tools.checkstyle.indentation; 8 9 13 public class InputValidBinaryOpIndent { 14 15 16 public InputValidBinaryOpIndent() { 17 } 18 19 private void method1() { 20 boolean test = true; 21 int i, j, k = 4; 22 int x = 4; 23 int y = 7; 24 25 i = x + k; 26 27 j = y + x 28 + k; 29 30 int one = 1, two = 2, three = 3, four = 4; 31 int answer; 32 33 answer = (one + one) / 2; 34 35 answer = (one 36 + one) / 2; 37 38 answer = (one + one) 39 / 2; 40 41 answer = 42 (one + one) 43 / 2; 44 45 answer = 46 ((one + one) 47 / 2) + 4; 48 49 50 if (one + one == two) { 51 System.out.println("true"); 52 } 53 54 if (one + one 55 == two) { 56 } 57 58 if (one + one == two && 1 + 1 == two) { 59 } 60 61 if (one + one == two 62 && 1 + 1 == two) { 63 } 64 65 if ((one 66 + one) == two && (1 + 1) == two) { 67 } 68 69 if ((one + one) 70 == two 71 && (1 + 1) == two) { 72 } 73 74 if ((one + one) 75 == two 76 && 77 (1 + 1) == two) { 78 } 79 80 81 } 82 83 } 84 | Popular Tags |