Skip to content

Commit

Permalink
Get rid of unchecked warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sstrickx committed May 17, 2022
1 parent eb663f4 commit 7f36a80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/yahoofinance/mock/YahooFinanceDispatcher.java
Expand Up @@ -23,7 +23,7 @@ public class YahooFinanceDispatcher extends Dispatcher {

private static final Logger log = LoggerFactory.getLogger(YahooFinanceDispatcher.class);

private Map<String, ResponseResource> pathToResponseResource;
private final Map<String, ResponseResource> pathToResponseResource;

public YahooFinanceDispatcher() {
this.pathToResponseResource = new HashMap<String, ResponseResource>();
Expand All @@ -45,7 +45,7 @@ private void loadRequests() {
Map<String, List<Map<String, Object>>> requests;
try {
String requestsYaml = Resources.toString(Resources.getResource("requests.yml"), Charsets.UTF_8);
requests = (Map<String, List<Map<String, Object>>>) yaml.load(requestsYaml);
requests = yaml.load(requestsYaml);
} catch (IOException e) {
log.warn("Unable to process requests.yml. No requests mocked.", e);
return;
Expand Down

0 comments on commit 7f36a80

Please sign in to comment.