Fix (generic) return type

w/o this change class won't compile using jdk9-ea157
This commit is contained in:
Chris Hostetter 2017-02-19 18:09:35 -07:00
parent f45a3711b1
commit 5fb94cee68
1 changed files with 2 additions and 2 deletions

View File

@ -393,8 +393,8 @@ public class NamedList<T> implements Cloneable, Serializable, Iterable<Map.Entry
return sb.toString();
}
public NamedList getImmutableCopy() {
NamedList copy = clone();
public NamedList<T> getImmutableCopy() {
NamedList<T> copy = clone();
return new NamedList<>( Collections.unmodifiableList(copy.nvPairs));
}