Skip to content

Commit c18c3ab

Browse files
github-actionsgithub-actions
authored andcommitted
Formatted with Google Java Formatter
1 parent 49fc0d8 commit c18c3ab

16 files changed

+37
-43
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
package com.examplehub.basics.exception;
22

3-
public class ArithmeticExceptionExample {
4-
}
3+
public class ArithmeticExceptionExample {}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
package com.examplehub.basics.exception;
22

3-
public class ClassCastExceptionExample {
4-
}
3+
public class ClassCastExceptionExample {}

src/main/java/com/examplehub/basics/exception/CustomExceptionExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
public class CustomExceptionExample extends Exception {
44

5-
// @java.io.Serial
5+
// @java.io.Serial
66
private static final long serialVersionUID = 234122876006267687L;
77

88
public CustomExceptionExample() {
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
package com.examplehub.basics.exception;
22

3-
public class FinallyExample {
4-
}
3+
public class FinallyExample {}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
package com.examplehub.basics.exception;
22

3-
public class IndexOutOfBoundsExceptionExample {
4-
}
3+
public class IndexOutOfBoundsExceptionExample {}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
package com.examplehub.basics.exception;
22

3-
public class NullPointerExceptionExample {
4-
}
3+
public class NullPointerExceptionExample {}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
package com.examplehub.basics.exception;
22

3-
public class NumberFormatExceptionExample {
4-
}
3+
public class NumberFormatExceptionExample {}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
package com.examplehub.basics.exception;
22

3-
public class ThrowsExceptionExample {
4-
}
3+
public class ThrowsExceptionExample {}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package com.examplehub.basics.exception;
22

3-
import org.junit.jupiter.api.Test;
4-
53
import static org.junit.jupiter.api.Assertions.*;
64

5+
import org.junit.jupiter.api.Test;
6+
77
class ArithmeticExceptionExampleTest {
88
@Test
99
void testDivideByZero() {
@@ -14,4 +14,4 @@ void testDivideByZero() {
1414
assertTrue(true);
1515
}
1616
}
17-
}
17+
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
package com.examplehub.basics.exception;
22

3-
import org.junit.jupiter.api.Test;
4-
53
import static org.junit.jupiter.api.Assertions.*;
4+
65
import java.util.ArrayList;
76
import java.util.Arrays;
7+
import org.junit.jupiter.api.Test;
88

99
class ClassCastExceptionExampleTest {
1010
@Test
1111
void testClassCast() {
1212
try {
13-
String[] strArray = new String[]{"John", "Snow"};
13+
String[] strArray = new String[] {"John", "Snow"};
1414
ArrayList<String> strList = (ArrayList<String>) Arrays.asList(strArray);
1515
System.out.println("String list: " + strList);
1616
} catch (ClassCastException e) {
1717
assertTrue(true);
1818
}
1919
}
20-
}
20+
}

0 commit comments

Comments
 (0)