Skip to content

Commit 84135d5

Browse files
Remove unthrown exception declarations from methods (#309)
* Remove unnecessary throws Exception declarations from sample applications Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com> * Remove unnecessary throws InterruptedException from test methods Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com> * Remove additional unnecessary exception declarations from test methods Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com> * Remove unused JsonMappingException import from StatementTests Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
1 parent d9a7e8e commit 84135d5

32 files changed

Lines changed: 48 additions & 53 deletions

File tree

samples/delete-activity-profile/src/main/java/dev/learning/xapi/samples/deleteactivityprofile/DeleteActivityProfileApplication.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) {
3131
}
3232

3333
@Override
34-
public void run(String... args) throws Exception {
34+
public void run(String... args) {
3535

3636
// Post activity profile for later deletion
3737
postActivityProfile();

samples/delete-agent-profile/src/main/java/dev/learning/xapi/samples/deleteagentprofile/DeleteAgentProfileApplication.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) {
3131
}
3232

3333
@Override
34-
public void run(String... args) throws Exception {
34+
public void run(String... args) {
3535

3636
// Post Example agent profile for later deletion
3737
postAgentProfile();

samples/delete-state/src/main/java/dev/learning/xapi/samples/deletestate/DeleteStateApplication.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) {
3131
}
3232

3333
@Override
34-
public void run(String... args) throws Exception {
34+
public void run(String... args) {
3535

3636
// Post Example state for later deletion
3737
postState();

samples/delete-states/src/main/java/dev/learning/xapi/samples/deletestates/DeleteStatesApplication.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) {
3131
}
3232

3333
@Override
34-
public void run(String... args) throws Exception {
34+
public void run(String... args) {
3535

3636
// Post state for later deletion
3737
postState();

samples/get-about/src/main/java/dev/learning/xapi/samples/getabout/GetAboutApplication.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) {
3131
}
3232

3333
@Override
34-
public void run(String... args) throws Exception {
34+
public void run(String... args) {
3535

3636
// Get About
3737
ResponseEntity<About> response = client.getAbout().block();

samples/get-activity-profile/src/main/java/dev/learning/xapi/samples/getactivityprofile/GetActivityProfileApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static void main(String[] args) {
3232
}
3333

3434
@Override
35-
public void run(String... args) throws Exception {
35+
public void run(String... args) {
3636

3737
// Post activity profile for later retrieval
3838
postActivityProfile();

samples/get-activity-profiles/src/main/java/dev/learning/xapi/samples/getactivityprofiles/GetActivityProfilesApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static void main(String[] args) {
3333
}
3434

3535
@Override
36-
public void run(String... args) throws Exception {
36+
public void run(String... args) {
3737

3838
// Post Example Activity profile for later retrieval
3939
postActivityProfile();

samples/get-activity/src/main/java/dev/learning/xapi/samples/getactivity/GetActivityApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static void main(String[] args) {
3535
}
3636

3737
@Override
38-
public void run(String... args) throws Exception {
38+
public void run(String... args) {
3939

4040
// Post statement for later retrieval of activity
4141
postStatement();

samples/get-agent-profile/src/main/java/dev/learning/xapi/samples/getagentprofile/GetAgentProfileApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static void main(String[] args) {
3232
}
3333

3434
@Override
35-
public void run(String... args) throws Exception {
35+
public void run(String... args) {
3636

3737
// Post Example profile for later retrieval
3838
postAgentProfile();

samples/get-agent-profiles/src/main/java/dev/learning/xapi/samples/getagentprofiles/GetAgentProfilesApplication.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) {
3131
}
3232

3333
@Override
34-
public void run(String... args) throws Exception {
34+
public void run(String... args) {
3535

3636
// Get Profiles
3737
ResponseEntity<List<String>> response = client

0 commit comments

Comments
 (0)