Skip to content

Commit

Permalink
remove warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
deepcloudlabs committed Mar 5, 2021
1 parent 9d2f25c commit 94d0ff6
Show file tree
Hide file tree
Showing 10 changed files with 4 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.example.banking.application;

@SuppressWarnings("finally")
public class CatchMeIfYouCan {
public static int gun() {
public static int gun() {
try {
return 42;
} finally {
Expand Down Expand Up @@ -34,4 +35,5 @@ public static void main(String[] args) {

}

@SuppressWarnings("serial")
class MyRuntimeException extends RuntimeException { }
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.example.banking.application;

import java.io.Closeable;
import java.io.IOException;

public class StudyTryWithResources1 {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.example.banking.application;

import java.io.Closeable;
import java.io.IOException;

public class StudyTryWithResources2 {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.example.banking.domain;

@SuppressWarnings("serial")
public class InsufficientBalanceException extends Exception {

private final double deficit;
Expand Down
1 change: 0 additions & 1 deletion part1/src/com/example/exercises/Exercise2.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.example.exercises;

import java.util.stream.Collectors;
import java.util.stream.Stream;

import com.example.dao.CountryDao;
import com.example.dao.InMemoryWorldDao;
Expand Down
1 change: 0 additions & 1 deletion study-collections/src/com/example/StudyList.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.example;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.LinkedList;
Expand Down
2 changes: 0 additions & 2 deletions study-collections/src/com/example/StudyMap.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.example;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.TreeMap;

Expand Down
4 changes: 0 additions & 4 deletions study-collections/src/com/example/StudySet.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package com.example;

import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
import java.io.IOException;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.http.WebSocket;
import java.net.http.WebSocket.Listener;
import java.util.concurrent.CompletionStage;
import java.util.concurrent.TimeUnit;

Expand Down
1 change: 0 additions & 1 deletion study-utility-classes/src/com/example/StudyCurrency.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.example;

import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.Locale;

public class StudyCurrency {
Expand Down

0 comments on commit 94d0ff6

Please sign in to comment.