code_junkie

Is there a CheckStyle rule to force if else keywords to be on the same line in an if/else ladder?

Nov 13th, 2011
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. if (true)
  2. {
  3. System.out.println("20");
  4. }
  5. else
  6. if (true)
  7. {
  8. System.out.println("30");
  9. }
  10.  
  11. else if
  12.  
  13. else
  14. if
Add Comment
Please, Sign In to add comment