Skip to content

Commit 488288f

Browse files
committed
Reformat/clean-up comments
1 parent 7b99708 commit 488288f

File tree

9 files changed

+19
-35
lines changed

9 files changed

+19
-35
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ dependencies {
1717

1818
testCompile 'org.mockito:mockito-core:2.7.19'
1919
testCompile 'org.hamcrest:java-hamcrest:2.0.0.0'
20-
testCompile('junit:junit:4.12'){
20+
testCompile('junit:junit:4.12') {
2121
exclude group: 'org.hamcrest', module: 'hamcrest-core' //renamed to java-hamcrest
2222
}
2323
}
2424

2525
jar {
26-
manifest{
27-
attributes "Main-Class" : "$mainClassName"
26+
manifest {
27+
attributes "Main-Class": "$mainClassName"
2828
}
2929
}

src/main/java/com/robertsmieja/example/apache/commons/cli/ExampleCliApp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static void main(String[] args) throws ParseException {
3131
System.out.println(echoArg);
3232
}
3333

34-
if (parsedOptions.hasOption(ADD_OPTION_ARG_LONG_ARG)){
34+
if (parsedOptions.hasOption(ADD_OPTION_ARG_LONG_ARG)) {
3535
String[] addArgs = parsedOptions.getOptionValues(ADD_OPTION_ARG_LONG_ARG);
3636
Integer firstArg = Integer.valueOf(addArgs[0]);
3737
Integer secondArg = Integer.valueOf(addArgs[1]);

src/test/java/com/robertsmieja/example/apache/commons/collections4/BagsExample.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
import static org.junit.Assert.assertEquals;
99

1010
/**
11-
* Example of Bags interface
12-
* <p>
1311
* NOTE: This violates the Collections interface contracts for almost every operation
1412
*/
1513
public class BagsExample {

src/test/java/com/robertsmieja/example/apache/commons/collections4/LRUMapExamples.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
import static org.junit.Assert.*;
88

9-
/**
10-
* Examples demonstrating the LRUMap
11-
*/
129
public class LRUMapExamples {
1310
LRUMap<Integer, String> lruMap;
1411

src/test/java/com/robertsmieja/example/apache/commons/collections4/MapIteratorExamples.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
import static org.junit.Assert.assertEquals;
1212

1313
/**
14-
* Examples relating to HashedMap and MapIterator, mostly focusing on MapIterator
15-
* <p>
1614
* The benefit of using HashedMap instead of the default HashMap is access to the mapIterator()
1715
* <p>
1816
* The main benefits to using MapIterator are performance, ease-of-use when doing value changes.

src/test/java/com/robertsmieja/example/apache/commons/collections4/MultiValuedMapExamples.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
import static org.hamcrest.Matchers.containsInAnyOrder;
1212
import static org.junit.Assert.*;
1313

14-
/**
15-
* Example of multi-value map
16-
*/
1714
public class MultiValuedMapExamples {
1815
MultiValuedMap<Integer, String> multiMap;
1916

src/test/java/com/robertsmieja/example/apache/commons/lang3/MethodUtilsExamples.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,6 @@
1010

1111
public class MethodUtilsExamples {
1212

13-
public static class ClassWithMethods {
14-
private void privatePrint() {
15-
System.out.println("privatePrint() called!");
16-
}
17-
18-
public void publicPrint() {
19-
System.out.println("publicPrint() called!");
20-
}
21-
22-
public int add(int x, int y) {
23-
return x + y;
24-
}
25-
}
26-
2713
@Test
2814
public void wrapAndUnwrapPrimitives() {
2915
assertEquals(int.class, MethodUtils.getPrimitiveType(Integer.class));
@@ -79,4 +65,18 @@ public void invokeAdd() throws NoSuchMethodException, IllegalAccessException, In
7965

8066
assertEquals(3, sum);
8167
}
68+
69+
public static class ClassWithMethods {
70+
private void privatePrint() {
71+
System.out.println("privatePrint() called!");
72+
}
73+
74+
public void publicPrint() {
75+
System.out.println("publicPrint() called!");
76+
}
77+
78+
public int add(int x, int y) {
79+
return x + y;
80+
}
81+
}
8282
}

src/test/java/com/robertsmieja/example/apache/commons/lang3/PairAndTupleExamples.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,10 @@
1313
import static org.hamcrest.Matchers.containsInAnyOrder;
1414
import static org.junit.Assert.*;
1515

16-
/**
17-
* This class contains example usages of Pairs and Tuples
18-
*/
1916
public class PairAndTupleExamples {
2017
MutablePair<Integer, String> mutablePair;
2118
Pair<Integer, List<String>> immutablePair;
2219

23-
2420
@Before
2521
public void setup() {
2622
mutablePair = new MutablePair<>(100, "mutableFoo");

src/test/java/com/robertsmieja/example/apache/commons/lang3/StringUtilsExamples.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
import static org.junit.Assert.assertEquals;
1111

1212
/**
13-
* This class contains example usages of StringUtils
14-
* <p>
15-
* All of these methods are null-safe
13+
* All of these methods used here are null-safe
1614
*/
1715
public class StringUtilsExamples {
1816

0 commit comments

Comments
 (0)