Skip to content

Commit

Permalink
Make methods return what they promise
Browse files Browse the repository at this point in the history
Change-Id: I0b906047a6f6bf81b6c5fb544164b62916ef5982
  • Loading branch information
Artur- committed Jul 28, 2015
1 parent 9147fba commit edbe0ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/com/vaadin/client/ComputedStyle.java
Expand Up @@ -155,10 +155,10 @@ public final int getIntProperty(String name) {
* the property to retrieve * the property to retrieve
* @return the double value of the property * @return the double value of the property
*/ */
public final int getDoubleProperty(String name) { public final double getDoubleProperty(String name) {
Profiler.enter("ComputedStyle.getDoubleProperty"); Profiler.enter("ComputedStyle.getDoubleProperty");
String value = getProperty(name); String value = getProperty(name);
int result = parseDoubleNative(value); double result = parseDoubleNative(value);
Profiler.leave("ComputedStyle.getDoubleProperty"); Profiler.leave("ComputedStyle.getDoubleProperty");
return result; return result;
} }
Expand Down Expand Up @@ -275,7 +275,7 @@ private static native int parseIntNative(final String value)
* @return the value from the string before any non-numeric characters or * @return the value from the string before any non-numeric characters or
* NaN if the value cannot be parsed as a number * 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); return parseFloat(value);
}-*/; }-*/;
Expand Down

0 comments on commit edbe0ce

Please sign in to comment.