Skip to content

Commit c6b42c8

Browse files
committed
Merge pull request #15647 from PeppaLittlePig
* pr/15647: Polish "Remove redundant throws Exception" Remove redundant throws Exception
2 parents ed7cc95 + ca7f338 commit c6b42c8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Here is a quick teaser of a complete Spring Boot application in Java:
4646
return "Hello World!";
4747
}
4848
49-
public static void main(String[] args) throws Exception {
49+
public static void main(String[] args) {
5050
SpringApplication.run(Example.class, args);
5151
}
5252

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2018 the original author or authors.
2+
* Copyright 2012-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -106,7 +106,7 @@
106106
*
107107
* // ... Bean definitions
108108
*
109-
* public static void main(String[] args) throws Exception {
109+
* public static void main(String[] args) {
110110
* SpringApplication.run(MyApplication.class, args);
111111
* }
112112
* }
@@ -117,7 +117,7 @@
117117
* customized before being run:
118118
*
119119
* <pre class="code">
120-
* public static void main(String[] args) throws Exception {
120+
* public static void main(String[] args) {
121121
* SpringApplication application = new SpringApplication(MyApplication.class);
122122
* // ... customize application settings here
123123
* application.run(args)

0 commit comments

Comments
 (0)