10000 refactor, simplify · lipsa178/utPLSQL-SQLDeveloper@5ca644e · GitHub
[go: up one dir, main page]

Skip to content

Commit 5ca644e

Browse files
refactor, simplify
1 parent 94d8a3e commit 5ca644e

File tree

1 file changed

+3
-7
lines changed
  • sqldev/src/main/java/org/utplsql/sqldev/model/runner

1 file changed

+3
-7
lines changed

sqldev/src/main/java/org/utplsql/sqldev/model/runner/Run.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import org.springframework.core.style.ToStringCreator;
2222
import org.utplsql.sqldev.model.JsonToStringStyler;
2323

24+
@SuppressWarnings("unused")
2425
public class Run {
2526
private String reporterId;
2627
private String connectionName;
@@ -79,18 +80,13 @@ public void setStartTime(final String startTime) {
7980
public String getName() {
8081
final String time = startTime.substring(11, 19);
8182
final String conn = connectionName != null ? connectionName.substring(15) : "n/a";
82-
final StringBuilder sb = new StringBuilder();
83-
sb.append(time);
84-
sb.append(" (");
85-
sb.append(conn);
86-
sb.append(")");
87-
return sb.toString();
83+
return time + " (" + conn + ")";
8884
}
8985

9086
public void put(final List<Item> items) {
9187
for (final Item item : items) {
9288
if (item instanceof Test) {
93-
tests.put(((Test) item).getId(), (Test) item);
89+
tests.put(item.getId(), (Test) item);
9490
}
9591
if (item instanceof Suite) {
9692
put(((Suite) item).getItems());

0 commit comments

Comments
 (0)
0