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

MCR 3173 fix pmd issues in mycore mods #2237

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

Antoniafriedrich
Copy link
Contributor

@Antoniafriedrich Antoniafriedrich requested review from sebhofmann, golsch and rsteph-de and removed request for sebhofmann and golsch September 3, 2024 07:55
@@ -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;
Copy link
Member

@rsteph-de rsteph-de Sep 3, 2024

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()) || ...

Copy link
Member

@rsteph-de rsteph-de left a comment

Choose a reason for hiding this comment

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

some minor issues ...

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