2. bx_boxing_immediately_unboxed
Double A = 100d;double D = double.valueof (a);
Primitive value is boxed and then immediately unboxed.
Non-essential boxing and immediate unpacking operation.
Intellij will also give such a hint:
There's nothing to say.
3. Iju_setup_no_super
Seems to be a legacy problem, appearing in the era of JUnit3, e.g.
JUnit3 would do that.
public class Thetest extends TestCase {//test methods ... public static test suite () {return new Testsetup (New TestSuite (T Hetest.class) {protected void SetUp () throws Exception {Super.setup ();//set-up code called only once}protected void tear Down () throws Exception {//Tear-down code called only Oncesuper.teardown ();}};
So we need this super.setup () to initialize
JUNIT4 began to use annotation on a massive scale, and we had @before @After to do it.
Of course, now JUNIT4 has been used for many years, such as the Spock test Framework is also very useful ~
Ref:1 2 3
From FindBugs Middle School Java "three"