01: ////////////////////////////////////////////////////////////////////////////////
02: // Test case file for checkstyle.
03: // Created: 2001
04: ////////////////////////////////////////////////////////////////////////////////
05: package com.puppycrawl.tools.checkstyle;
06:
07: /**
08: * Test case for detecting operator wrapping.
09: * @author Lars K�hne
10: **/
11: class InputOpWrap {
12: void test() {
13: int x = 1 + 2 - 3 - 4;
14: x = x + 2;
15: boolean y = true && false;
16: y = true && false;
17: y = false && true;
18: }
19:
20: void testAssignment() {
21: int x = 0; //error when checking assignment operators with EOL wrap option
22: int y = 0;
23: }
24:
25: <T extends Comparable & java.io.Serializable> void testGenerics1() {
26: Comparable<String> c = new String();
27: }
28: }
|