netty5/codec-http/src/main/java/io/netty
Dmitriy Dumanskiy afc03da93b Java 8 migration. Use reference to StandardCharsets in CharsetUtil. (#8757)
Motivation:

No need to initialize charsets from the string. We can take already allocated charset from StandardCharsets class.

Modification:

Replace Charset.forName("US-ASCII") with StandardCharsets.US_ASCII.
Removed Charset[] values() method and internal static variable as it was used only in tests.

Result:

Reuse what the JDK provides
2019-01-22 16:50:36 +01:00
..
handler/codec Java 8 migration. Use reference to StandardCharsets in CharsetUtil. (#8757) 2019-01-22 16:50:36 +01:00