Skip to content

Commit

Permalink
the joys of reflection...
Browse files Browse the repository at this point in the history
  • Loading branch information
zcourts committed Jul 19, 2014
1 parent 2fbc495 commit 38b487f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -164,7 +164,7 @@ public MediaType(String type, String subtype, Map<String, String> parameters) {
this.type = type == null ? MEDIA_TYPE_WILDCARD : type;
this.subtype = subtype == null ? MEDIA_TYPE_WILDCARD : subtype;
if (parameters == null) {
this.parameters = emptyMap;
this.parameters = emptyMap == null ? Collections.unmodifiableMap(new HashMap<String, String>()) : emptyMap;
} else {
Map<String, String> map = new TreeMap<String, String>(new Comparator<String>() {
public int compare(String o1, String o2) {
Expand Down

0 comments on commit 38b487f

Please sign in to comment.