Skip to content

[ISSUE #11011] Fix misplaced license header in ConfigManagerTest - #11012

Merged
lizhimins merged 1 commit into
apache:developfrom
lizhimins:lizhimins/issue-11011
Sep 4, 2026
Merged

[ISSUE #11011] Fix misplaced license header in ConfigManagerTest#11012
lizhimins merged 1 commit into
apache:developfrom
lizhimins:lizhimins/issue-11011

Conversation

@lizhimins

Copy link
Copy Markdown
Member

Which Issue(s) This PR Fixes

Brief Description

In common/src/test/java/org/apache/rocketmq/common/ConfigManagerTest.java, the ASF license header was squeezed onto the same line right after the package statement, instead of sitting at the top of the file. This was introduced by b6ff649 ("feat(all):new feature for static topic"), likely by an auto-formatter.

This PR moves the license comment back to the top of the file, before the package declaration, matching the canonical header placement used across the codebase. The resulting header is byte-identical to the standard ASF header already used by the other ~2000 files in the repository.

How Did You Test This Change?

Formatting-only change with no behavioral impact. Verified the relocated header block is byte-identical to the canonical ASF header used by the rest of the codebase (the change only moves the comment above the package line and adds a newline), and that the file structure (package -> blank line -> imports) is preserved.

Move the ASF license comment to the top of the file, before the
package statement. It was squeezed onto the same line as the package
declaration (introduced by b6ff649), which breaks the conventional
header placement used across the codebase.

@RockteMQ-AI RockteMQ-AI left a comment

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.

LGTM. Trivial formatting fix — moves the ASF license header back to its canonical position above the package declaration. No behavioral change.


Automated review by "github-manager-bot"

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.74%. Comparing base (d442063) to head (4291af8).

Additional details and impacted files
@@              Coverage Diff              @@
##             develop   #11012      +/-   ##
=============================================
- Coverage      48.80%   48.74%   -0.06%     
+ Complexity     13768    13748      -20     
=============================================
  Files           1381     1381              
  Lines         101574   101574              
  Branches       13213    13213              
=============================================
- Hits           49571    49515      -56     
- Misses         45971    46017      +46     
- Partials        6032     6042      +10     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lizhimins
lizhimins merged commit ff8f6f7 into apache:develop Sep 4, 2026
10 checks passed
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.

Misplaced ASF license header in ConfigManagerTest.java

4 participants