Glowman554 / BetterNudel

Imprecise redefinition of library constant JAVA-W1033
Anti-pattern
Major
2 occurrences in this check
Math.PI should be used instead of .1415929203539825
63
64    @Test
65    public void test11() {
66        assertEquals(3.1415929203539825d, MathInterpreter.eval("pi", Log::log));67    }
68
69    @Test
27            throw new IllegalArgumentException(String.format("pGewicht muss unter 560 sein und über 0 sein war aber %d!", pGewicht));
28        }
29
30        if(pGroesse <= 0 || pGroesse > 2.72) {31            throw new IllegalArgumentException(String.format("pGroesse muss unter 2.72 sein und über 0 sein war aber %f!", pGroesse));
32        }
33