Skip to content

bug/issue 49: Fix findings - #50

Merged
Col-E merged 11 commits into
Col-E:masterfrom
philliplbryant:bug/issue-49
Sep 30, 2026
Merged

Col-E merged 11 commits into
Col-E:masterfrom
philliplbryant:bug/issue-49

Conversation

@philliplbryant

@philliplbryant philliplbryant commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor
  • Simplified the redundant instanceof check to a null check.
  • Guarded @Nullable field dereferences. In HeaderPane, this fixes an NPE when a leaf with no header side has its dockables changed.
  • DragUtils splits with a negative limit, so an empty trailing field is kept: extractIdentifier returns an empty identifier instead of null.
  • DockContainerLeaf.toggleCollapse returns the unchanged state when the parent is null instead of throwing an NPE, with a unit test.
  • Added TestFX and Monocle test dependencies to core so JavaFX tests run headless.

Other changes have no observable effect on behavior.

Phil Bryant and others added 4 commits September 14, 2026 14:53
* Replaced reference-equality comparisons with `.equals()`/`Objects.equals()`.
* Simplified the redundant `instanceof` check to a null check.
* Guarded `@Nullable` field dereferences.
* Extracted `DragUtils`'s `dragBoard` splitting into a shared helper function that uses a negative split limit, so an empty trailing field (e.g. an empty dockable identifier with no drop target) is no longer silently dropped.
* Added unit test coverage for `DragUtils`'s shared helper function.
* Remove disallowed self-closing `<p/>` tags.
* Fix an additional nullability issue.
* update Javadoc configurations remaining from a separate issue.
* Run JavaFX tests headless with Monocle so they pass on CI runners without a display.
Phil Bryant added 3 commits September 21, 2026 15:52
* Revert equality comparisons.
* Revert equality comparisons.
@philliplbryant philliplbryant changed the title bug/issue 49: Fix findings described in ussue-49 bug/issue 49: Fix findings Sep 21, 2026
Phil Bryant and others added 4 commits September 22, 2026 09:31
* Remove comments notifying readers of intentionally using the equality/inequality operators.
* Delete "slop" test class and reduce method visibility.
* Delete extraneous AI generated comment.
# Conflicts:
#	core/src/main/java/software/coley/bentofx/util/DragUtils.java
* Guard the nullable `headers` in `HeaderPane`'s dockables listener and list button, fixing an NPE when a leaf has no header side.
* Restore the original `} else if` formatting in `DockableClickBehavior`.
@philliplbryant

Copy link
Copy Markdown
Contributor Author

@Col-E: Are you expecting anything else from me on this PR?

@Col-E
Col-E merged commit de28e37 into Col-E:master Sep 30, 2026
3 checks passed
@Col-E

Col-E commented Sep 30, 2026

Copy link
Copy Markdown
Owner

Nope, just the conflict resolve from before 👍

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