netty5/transport/src
Sky Ao 47f016bf56 extract self() method to avoid too many unchecked @SuppressWarnings
Motivation:

There are many @SuppressWarnings("unchecked") in the code for the same purpose that we want to do this return:

@SuppressWarnings("unchecked")
public B someMethod() {
    ......
    return (B) this;
}
Modification:

Add a method self() and reuse in all these return lines:

@SuppressWarnings("unchecked")
    private B self() {
        return (B) this;
    }
Result:

Then only one @SuppressWarnings("unchecked") left in the code.
2017-09-27 13:25:16 +02:00
..
main/java/io/netty extract self() method to avoid too many unchecked @SuppressWarnings 2017-09-27 13:25:16 +02:00
test/java/io/netty Add Unit test for [#7143] 2017-08-24 13:29:38 +02:00