Skip to content

8328749: Remove unused imports in javafx.web #1421

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

Conversation

andy-goryachev-oracle
Copy link
Contributor

@andy-goryachev-oracle andy-goryachev-oracle commented Mar 21, 2024

Using Eclipse IDE to remove unused imports javafx.web module, and update the copyright year to 2024. Using wildcard for more than 10 static imports.

--

This is a trivial change, 1 reviewer is probably enough.


Progress

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

Issue

  • JDK-8328749: Remove unused imports in javafx.web (Bug - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 1421

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1421.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 21, 2024

👋 Welcome back angorya! 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 Mar 21, 2024

@andy-goryachev-oracle 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:

8328749: Remove unused imports in javafx.web

Reviewed-by: hmeda, kcr

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 13 new commits pushed to the master branch:

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.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@andy-goryachev-oracle andy-goryachev-oracle marked this pull request as ready for review March 22, 2024 15:51
@andy-goryachev-oracle
Copy link
Contributor Author

I suppose I'd need to extract swing into a separate PR, right @kevinrushforth ?

@openjdk openjdk bot added the rfr Ready for review label Mar 22, 2024
@kevinrushforth
Copy link
Member

I suppose I'd need to extract swing into a separate PR, right @kevinrushforth ?

Yes. I was just getting ready to write this:

It looks like I spoke too soon when I said it was OK to combine the change to javafx.swing into this PR. You will need to separate it out.

@kevinrushforth
Copy link
Member

The change to WebWorkerTest can remain, though.

@kevinrushforth
Copy link
Member

As noted in PR #1424 : There are special considerations when touching files under modules/javafx.web/src/main/native/Source/WebCore/bindings/java/dom3/java, so it will need an extra pair of eyes. Also, this will need to be backported to earlier release trains to keep modules/javafx.web/src/main/native/ identical for all releases.

Reviewers: @kevinrushforth @HimaBinduMeda

/reviewers 2

@kevinrushforth kevinrushforth self-requested a review March 22, 2024 15:57
@openjdk
Copy link

openjdk bot commented Mar 22, 2024

@kevinrushforth
The total number of required reviews for this PR (including the jcheck configuration and the last /reviewers command) is now set to 2 (with at least 1 Reviewer, 1 Author).

@mlbridge
Copy link

mlbridge bot commented Mar 22, 2024

Webrevs

@andy-goryachev-oracle andy-goryachev-oracle changed the title 8328749: Remove unused imports in javafx.swing, javafx.web 8328749: Remove unused imports in javafx.web Mar 22, 2024
@andy-goryachev-oracle
Copy link
Contributor Author

removed swing file from this PR.

@@ -37,6 +34,7 @@
import org.w3c.dom.events.EventTarget;
import org.w3c.dom.views.AbstractView;
import org.w3c.dom.views.DocumentView;
import com.sun.webkit.Disposer;
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor: Generally, imports are added in alphabetic order.

@@ -38,6 +35,7 @@
import org.w3c.dom.events.Event;
import org.w3c.dom.events.EventListener;
import org.w3c.dom.events.EventTarget;
import com.sun.webkit.Disposer;
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor: Generally, imports are added in alphabetic order.

Copy link
Member

Choose a reason for hiding this comment

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

I raised this question in PR #1420 as well, but didn't follow-up on it. We should make a deliberate decision on this rather than "whatever Andy's version of Eclipse happens to think is a good default". Let's resolve the discussion in that PR and then apply it to all.

Copy link
Contributor

@HimaBinduMeda HimaBinduMeda left a comment

Choose a reason for hiding this comment

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

Verified Build and unit tests. No issue seen.
Added few minor comments

Copy link
Member

@kevinrushforth kevinrushforth 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.

@openjdk openjdk bot added the ready Ready to be integrated label Apr 1, 2024
@andy-goryachev-oracle
Copy link
Contributor Author

/integrate

@openjdk
Copy link

openjdk bot commented Apr 1, 2024

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

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Apr 1, 2024
@openjdk openjdk bot closed this Apr 1, 2024
@openjdk openjdk bot removed ready Ready to be integrated rfr Ready for review labels Apr 1, 2024
@openjdk
Copy link

openjdk bot commented Apr 1, 2024

@andy-goryachev-oracle Pushed as commit a85af13.

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

@andy-goryachev-oracle andy-goryachev-oracle deleted the 8328749.unused.imports.web branch April 1, 2024 15:16
@andy-goryachev-oracle andy-goryachev-oracle restored the 8328749.unused.imports.web branch April 1, 2024 20:42
@andy-goryachev-oracle andy-goryachev-oracle deleted the 8328749.unused.imports.web branch January 24, 2025 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

3 participants