Skip to content

8333477: Delete extra empty spaces in Makefiles #19537

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

Closed
wants to merge 2 commits into from

Conversation

sendaoYan
Copy link
Member

@sendaoYan sendaoYan commented Jun 4, 2024

Hi all,
This PR several extra empty spaces and extra empty lines in several Makefiles. It's trivial fix, no risk.

Thanks.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8333477: Delete extra empty spaces in Makefiles (Bug - P5)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/19537/head:pull/19537
$ git checkout pull/19537

Update a local copy of the PR:
$ git checkout pull/19537
$ git pull https://git.openjdk.org/jdk.git pull/19537/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 19537

View PR using the GUI difftool:
$ git pr show -t 19537

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/19537.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Jun 4, 2024

👋 Welcome back syan! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Jun 4, 2024

@sendaoYan This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8333477: Delete extra empty spaces in Makefiles

Reviewed-by: erikj, chagedorn, liach, jwaters

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 76 new commits pushed to the master branch:

  • 486dee2: 8333653: Remove MallocHeader::get_stack
  • 40b2fbd: 8331733: [PPC64] saving and restoring CR is not needed at most places
  • 6968770: 8331935: Add support for primitive array C1 clone intrinsic in PPC
  • a2030ff: 8332516: Serial: Always sample promoted bytes to avoid getting stuck in Full GCs
  • bf7f1c4: 8333211: NMT Reports: replace manual indentation handling with auto indent
  • 8ffc35d: 8333724: Problem list security/infra/java/security/cert/CertPathValidator/certification/CAInterop.java#teliasonerarootcav1
  • f7862bd: 8331311: C2: Big Endian Port of 8318446: optimize stores into primitive arrays by combining values into larger store
  • b4beda2: 8332537: C2: High memory usage reported for compiler/loopopts/superword/TestAlignVectorFuzzer.java
  • e5383d7: 8333713: C2 SuperWord: cleanup in vectornode.cpp/hpp
  • 944aeb8: 8325155: C2 SuperWord: remove alignment boundaries
  • ... and 66 more: https://git.openjdk.org/jdk/compare/454660d361e39f362ff0e10a5c2389af910cca23...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@erikj79, @chhagedorn, @TheShermanTanker) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added the rfr Pull request is ready for review label Jun 4, 2024
@openjdk
Copy link

openjdk bot commented Jun 4, 2024

@sendaoYan The following labels will be automatically applied to this pull request:

  • core-libs
  • hotspot-compiler
  • security
  • serviceability

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added serviceability serviceability-dev@openjdk.org security security-dev@openjdk.org hotspot-compiler hotspot-compiler-dev@openjdk.org core-libs core-libs-dev@openjdk.org labels Jun 4, 2024
@mlbridge
Copy link

mlbridge bot commented Jun 4, 2024

Webrevs

@erikj79
Copy link
Member

erikj79 commented Jun 4, 2024

/label build

@sendaoYan
Copy link
Member Author

/label build

Thanks.

@openjdk openjdk bot added the build build-dev@openjdk.org label Jun 4, 2024
@openjdk
Copy link

openjdk bot commented Jun 4, 2024

@erikj79
The build label was successfully added.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Jun 4, 2024
@sendaoYan
Copy link
Member Author

Thanks for the review.
/integrate

Copy link
Member

@chhagedorn chhagedorn left a comment

Choose a reason for hiding this comment

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

Looks good! Somehow the integrate command did not work.

@sendaoYan
Copy link
Member Author

Thanks all for the review.
/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Jun 4, 2024
@openjdk
Copy link

openjdk bot commented Jun 4, 2024

@sendaoYan
Your change (at version 0d2be36) is now ready to be sponsored by a Committer.

@openjdk
Copy link

openjdk bot commented Jun 4, 2024

@sendaoYan
Your change (at version 0d2be36) is now ready to be sponsored by a Committer.

@liach
Copy link
Member

liach commented Jun 5, 2024

@altrisi As trivial and low-effort as this seems, this is actually fixing some technical debt for legacy Makefiles last changed before 8e7a855 when trailing whitespace checks applied to Makefiles.

