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(); return sb.toString();
} }
public NamedList getImmutableCopy() { public NamedList<T> getImmutableCopy() {
NamedList copy = clone(); NamedList<T> copy = clone();
return new NamedList<>( Collections.unmodifiableList(copy.nvPairs)); return new NamedList<>( Collections.unmodifiableList(copy.nvPairs));
} }