summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fietz <martin.fietz@gmail.com>2018-01-21 13:05:10 +0100
committerMartin Fietz <martin.fietz@gmail.com>2018-01-21 13:05:10 +0100
commit86f6c001c14e1ec04e687944446e7c02b7150cb7 (patch)
tree9aa9c3a1ae43e54586945bddcb9360cc7317aa13
parent595674a8724c7b74b2087a728a2576ed01c3cc0f (diff)
downloadAntennaPod-86f6c001c14e1ec04e687944446e7c02b7150cb7.zip
Inline variables
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/gpoddernet/model/GpodnetEpisodeAction.java3
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/storage/PodDBAdapter.java5
2 files changed, 2 insertions, 6 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/gpoddernet/model/GpodnetEpisodeAction.java b/core/src/main/java/de/danoeh/antennapod/core/gpoddernet/model/GpodnetEpisodeAction.java
index 3a2ff31dc..b76988fd8 100644
--- a/core/src/main/java/de/danoeh/antennapod/core/gpoddernet/model/GpodnetEpisodeAction.java
+++ b/core/src/main/java/de/danoeh/antennapod/core/gpoddernet/model/GpodnetEpisodeAction.java
@@ -199,7 +199,7 @@ public class GpodnetEpisodeAction {
}
public String writeToString() {
- String result = this.podcast + "\t" +
+ return this.podcast + "\t" +
this.episode + "\t" +
this.deviceId + "\t" +
this.action + "\t" +
@@ -207,7 +207,6 @@ public class GpodnetEpisodeAction {
String.valueOf(this.started) + "\t" +
String.valueOf(this.position) + "\t" +
String.valueOf(this.total);
- return result;
}
/**
diff --git a/core/src/main/java/de/danoeh/antennapod/core/storage/PodDBAdapter.java b/core/src/main/java/de/danoeh/antennapod/core/storage/PodDBAdapter.java
index 67f42bc93..7d6ba0e32 100644
--- a/core/src/main/java/de/danoeh/antennapod/core/storage/PodDBAdapter.java
+++ b/core/src/main/java/de/danoeh/antennapod/core/storage/PodDBAdapter.java
@@ -1331,10 +1331,7 @@ public class PodDBAdapter {
if (size == 1) {
return "(?)";
}
- String builder = "(" +
- TextUtils.join(",", Collections.nCopies(size, "?")) +
- ")";
- return builder;
+ return "(" + TextUtils.join(",", Collections.nCopies(size, "?")) + ")";
}
public final Cursor getFeedCursor(final long id) {