Skip to content

[WIP] HIVE-29455: Normalize Java license headers, part 2 - license source line#6313

Draft
okumin wants to merge 7 commits intoapache:masterfrom
okumin:HIVE-29455-license-source
Draft

[WIP] HIVE-29455: Normalize Java license headers, part 2 - license source line#6313
okumin wants to merge 7 commits intoapache:masterfrom
okumin:HIVE-29455-license-source

Conversation

@okumin
Copy link
Contributor

@okumin okumin commented Feb 11, 2026

What changes were proposed in this pull request?

Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

find . -type f -name "*.java" -print0 | while IFS= read -r -d '' file; do
  perl -i -pe '
    if ($. <= 11 && $_ eq " * http://www.apache.org/licenses/LICENSE-2.0\n") {
      $_ = " *     http://www.apache.org/licenses/LICENSE-2.0\n";
    }
  ' "$file"
done
find . -type f -name "*.java" -print0 | while IFS= read -r -d '' file; do
  perl -i -pe '
    if ($. <= 11 && $_ eq " *   http://www.apache.org/licenses/LICENSE-2.0\n") {
      $_ = " *     http://www.apache.org/licenses/LICENSE-2.0\n";
    }
  ' "$file"
done
find . -type f -name "*.java" -print0 | while IFS= read -r -d '' file; do
  perl -i -pe '
    if ($. <= 11 && $_ eq " *    http://www.apache.org/licenses/LICENSE-2.0\n") {
      $_ = " *     http://www.apache.org/licenses/LICENSE-2.0\n";
    }
  ' "$file"
done
find . -type f -name "*.java" -print0 | while IFS= read -r -d '' file; do
  perl -i -pe '
    if ($. <= 11 && $_ eq " *      http://www.apache.org/licenses/LICENSE-2.0\n") {
      $_ = " *     http://www.apache.org/licenses/LICENSE-2.0\n";
    }
  ' "$file"
done
find . -type f -name "*.java" -print0 | while IFS= read -r -d '' file; do
  perl -i -pe '
    if ($. <= 11 && $_ eq " *       http://www.apache.org/licenses/LICENSE-2.0\n") {
      $_ = " *     http://www.apache.org/licenses/LICENSE-2.0\n";
    }
  ' "$file"
done
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants