Skip to content

Commit 4f9a016

Browse files
committed
Conform to HMCTS Checkstyle; add private constructor
1 parent faa2e29 commit 4f9a016

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

src/main/java/com/codesungrape/hmcts/bookapi/BookApiApplication.java

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,26 @@
33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;
55

6-
76
/**
8-
* Entry point for the Book API Spring Boot application.
9-
* Starts the Spring ApplicationContext and embedded server.
7+
* Entry point for the Book API Spring Boot application. Starts the Spring ApplicationContext and
8+
* embedded server.
109
*/
1110
@SpringBootApplication
1211
public class BookApiApplication {
13-
/**
14-
* * Main entry point — starts the Spring Boot application.
15-
*/
16-
public static void main(String[] args) {
17-
SpringApplication.run(BookApiApplication.class, args);
18-
}
1912

13+
/**
14+
* Placeholder.
15+
*/
16+
private BookApiApplication() {
17+
// prevents instantiation
18+
}
19+
20+
/**
21+
* Main entry point — starts the Spring Boot application.
22+
*/
23+
public static void main(String[] args) {
24+
25+
SpringApplication.run(BookApiApplication.class, args);
26+
27+
}
2028
}

0 commit comments

Comments
 (0)