Bug 1316869 - checkstyle fixes a=me
authorWes Kocher <wkocher@mozilla.com>
Fri, 11 Nov 2016 13:23:52 -0800
changeset 322206 b2f9a7cdcb514067018f23711c44f0906ed0e6d5
parent 322205 c0b400ac30a07926d29de4aee1137e2a50d425b5
child 322218 d6a3e31a3deb77ec32d73e0ce336327a803e4873
push id83818
push userkwierso@gmail.com
push dateFri, 11 Nov 2016 21:23:59 +0000
treeherdermozilla-inbound@b2f9a7cdcb51 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1316869
milestone52.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1316869 - checkstyle fixes a=me
mobile/android/base/java/org/mozilla/gecko/util/ColorUtil.java
--- a/mobile/android/base/java/org/mozilla/gecko/util/ColorUtil.java
+++ b/mobile/android/base/java/org/mozilla/gecko/util/ColorUtil.java
@@ -34,11 +34,11 @@ public class ColorUtil {
     }
 
     private static int grayscaleFromRGB(final int color) {
         final int red = Color.red(color);
         final int green = Color.green(color);
         final int blue = Color.blue(color);
         // Magic weighting taken from a stackoverflow post, supposedly related to how
         // humans perceive color.
-        return (int) (0.299*red + 0.587*green + 0.114*blue);
+        return (int) (0.299 * red + 0.587 * green + 0.114 * blue);
     }
 }