OSDN Git Service

Float.NaN != ... always evaluates to true, use Float.isNaN.
authorIan Rogers <irogers@google.com>
Fri, 18 Mar 2016 05:39:05 +0000 (22:39 -0700)
committerIan Rogers <irogers@google.com>
Fri, 18 Mar 2016 05:39:05 +0000 (22:39 -0700)
commita900c0a7b4f3fd4797290428a97c48066a2689eb
treec23ab181f41f6dca3c9ddbbfeed6ea6f65355d04
parentdd25dbe55a28122415a6c8d8fc556d2a31f7f248
Float.NaN != ... always evaluates to true, use Float.isNaN.

Caught by error prone.
http://errorprone.info/bugpattern/EqualsNaN

Bug: 27723540
Change-Id: Ia83b2937ab9e92ebd1c52b7199903a599fbe5ce5
src/com/android/gallery3d/filtershow/colorpicker/ColorBrightnessView.java
src/com/android/gallery3d/filtershow/colorpicker/ColorHueView.java
src/com/android/gallery3d/filtershow/colorpicker/ColorOpacityView.java
src/com/android/gallery3d/filtershow/colorpicker/ColorRectView.java
src/com/android/gallery3d/filtershow/colorpicker/ColorSVRectView.java
src/com/android/gallery3d/filtershow/colorpicker/ColorSaturationView.java
src/com/android/gallery3d/filtershow/colorpicker/ColorValueView.java