Repository navigation
Simplify value classes, service and default tenant supplier - #80
Merged
Merged
Conversation
derTobsch
force-pushed
the
simplify-value-classes
branch
from
November 20, 2026 07:41
95dd187 to
3c66164
Compare
derTobsch
changed the base branch from
anonymous-users-and-invalid-urls
to
main
November 20, 2026 07:41
- App, AppDto, AppName and Launchpad are records instead of classes with hand-written equals, hashCode and toString - Drop the LaunchpadService interface, it had a single implementation; LaunchpadServiceImpl is now LaunchpadService - Drop a filter(Optional::isPresent) before flatMap(Optional::stream) - Replace DefaultTenantSupplier with a lambda
derTobsch
force-pushed
the
simplify-value-classes
branch
from
November 20, 2026 07:42
3c66164 to
8fa3669
Compare
This was referenced Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Depends on #78, which it is based on: both change
LaunchpadServiceImpl. Merge #78 first and delete its branch, so GitHub moves this PR ontomain. Otherwise it is merged into the #78 branch, as happened with #74 and #75.App,AppDto,AppNameandLaunchpadare records instead of classes with hand-writtenequals,hashCodeandtoStringLaunchpadServiceinterface, which had a single implementation;LaunchpadServiceImplis nowLaunchpadService(tests renamed accordingly)filter(Optional::isPresent)thatflatMap(Optional::stream)already coversDefaultTenantSupplierwith a lambdaLaunchpadDtoTestchecks that templates can still readlaunchpad.apps[0].urletc. with property syntax (SpEL), now thatAppDtois a recordBreaking for Java code that reads
AppDto: the gettersgetUrl(),getName()andgetIcon()becomeurl(),name()andicon(). Templates using property syntax are not affected.App,AppNameandLaunchpadare not reachable from outside the package, since the service that returns them is package-private.121 lines added, 299 removed.