mirror of https://github.com/apache/lucene.git
SOLR-13434: Using back Java 9 type reference
This commit is contained in:
parent
05ea0f2d54
commit
3364753661
|
@ -32,7 +32,7 @@ public class HttpServletCarrier implements TextMap {
|
|||
private Iterator<Map.Entry<String, String>> it;
|
||||
|
||||
public HttpServletCarrier(HttpServletRequest request) {
|
||||
this.it = new Iterator<Map.Entry<String, String>>() {
|
||||
this.it = new Iterator<>() {
|
||||
|
||||
Enumeration<String> headerNameIt = request.getHeaderNames();
|
||||
String headerName = null;
|
||||
|
@ -61,7 +61,7 @@ public class HttpServletCarrier implements TextMap {
|
|||
String key = headerName;
|
||||
String val = headerValue.nextElement();
|
||||
|
||||
return new Map.Entry<String, String>() {
|
||||
return new Map.Entry<>() {
|
||||
@Override
|
||||
public String getKey() {
|
||||
return key;
|
||||
|
|
Loading…
Reference in New Issue