Skip to content

Commit 183249d

Browse files
committed
Added HelloWorldStyle
1 parent f690044 commit 183249d

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

HelloWorldStyle.java

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/**
2+
* HelloWorld program implements an application that
3+
* simply displays "Hello World!" to the standard output.
4+
*
5+
* @author Angel
6+
* @version 1.0
7+
* @since 2025-09-09
8+
*/
9+
public final class HelloWorldStyle {
10+
11+
/**
12+
* This is a private constructor used to satisfy the
13+
* style checker
14+
*
15+
* @exception IllegalStateException Utility class
16+
* @se
17+
* e IllegalStateException
18+
*/
19+
private HelloWorldStyle() {
20+
throw new IllegalStateException("Utility class");
21+
}
22+
23+
/**
24+
* This is the main method
25+
*
26+
* @param args Unused
27+
*/
28+
public static void main(String[] args) {
29+
System.out.println("HelloWorld! with style");
30+
}
31+
}

package-info.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* This is the package-info for
3+
* HelloWorldStyle.java.
4+
* @author Angel
5+
* @version 1.0
6+
* @since 2025-09-09
7+
*/

run_linter.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
3+
java -jar ./linter/checkstyle.app -c ./linter/sun_checks.xml *.java
4+

0 commit comments

Comments
 (0)