| Home >> All >> com >> puppycrawl >> tools >> checkstyle >> [ indentation Javadoc ] |
Source code: com/puppycrawl/tools/checkstyle/indentation/InputInvalidForIndent.java
1 /* 2 * InputValidForIndent.java 3 * 4 * Created on November 10, 2002, 10:04 PM 5 */ 6 7 package com.puppycrawl.tools.checkstyle.indentation; 8 9 /** 10 * 11 * @author jrichard 12 */ 13 public class InputInvalidForIndent { 14 15 /** Creates a new instance of InputValidForIndent */ 16 public InputInvalidForIndent() { 17 } 18 19 20 private void method1() 21 { 22 for (int i=0; i<10; i++) { 23 } 24 25 for (int i=0; i<10; i++) 26 { 27 } 28 29 for (int i=0; i<10; i++) 30 { 31 System.getProperty("foo"); 32 } 33 34 for (int i=0; i<10; i++) 35 { 36 boolean test = true; 37 if (test) { // mixed styles are OK 38 System.getProperty("foo"); 39 } 40 } 41 42 for ( 43 int i=0; 44 i<10; 45 i++) 46 { 47 48 } 49 50 for ( 51 int i=0; 52 i<10; 53 i++) 54 { 55 56 } 57 58 for (int i=0; 59 i<10; 60 i++) 61 { 62 63 } 64 65 for (int i=0; 66 i<10 && 4<5 67 && 7<8; 68 i++) 69 { 70 } 71 72 for (int i=0; i<10; i++) { 73 System.getProperty("foo"); } 74 75 for (int i=0; 76 i<10; i++ 77 ) { 78 System.getProperty("foo"); 79 } 80 } 81 82 }