SOLR-13434: Using back Java 9 type reference

This commit is contained in:
Cao Manh Dat 2019-06-06 12:11:37 +01:00
parent 05ea0f2d54
commit 3364753661
1 changed files with 2 additions and 2 deletions

View File

@ -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;