Replace StringBuilder with String
This commit is contained in:
parent
919ee63c3c
commit
d7e1b0f977
|
@ -199,16 +199,15 @@ public class GpodnetEpisodeAction {
|
|||
}
|
||||
|
||||
public String writeToString() {
|
||||
StringBuilder result = new StringBuilder();
|
||||
result.append(this.podcast).append("\t");
|
||||
result.append(this.episode).append("\t");
|
||||
result.append(this.deviceId).append("\t");
|
||||
result.append(this.action).append("\t");
|
||||
result.append(this.timestamp.getTime()).append("\t");
|
||||
result.append(String.valueOf(this.started)).append("\t");
|
||||
result.append(String.valueOf(this.position)).append("\t");
|
||||
result.append(String.valueOf(this.total));
|
||||
return result.toString();
|
||||
String result = this.podcast + "\t" +
|
||||
this.episode + "\t" +
|
||||
this.deviceId + "\t" +
|
||||
this.action + "\t" +
|
||||
this.timestamp.getTime() + "\t" +
|
||||
String.valueOf(this.started) + "\t" +
|
||||
String.valueOf(this.position) + "\t" +
|
||||
String.valueOf(this.total);
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1331,11 +1331,10 @@ public class PodDBAdapter {
|
|||
if (size == 1) {
|
||||
return "(?)";
|
||||
}
|
||||
StringBuilder builder =
|
||||
new StringBuilder("(")
|
||||
.append(TextUtils.join(",", Collections.nCopies(size, "?")))
|
||||
.append(")");
|
||||
return builder.toString();
|
||||
String builder = "(" +
|
||||
TextUtils.join(",", Collections.nCopies(size, "?")) +
|
||||
")";
|
||||
return builder;
|
||||
}
|
||||
|
||||
public final Cursor getFeedCursor(final long id) {
|
||||
|
|
Loading…
Reference in New Issue