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();
|
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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue