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-3285 pmd: UnsynchronizedStaticFormatter #2344

Open
wants to merge 2 commits into
base: 2024.06.x
Choose a base branch
from

Conversation

Mewel
Copy link
Member

@Mewel Mewel commented Dec 19, 2024

@Mewel Mewel requested review from yagee-de and rsteph-de December 19, 2024 16:13
@Mewel Mewel force-pushed the issues/MCR-3285-pmd-UnsynchronizedStaticFormatter branch from fd68723 to a78ab70 Compare January 2, 2025 11:42
@Mewel Mewel changed the base branch from main to 2024.06.x January 2, 2025 11:43
@yagee-de yagee-de requested a review from Copilot January 2, 2025 21:12

Choose a reason for hiding this comment

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

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • ruleset.xml: Language not supported
Comments suppressed due to low confidence (1)

mycore-indexing/src/main/java/org/mycore/frontend/indexbrowser/MCRGoogleSitemapCommon.java:213

  • [nitpick] The method parameter 'number' should be renamed to 'numberPart' for consistency with the renamed variable 'NUMBER_FORMAT'.
String getFileName(int number, boolean withPath) {

/** date formatter */
private static SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd", SITEMAP_LOCALE);
private static final SimpleDateFormat DATE_FORMATTER = new SimpleDateFormat("yyyy-MM-dd", SITEMAP_LOCALE);
Copy link
Member

Choose a reason for hiding this comment

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

@@ -106,7 +106,7 @@ private enum Mode {

private static Logger LOGGER = LogManager.getLogger(MCRRestAPIObjectsHelper.class);

private static SimpleDateFormat SDF_UTC = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'", Locale.US);
private static final SimpleDateFormat SDF_UTC = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'", Locale.US);
Copy link
Member

Choose a reason for hiding this comment

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

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