@openjdk openjdk bot removed the sponsor Pull request is ready to be sponsored label Jun 7, 2024
Copy link
Member

@liach liach left a comment

Choose a reason for hiding this comment

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

Thank you for the fix.

@sendaoYan
Copy link
Member Author

Thanks all for the review.
/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Jun 7, 2024
@openjdk
Copy link

openjdk bot commented Jun 7, 2024

@sendaoYan
Your change (at version e80b98d) is now ready to be sponsored by a Committer.

@@ -47,4 +47,3 @@ all: .classes

clean:
rm -f *.class .classes

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, shouldn't this newline at EOF be kept? Asking @ all the people who've reviewed this so far, no need to change it just yet

Copy link
Member

Choose a reason for hiding this comment

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

No, it's an extra newline. A file should end with a newline but one is enough.

Copy link
Member

Choose a reason for hiding this comment

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

As confusing as they are, unfortunately GitHub UI does not render extra trailing newlines. This is the only one I could find with grepWin.

Copy link
Member Author

Choose a reason for hiding this comment

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

I find the extra trailing newlines through below shell command:

for i in `find . -iname "Makefile*" | sed "/\.\/build/d"` ; do tail -n 2 $i | grep -c "^$" | grep -q "^1$" ; if [[ 0 -eq $? ]] ; then echo $i ; fi ; done

There are only two files has been found:

./test/jdk/java/rmi/reliability/benchmark/bench/rmi/Makefile
./test/jdk/java/rmi/reliability/benchmark/bench/Makefile

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, I had not realized that there was more than 1 newline. GitHub's UI confused me here, so we're good to go

Copy link
Member

Choose a reason for hiding this comment

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

GitHub's UI assumes the final line has an line break. If it is missing, it displays a red 🚫 at the end of the last line. If there is an empty line showing up in the UI, then it is an additional empty line.

Copy link
Member

Choose a reason for hiding this comment

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

In this case, GitHub is actually not showing up extra empty lines, that they appear the same as the single line break in the end of the file.

@TheShermanTanker
Copy link
Contributor

/sponsor

@openjdk
Copy link

openjdk bot commented Jun 7, 2024

Going to push as commit d130d2f.
Since your change was applied there have been 76 commits pushed to the master branch:

  • 486dee2: 8333653: Remove MallocHeader::get_stack
  • 40b2fbd: 8331733: [PPC64] saving and restoring CR is not needed at most places
  • 6968770: 8331935: Add support for primitive array C1 clone intrinsic in PPC
  • a2030ff: 8332516: Serial: Always sample promoted bytes to avoid getting stuck in Full GCs
  • bf7f1c4: 8333211: NMT Reports: replace manual indentation handling with auto indent
  • 8ffc35d: 8333724: Problem list security/infra/java/security/cert/CertPathValidator/certification/CAInterop.java#teliasonerarootcav1
  • f7862bd: 8331311: C2: Big Endian Port of 8318446: optimize stores into primitive arrays by combining values into larger store
  • b4beda2: 8332537: C2: High memory usage reported for compiler/loopopts/superword/TestAlignVectorFuzzer.java
  • e5383d7: 8333713: C2 SuperWord: cleanup in vectornode.cpp/hpp
  • 944aeb8: 8325155: C2 SuperWord: remove alignment boundaries
  • ... and 66 more: https://git.openjdk.org/jdk/compare/454660d361e39f362ff0e10a5c2389af910cca23...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Jun 7, 2024
@openjdk openjdk bot closed this Jun 7, 2024
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Jun 7, 2024
@openjdk
Copy link

openjdk bot commented Jun 7, 2024

@TheShermanTanker @sendaoYan Pushed as commit d130d2f.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@sendaoYan sendaoYan deleted the jbs8333477 branch June 7, 2024 14:13
@sendaoYan
Copy link
Member Author

Thanks all for the review and sponsor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build-dev@openjdk.org core-libs core-libs-dev@openjdk.org hotspot-compiler hotspot-compiler-dev@openjdk.org integrated Pull request has been integrated security security-dev@openjdk.org serviceability serviceability-dev@openjdk.org
Development

Successfully merging this pull request may close these issues.

6 participants