Skip to content

Commit

Permalink
- remove autoboxing
Browse files Browse the repository at this point in the history
  • Loading branch information
owagner committed Feb 23, 2016
1 parent 26b0dfe commit 675fd65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/tellerulam/hue2mqtt/MQTTHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ private void processSetComposite(String resource, String payload)
/*
* Parse a number and truncate to integer
*/
private int parseNumber(String number)
private Integer parseNumber(String number)
{
return (int)Double.parseDouble(number);
return Integer.valueOf((int)Double.parseDouble(number));
}

private void addDatapointToLightState(PHLightState ls,String datapoint,String value)
Expand Down

0 comments on commit 675fd65

Please sign in to comment.