netty5/codec/src
Nikolay Fedorovskikh c9668ce40f The constants calculation in compile-time
Motivation:
Allow pre-computing calculation of the constants for compiler where it could be.
Similar fix in OpenJDK: [1].

Modifications:
- Use parentheses.
- Simplify static initialization of `BYTE2HEX_*` arrays in `StringUtil`.

Result:
Less bytecode, possible faster calculations at runtime.

[1] https://bugs.openjdk.java.net/browse/JDK-4477961
2017-12-21 07:41:38 +01:00
..
main/java/io/netty/handler/codec The constants calculation in compile-time 2017-12-21 07:41:38 +01:00
test Make methods 'static' where it possible 2017-10-21 14:59:26 +02:00