]> source.dussan.org Git - vaadin-framework.git/commitdiff
Make methods return what they promise
authorArtur Signell <artur@vaadin.com>
Tue, 28 Jul 2015 08:39:29 +0000 (11:39 +0300)
committerArtur Signell <artur@vaadin.com>
Tue, 28 Jul 2015 08:39:34 +0000 (11:39 +0300)
Change-Id: I0b906047a6f6bf81b6c5fb544164b62916ef5982

client/src/com/vaadin/client/ComputedStyle.java

index 61cb3c2eb6ea58ee8e2ea034d1a9504e4f9dbedc..b11ba4b26a8ba0153ae9bcb70b9c8d5f84127cef 100644 (file)
@@ -155,10 +155,10 @@ public class ComputedStyle {
      *            the property to retrieve
      * @return the double value of the property
      */
-    public final int getDoubleProperty(String name) {
+    public final double getDoubleProperty(String name) {
         Profiler.enter("ComputedStyle.getDoubleProperty");
         String value = getProperty(name);
-        int result = parseDoubleNative(value);
+        double result = parseDoubleNative(value);
         Profiler.leave("ComputedStyle.getDoubleProperty");
         return result;
     }
@@ -275,7 +275,7 @@ public class ComputedStyle {
      * @return the value from the string before any non-numeric characters or
      *         NaN if the value cannot be parsed as a number
      */
-    private static native int parseDoubleNative(final String value)
+    private static native double parseDoubleNative(final String value)
     /*-{
         return parseFloat(value);
     }-*/;