Skip to content

Switch to Platform.getDebugBoolean(String) where appropriate#2785

Open
ptziegler wants to merge 1 commit into
eclipse-platform:masterfrom
ptziegler:use-get-debug-boolean
Open

Switch to Platform.getDebugBoolean(String) where appropriate#2785
ptziegler wants to merge 1 commit into
eclipse-platform:masterfrom
ptziegler:use-get-debug-boolean

Conversation

@ptziegler

Copy link
Copy Markdown
Contributor

With 3b76d20, a convenience method getDebugBoolean(String) was added, which returns true if the given tracing option is enabled. Using this method avoids a lot of the boilerplate code that comes with using getDebugOption(String) and which usually looks something like:

"true".equals(Platform.getDebugOption("..."))

@github-actions

github-actions Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Test Results

   36 files   -    18     36 suites   - 18   34m 4s ⏱️ - 25m 26s
4 680 tests ±    0  4 633 ✅  -    25   47 💤 +25  0 ❌ ±0 
7 956 runs   - 3 978  7 851 ✅  - 3 930  105 💤  - 48  0 ❌ ±0 

Results for commit 443331b. ± Comparison against base commit 6bef442.

This pull request skips 25 tests.
org.eclipse.core.tests.filesystem.SymlinkTest ‑ testSymlinkPutHidden
org.eclipse.core.tests.internal.alias.BasicAliasTest ‑ testBug198571
org.eclipse.core.tests.internal.localstore.MoveTest ‑ testMoveFileAcrossVolumes
org.eclipse.core.tests.internal.localstore.MoveTest ‑ testMoveFolderAcrossVolumes
org.eclipse.core.tests.resources.IProjectTest ‑ testProjectCreationLocationExistsWithDifferentCase
org.eclipse.core.tests.resources.IWorkspaceRootTest ‑ testFindFilesNonCanonicalPath
org.eclipse.core.tests.resources.LinkedResourceTest ‑ testFindFilesForLocationCaseVariant
org.eclipse.core.tests.resources.LinkedResourceWithPathVariableTest ‑ testFindFilesForLocationCaseVariant
org.eclipse.core.tests.resources.ResourceAttributeTest ‑ testAttributeArchive
org.eclipse.core.tests.resources.ResourceAttributeTest ‑ testAttributeHidden
…

♻️ This comment has been updated with latest results.

@vogella

vogella commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

LGTM

With 3b76d20, a convenience method
`getDebugBoolean(String)` was added, which returns `true` if the given
tracing option is enabled. Using this method avoids a lot of the
boilerplate code that comes with using `getDebugOption(String)` and
which usually looks something like:

`"true".equals(Platform.getDebugOption("..."))`
@ptziegler ptziegler force-pushed the use-get-debug-boolean branch from ab412d7 to 443331b Compare July 3, 2026 10:07
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