diff options
author | Andrew Gaul <andrew@gaul.org> | 2016-03-14 20:04:25 -0700 |
---|---|---|
committer | Andrew Gaul <andrew@gaul.org> | 2016-03-14 20:20:25 -0700 |
commit | e87f053d9b13785dc314e74b0ea3a30d244dbec7 (patch) | |
tree | ae77e527f42beb002eff370bf90302a7ed83f6cd /app/src/main/java/de/danoeh/antennapod/dialog | |
parent | a7ef24606962385a5b20d1c6df2dec623cc3aa69 (diff) | |
download | AntennaPod-e87f053d9b13785dc314e74b0ea3a30d244dbec7.zip |
Avoid unneeded boxing
Found via FindBugs.
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/dialog')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/dialog/SleepTimerDialog.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/dialog/SleepTimerDialog.java b/app/src/main/java/de/danoeh/antennapod/dialog/SleepTimerDialog.java index 930079e40..89e24f882 100644 --- a/app/src/main/java/de/danoeh/antennapod/dialog/SleepTimerDialog.java +++ b/app/src/main/java/de/danoeh/antennapod/dialog/SleepTimerDialog.java @@ -138,7 +138,7 @@ public abstract class SleepTimerDialog { private long readTimeMillis() { TimeUnit selectedUnit = units[spTimeUnit.getSelectedItemPosition()]; - long value = Long.valueOf(etxtTime.getText().toString()); + long value = Long.parseLong(etxtTime.getText().toString()); return selectedUnit.toMillis(value); } |