Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing override of a method with a default implementation. #227

Merged
merged 2 commits into from
Mar 1, 2024

Conversation

davidsarosap
Copy link
Contributor

The word "Default" in the "DefaultSchemasCallback.java" let me assume that I can derive classes from it to implement some method which are needed in my use case. The fact that getAttribute is overridden in the DefaultSchemasCallback.java leads to confusion and makes it even harder to make it work with a derived class.
I think it is better to just let the default method in the interface shining through.

@hborisov hborisov merged commit 81fd5ff into SAP:master Mar 1, 2024
3 checks passed
hborisov pushed a commit to hborisov/scimono that referenced this pull request Mar 1, 2024
The word "Default" in the "DefaultSchemasCallback.java" let me assume
that I can derive classes from it to implement some method which are
needed in my use case. The fact that getAttribute is overridden in the
DefaultSchemasCallback.java leads to confusion and makes it even harder
to make it work with a derived class.
I think it is better to just let the default method in the interface
shining through.

Co-authored-by: Hristo Borisov <hristo.borisov@sap.com>
(cherry picked from commit 81fd5ff)
hborisov pushed a commit to hborisov/scimono that referenced this pull request Mar 1, 2024
The word "Default" in the "DefaultSchemasCallback.java" let me assume
that I can derive classes from it to implement some method which are
needed in my use case. The fact that getAttribute is overridden in the
DefaultSchemasCallback.java leads to confusion and makes it even harder
to make it work with a derived class.
I think it is better to just let the default method in the interface
shining through.

Co-authored-by: Hristo Borisov <hristo.borisov@sap.com>
(cherry picked from commit 81fd5ff)
@davidsarosap davidsarosap deleted the removedOverrideOfDefaultMethod branch April 3, 2024 09:18
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.

None yet

2 participants