Skip to content

Replace String.valueOf(true) with "true" literal#2265

Merged
laeubi merged 1 commit intoeclipse-pde:masterfrom
laeubi:fix/string-valueof-true-literal
Mar 23, 2026
Merged

Replace String.valueOf(true) with "true" literal#2265
laeubi merged 1 commit intoeclipse-pde:masterfrom
laeubi:fix/string-valueof-true-literal

Conversation

@laeubi
Copy link
Contributor

@laeubi laeubi commented Mar 23, 2026

Replace String.valueOf(true) with a string literal "true" in UpdateSingletonToSymbolicName.java.

String.valueOf(true) is unnecessarily verbose and incurs a method call. A string literal is clearer and avoids unnecessary overhead.

String.valueOf(true) is unnecessarily verbose and incurs a method
call. A string literal is clearer and avoids unnecessary overhead.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@laeubi laeubi force-pushed the fix/string-valueof-true-literal branch from b7c76b3 to 0116d1e Compare March 23, 2026 08:45
@github-actions
Copy link

Test Results

  147 files  ±0    147 suites  ±0   34m 49s ⏱️ -57s
3 495 tests ±0  3 441 ✅ ±0   54 💤 ±0  0 ❌ ±0 
9 306 runs  ±0  9 176 ✅ ±0  130 💤 ±0  0 ❌ ±0 

Results for commit 0116d1e. ± Comparison against base commit 26ee725.

@vogella
Copy link
Contributor

vogella commented Mar 23, 2026

LGTM

@laeubi laeubi merged commit 0bfeb26 into eclipse-pde:master Mar 23, 2026
19 checks passed
@vogella
Copy link
Contributor

vogella commented Mar 23, 2026

Btw. IIRC we have a JDT clean-up for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants