Skip to content

Commit

Permalink
[SHIBUI-812]
Browse files Browse the repository at this point in the history
Replaced usage of HashMap in declaration with generic.
  • Loading branch information
Bill Smith committed Sep 19, 2018
1 parent 3b6de6b commit 739924a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
* @author Bill Smith (wsmith@unicon.net)
Expand All @@ -14,13 +14,13 @@
@ConfigurationProperties(prefix="custom")
public class CustomAttributesConfiguration {

private List<HashMap<String, String>> attributes = new ArrayList<>();
private List<? extends Map<String, String>> attributes = new ArrayList<>();

public List<HashMap<String, String>> getAttributes() {
public List<? extends Map<String, String>> getAttributes() {
return attributes;
}

public void setAttributes(List<HashMap<String, String>> attributes) {
public void setAttributes(List<? extends Map<String, String>> attributes) {
this.attributes = attributes;
}
}

0 comments on commit 739924a

Please sign in to comment.