-
Notifications
You must be signed in to change notification settings - Fork 13
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
MCR 3173 fix pmd issues in mycore mods #2237
base: main
Are you sure you want to change the base?
MCR 3173 fix pmd issues in mycore mods #2237
Conversation
@@ -110,11 +117,14 @@ public static MCRObject wrapMODSDocument(Element modsDefinition, String projectI | |||
* @return true, if mods is supported | |||
*/ | |||
public static boolean isSupported(MCRObject obj) { | |||
boolean supported; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the advantage of this additional variable?
We could even further simplify and remove the if
by an OR operator
return isSupported(obj.getId()) || ...
mycore-mods/src/main/java/org/mycore/mods/csl/MCRModsItemDataProvider.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some minor issues ...
Link to jira.