summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-07-28 11:39:29 +0300
committerArtur Signell <artur@vaadin.com>2015-07-28 11:39:34 +0300
commitedbe0cef91f1776a0ceebd6d47cfd73589cddce3 (patch)
tree6fe542b948c27ee1153d46978672c9a76e99b647
parent9147fbad899003e578e0ffdfd1e1ff822d8b968e (diff)
downloadvaadin-framework-edbe0cef91f1776a0ceebd6d47cfd73589cddce3.tar.gz
vaadin-framework-edbe0cef91f1776a0ceebd6d47cfd73589cddce3.zip
Make methods return what they promise
Change-Id: I0b906047a6f6bf81b6c5fb544164b62916ef5982
-rw-r--r--client/src/com/vaadin/client/ComputedStyle.java6
1 files changed, 3 insertions, 3 deletions
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);
}-*/;