mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-06 17:29:31 +08:00
style: include NAB_NEEDLESS_BOX_TO_UNBOX
(#5488)
This commit is contained in:
@ -165,9 +165,6 @@
|
||||
<Match>
|
||||
<Bug pattern="DSOC_DUBIOUS_SET_OF_COLLECTIONS" />
|
||||
</Match>
|
||||
<Match>
|
||||
<Bug pattern="NAB_NEEDLESS_BOX_TO_UNBOX" />
|
||||
</Match>
|
||||
<Match>
|
||||
<Bug pattern="FPL_FLOATING_POINT_LOOPS" />
|
||||
</Match>
|
||||
|
@ -196,6 +196,6 @@ public class MedianOfRunningArrayTest {
|
||||
stream.insert(12345.67891);
|
||||
assertEquals(12345.67891, stream.median());
|
||||
stream.insert(23456789.98);
|
||||
assertEquals(Double.valueOf(11734567.83), stream.median(), .01);
|
||||
assertEquals(11734567.83, stream.median(), .01);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user