Skip to content

Commit 69c240c

Browse files
committed
Java source identation
1 parent d60d452 commit 69c240c

File tree

701 files changed

+4710
-4589
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

701 files changed

+4710
-4589
lines changed

batch/batch-listeners/src/main/java/org/javaee7/batch/batch/listeners/MyInputRecord.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
*/
66
public class MyInputRecord {
77
private int id;
8-
9-
public MyInputRecord() { }
10-
8+
9+
public MyInputRecord() {
10+
}
11+
1112
public MyInputRecord(int id) {
1213
this.id = id;
1314
}
@@ -19,7 +20,7 @@ public int getId() {
1920
public void setId(int id) {
2021
this.id = id;
2122
}
22-
23+
2324
@Override
2425
public String toString() {
2526
return "MyInputRecord: " + id;

batch/batch-listeners/src/main/java/org/javaee7/batch/batch/listeners/MyItemProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class MyItemProcessor implements ItemProcessor {
1212
@Override
1313
public Object processItem(Object t) {
1414
System.out.println("processItem: " + t);
15-
16-
return (((MyInputRecord)t).getId() % 2 == 0) ? null : new MyOutputRecord(((MyInputRecord)t).getId() * 2);
15+
16+
return (((MyInputRecord) t).getId() % 2 == 0) ? null : new MyOutputRecord(((MyInputRecord) t).getId() * 2);
1717
}
1818
}

batch/batch-listeners/src/main/java/org/javaee7/batch/batch/listeners/MyItemReader.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
*/
1010
@Named
1111
public class MyItemReader extends AbstractItemReader {
12-
12+
1313
private final StringTokenizer tokens;
14-
14+
1515
public MyItemReader() {
1616
tokens = new StringTokenizer("1,2,3,4,5,6,7,8,9,10", ",");
1717
}
18-
18+
1919
@Override
2020
public MyInputRecord readItem() {
2121
if (tokens.hasMoreTokens()) {

batch/batch-listeners/src/main/java/org/javaee7/batch/batch/listeners/MyOutputRecord.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
*/
66
public class MyOutputRecord {
77
private int id;
8-
9-
public MyOutputRecord() { }
10-
8+
9+
public MyOutputRecord() {
10+
}
11+
1112
public MyOutputRecord(int id) {
1213
this.id = id;
1314
}
@@ -19,7 +20,7 @@ public int getId() {
1920
public void setId(int id) {
2021
this.id = id;
2122
}
22-
23+
2324
@Override
2425
public String toString() {
2526
return "MyOutputRecord: " + id;

batch/batch-listeners/src/test/java/org/javaee7/batch/batch/listeners/BatchListenersTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ public class BatchListenersTest {
9393
@Deployment
9494
public static WebArchive createDeployment() {
9595
WebArchive war = ShrinkWrap.create(WebArchive.class)
96-
.addClass(BatchTestHelper.class)
97-
.addPackage("org.javaee7.batch.batch.listeners")
98-
.addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"))
99-
.addAsResource("META-INF/batch-jobs/myJob.xml");
96+
.addClass(BatchTestHelper.class)
97+
.addPackage("org.javaee7.batch.batch.listeners")
98+
.addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"))
99+
.addAsResource("META-INF/batch-jobs/myJob.xml");
100100
System.out.println(war.toString(true));
101101
return war;
102102
}

batch/batchlet-simple/src/test/java/org/javaee7/batch/batchlet/simple/MyBatchletTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ public class MyBatchletTest {
5252
@Deployment
5353
public static WebArchive createDeployment() {
5454
WebArchive war = ShrinkWrap.create(WebArchive.class)
55-
.addClass(BatchTestHelper.class)
56-
.addClass(MyBatchlet.class)
57-
.addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"))
58-
.addAsResource("META-INF/batch-jobs/myJob.xml");
55+
.addClass(BatchTestHelper.class)
56+
.addClass(MyBatchlet.class)
57+
.addAsWebInfResource(EmptyAsset.INSTANCE, ArchivePaths.create("beans.xml"))
58+
.addAsResource("META-INF/batch-jobs/myJob.xml");
5959
System.out.println(war.toString(true));
6060
return war;
6161
}

batch/chunk-checkpoint/src/main/java/org/javaee7/batch/chunk/checkpoint/MyInputRecord.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
*/
66
public class MyInputRecord {
77
private int id;
8-
9-
public MyInputRecord() { }
10-
8+
9+
public MyInputRecord() {
10+
}
11+
1112
public MyInputRecord(int id) {
1213
this.id = id;
1314
}
@@ -19,7 +20,7 @@ public int getId() {
1920
public void setId(int id) {
2021
this.id = id;
2122
}
22-
23+
2324
@Override
2425
public String toString() {
2526
return "MyInputRecord: " + id;

batch/chunk-checkpoint/src/main/java/org/javaee7/batch/chunk/checkpoint/MyItemProcessor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class MyItemProcessor implements ItemProcessor {
1212
@Override
1313
public MyOutputRecord processItem(Object t) {
1414
System.out.println("processItem: " + t);
15-
16-
return (((MyInputRecord)t).getId() % 2 == 0) ? null : new MyOutputRecord(((MyInputRecord)t).getId() * 2);
15+
16+
return (((MyInputRecord) t).getId() % 2 == 0) ? null : new MyOutputRecord(((MyInputRecord) t).getId() * 2);
1717
}
1818
}

batch/chunk-checkpoint/src/main/java/org/javaee7/batch/chunk/checkpoint/MyItemReader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
*/
1111
@Named
1212
public class MyItemReader extends AbstractItemReader {
13-
13+
1414
private StringTokenizer tokens;
1515
static int COUNT = 0;
1616

1717
@Override
1818
public void open(Serializable checkpoint) throws Exception {
1919
tokens = new StringTokenizer("1,2,3,4,5,6,7,8,9,10", ",");
2020
}
21-
21+
2222
@Override
2323
public MyInputRecord readItem() {
2424
if (tokens.hasMoreTokens()) {

batch/chunk-checkpoint/src/main/java/org/javaee7/batch/chunk/checkpoint/MyOutputRecord.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
*/
66
public class MyOutputRecord {
77
private int id;
8-
9-
public MyOutputRecord() { }
10-
8+
9+
public MyOutputRecord() {
10+
}
11+
1112
public MyOutputRecord(int id) {
1213
this.id = id;
1314
}
@@ -19,7 +20,7 @@ public int getId() {
1920
public void setId(int id) {
2021
this.id = id;
2122
}
22-
23+
2324
@Override
2425
public String toString() {
2526
return "MyOutputRecord: " + id;

0 commit comments

Comments
 (0)