From edbe0cef91f1776a0ceebd6d47cfd73589cddce3 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Tue, 28 Jul 2015 11:39:29 +0300 Subject: Make methods return what they promise Change-Id: I0b906047a6f6bf81b6c5fb544164b62916ef5982 --- client/src/com/vaadin/client/ComputedStyle.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src') diff --git a/client/src/com/vaadin/client/ComputedStyle.java b/client/src/com/vaadin/client/ComputedStyle.java index 61cb3c2eb6..b11ba4b26a 100644 --- a/client/src/com/vaadin/client/ComputedStyle.java +++ b/client/src/com/vaadin/client/ComputedStyle.java @@ -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); }-*/; -- cgit v1.2.3