summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-07-28 11:39:29 +0300
committerpatrik <patrik@vaadin.com>2015-08-04 10:41:51 +0300
commit08a09efbc88594a0bc0dde1384050a24ddadc608 (patch)
tree122241f1b32af90753c6dee86bbbe37ccaaeffb6
parente21f1f2764ae2c7a2416bda7d0594a21ef40944f (diff)
downloadvaadin-framework-08a09efbc88594a0bc0dde1384050a24ddadc608.tar.gz
vaadin-framework-08a09efbc88594a0bc0dde1384050a24ddadc608.zip
Make methods return what they promise
Change-Id: I4e1bbb5106bdeec966439e6a9cf926fd263afa56
-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);
}-*/;