Skip to content

Data file service bean refactoring#3256

Merged
lbownik merged 14 commits intodevelopfrom
DataFileServiceBean_refactoring
Apr 15, 2026
Merged

Data file service bean refactoring#3256
lbownik merged 14 commits intodevelopfrom
DataFileServiceBean_refactoring

Conversation

@lbownik
Copy link
Copy Markdown
Contributor

@lbownik lbownik commented Mar 30, 2026

No description provided.

} catch (Exception ex) {
return null;
}
public Optional<DataFile> find(final Long id) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that usage of this find in caller is not the way Optional was intended to use with ifPresent, map, orElseThrow etc. So maybe all callers should be reviewed and fixed or this method should return as prev one just DataFile

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No .. it means that I didn't wan't to refactor too much at once. - I'll get back to those ugly hacks and fix them later, once this is merged.

@rscipien rscipien assigned lbownik and unassigned rscipien Apr 15, 2026
@lbownik lbownik assigned rscipien and unassigned lbownik Apr 15, 2026
@rscipien rscipien assigned lbownik and unassigned rscipien Apr 15, 2026
@lbownik lbownik force-pushed the DataFileServiceBean_refactoring branch from 546c0b0 to ccee65b Compare April 15, 2026 09:44
@lbownik lbownik merged commit ad2c7ce into develop Apr 15, 2026
1 check passed
@lbownik lbownik deleted the DataFileServiceBean_refactoring branch April 15, 2026 09:47
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