Skip to content

Y20201105-1200

@carstenartur carstenartur tagged this 05 Nov 06:21
org.eclipse.jdt.internal.ui.text.java.hover.SourceViewerInformationControl.blend(RGB,
RGB, float) performs math using floating point precision

The method performs math operations using floating point
precision.Floating point precision is very imprecise. For
example,16777216.0f + 1.0f = 16777216.0f. Consider using double math
instead.

Rank: Scary (7), confidence: Normal
Pattern: FL_MATH_USING_FLOAT_PRECISION
Type: FL, Category: CORRECTNESS (Correctness)


Change-Id: I583f64dcce59d3f04f9ce3e0eaf30165da65d7a7
Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Assets 2
Loading