mirror of https://github.com/apache/lucene.git
Fix (generic) return type
w/o this change class won't compile using jdk9-ea157
This commit is contained in:
parent
f45a3711b1
commit
5fb94cee68
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue