Fix type inference w/ JDK8

Motivation:

Compile crash w/ JDK8:

```
[ERROR]
/Users/slandelle/Documents/dev/workspaces/workspace-ahc2/async-http-clie
nt-project/netty-bp/codec-dns/src/main/java/io/netty/handler/codec/dns/D
nsMessageUtil.java:[176,16] reference to append is ambiguous
  both method append(java.lang.String) in java.lang.StringBuilder and
method append(java.lang.StringBuffer) in java.lang.StringBuilder match
```

Modification:

Force type explicitly

Result:

Class compile w/ JDK8
This commit is contained in:
Stephane Landelle 2016-03-23 12:46:08 +01:00 committed by Norman Maurer
parent d6bf388343
commit 3d115349b5

View File

@ -173,7 +173,7 @@ final class DnsMessageUtil {
for (int i = 0; i < count; i ++) {
buf.append(StringUtil.NEWLINE)
.append(StringUtil.TAB)
.append(message.recordAt(section, i));
.append(message.<DnsRecord>recordAt(section, i));
}
}