1 6 7 package com.puppycrawl.tools.checkstyle.indentation; 8 9 13 public class InputValidDoWhileIndent { 14 15 public InputValidDoWhileIndent() { 16 } 17 18 19 public void method1() { 20 boolean test = true; 21 22 do System.getProperty("foo"); while (test) ; 23 24 do System.getProperty("foo"); 25 while (test); 26 27 do { 28 } while (test); 29 30 do 31 { 32 } 33 while (test); 34 35 do 36 { 37 System.getProperty("foo"); 38 } 39 while (test); 40 41 do 42 { System.getProperty("foo"); } 43 while (test); 44 45 do { 46 System.getProperty("foo"); 47 } while (test); 48 49 do { 50 System.getProperty("foo"); 51 System.getProperty("foo"); 52 } while (test); 53 54 do 55 { 56 System.getProperty("foo"); 57 System.getProperty("foo"); 58 } 59 while (test); 60 61 do { 62 if (test) { 63 System.getProperty("foo"); 64 } 65 System.getProperty("foo"); 66 } while (test); 67 68 do 69 System.getProperty("foo"); 70 while (test); 71 72 if (test) { 73 do 74 System.getProperty("foo"); 75 while (test); 76 } 77 78 do 79 { 80 } 81 while (test 82 && 7 < 8 && 5 < 6 83 && 9 < 10); 84 } 85 } 86 | Popular Tags |