Skip to content

Commit df3c4b2

Browse files
committed
Remove redundant String.valueOf invocations
1 parent 3e97c30 commit df3c4b2

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

configs/pmd-rules.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@
8282
<exclude name="InsufficientStringBufferDeclaration" />
8383
<exclude name="RedundantFieldInitializer" />
8484
<exclude name="ConsecutiveAppendsShouldReuse" />
85-
<exclude name="UselessStringValueOf" />
8685
<exclude name="UseStringBufferForStringAppends" />
8786
<exclude name="SimplifyStartsWith" />
8887
<exclude name="TooFewBranchesForASwitchStatement" />

src/sqlancer/postgres/ast/PostgresConstant.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ public String getTextRepresentation() {
464464
if (Double.isFinite(val)) {
465465
return String.valueOf(val);
466466
} else {
467-
return "'" + String.valueOf(val) + "'";
467+
return "'" + val + "'";
468468
}
469469
}
470470

@@ -488,7 +488,7 @@ public String getTextRepresentation() {
488488
if (Double.isFinite(val)) {
489489
return String.valueOf(val);
490490
} else {
491-
return "'" + String.valueOf(val) + "'";
491+
return "'" + val + "'";
492492
}
493493
}
494494

0 commit comments

Comments
 (0)