Skip to content

Conversation

@scientificware
Copy link
Contributor

@scientificware scientificware commented Jul 4, 2022

This is tracked in JBS as

JDK-8289741 and duplicated by JDK-8290070

Unused imports in DTDBuider.java.

Remove unused imports from DTDBuilder.java

Some imports are no more used.

  • java.io.FileNotFoundException;
  • java.io.BufferedInputStream;
  • java.io.OutputStream;
  • java.util.BitSet;
  • java.util.StringTokenizer;
  • java.util.Properties;
  • java.util.zip.DeflaterOutputStream;
  • java.util.zip.Deflater;
  • java.net.URL;

scientificware#4


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-8289741: Remove unused imports from DTDBuilder.java

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 9360

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

Using diff file

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

Some imports are no more used.

- java.io.FileNotFoundException;
- java.io.BufferedInputStream;
- java.io.OutputStream;
- java.util.BitSet;
- java.util.StringTokenizer;
- java.util.Properties;
- java.util.zip.DeflaterOutputStream;
- java.util.zip.Deflater;
- java.net.URL;
@bridgekeeper
Copy link

bridgekeeper bot commented Jul 4, 2022

👋 Welcome back scientificware! 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 Jul 4, 2022

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

  • build
  • core-libs

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 build build-dev@openjdk.org core-libs core-libs-dev@openjdk.org labels Jul 4, 2022
@TheShermanTanker
Copy link
Contributor

@scientificware Do you need an entry in the JBS for this PR?

@scientificware
Copy link
Contributor Author

scientificware commented Jul 5, 2022

Hi @TheShermanTanker,
Yes I need it.
I'm waiting for the Issue Id.
Regards

@TheShermanTanker
Copy link
Contributor

Alright, was asking since I can help create one for you, but it seems that others already have it covered

@scientificware
Copy link
Contributor Author

scientificware commented Jul 5, 2022

@TheShermanTanker , thank you for asking and helping.

it seems that others already have it covered

In fact, I don't known.
Yesterday, I posted 3 reports in the Java Bug Database and I have no feedback at this moment.

@TheShermanTanker
Copy link
Contributor

@TheShermanTanker , thank you for asking and helping.

it seems that others already have it covered

In fact, I dont known. Yesterday, I posted 3 reports in the Java Bug Database and I have no feedback at this moment.

Well, in that case, wait no longer!
Your issue ID is 8289741, just change your title to "8289741" and the automated tooling should take care of the rest and send this PR to the appropriate teams for review.

All the best!

@scientificware scientificware changed the title Remove unused imports. JDK-8289741 : Remove unused imports from DTDBuilder.java Jul 5, 2022
@openjdk openjdk bot added the rfr Pull request is ready for review label Jul 5, 2022
@mlbridge
Copy link

mlbridge bot commented Jul 5, 2022

Webrevs

@scientificware
Copy link
Contributor Author

@TheShermanTanker Thanks.

@magicus
Copy link
Member

magicus commented Jul 6, 2022

/label -build

@openjdk openjdk bot removed the build build-dev@openjdk.org label Jul 6, 2022
@openjdk
Copy link

openjdk bot commented Jul 6, 2022

@magicus
The build label was successfully removed.

@bridgekeeper
Copy link

bridgekeeper bot commented Aug 4, 2022

@scientificware This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@scientificware
Copy link
Contributor Author

Just waiting to be reviewed.

@jaikiran
Copy link
Member

jaikiran commented Aug 5, 2022

Hello @scientificware, what you propose here, I think looks fine. Additionally can you also update the copyright years on this file from Copyright (c) 1998, 2020, to Copyright (c) 1998, 2022,?

I see that the changed file resides at make/jdk/src/classes/build/tools/dtdbuilder/DTDBuilder.java and I think this needs to be reviewed by the build team. @magicus, is it OK if I re-add the build label for this PR?

@scientificware
Copy link
Contributor Author

scientificware commented Aug 5, 2022

Hello @jaikiran, the copyright years were updated by a previous commit.

@jaikiran
Copy link
Member

jaikiran commented Aug 5, 2022

You are right, the copyright year on the file is fine - I was looking at an older version of this file.

@magicus
Copy link
Member

magicus commented Aug 8, 2022

@jaikiran The build tools are not really part of the build system as such. I used to push for a solution to move them to their corresponding modules, but this met with resistance and did not really go anywhere.

In general, though, the build tools needs to be reviewed by the group "owning" them. In some cases, the change affects how the build tool interacts with the rest of the build system. If that is the case, the build label is relevant.

Unfortunately, the Skara label rules are a bit too coarse to capture this reality.

@jaikiran
Copy link
Member

jaikiran commented Aug 9, 2022

Thank you Magnus.

Given the nature of this change, adding myself as the reviewer and approving this change.

@jaikiran
Copy link
Member

jaikiran commented Aug 9, 2022

@scientificware, please issue the integrate command when you are ready and I can sponsor this for you. In the meantime, I'll run some tests to be sure that this change is fine.

@openjdk
Copy link

openjdk bot commented Aug 9, 2022

@scientificware 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:

8289741: Remove unused imports from DTDBuilder.java

Reviewed-by: jpai

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

  • af243ca: 8265433: IGV: add graph tooltips with properties
  • 7739843: 8288633: The ICC_ColorSpace.fromCIEXYZ method uses the wrong rendering intent
  • eb8b789: 8292061: ProblemList serviceability/attach/ConcAttachTest.java on linux-all
  • 08274e6: 8290975: Minor cleanup could be done in javax.security
  • 7db5abd: 8282642: vmTestbase/gc/gctests/LoadUnloadGC2/LoadUnloadGC2.java fails intermittently with exit code 1
  • 124fc4a: 8290180: Convert com/sun/management/UnixOperatingSystemMXBean/GetOpenFileDescriptorCount.sh to jtreg java version
  • 4591937: 8290357: Drop HeapRegion::marked_bytes()
  • 7676be8: 8291037: Move PLAB resizing mechanism to G1EvacStats
  • 861cc67: 8291897: TerminatingThreadLocal(s) not registered from virtual thread(s)
  • 8d88be2: 8291459: JVM crash with GenerateOopMap::error_work(char const*, __va_list_tag*)
  • ... and 17 more: https://git.openjdk.org/jdk/compare/dd7f2d912bb66c0f10d7165040e52e2d18b73897...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 (@jaikiran) 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 ready Pull request is ready to be integrated label Aug 9, 2022
@scientificware
Copy link
Contributor Author

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Aug 9, 2022
@openjdk
Copy link

openjdk bot commented Aug 9, 2022

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

@scientificware
Copy link
Contributor Author

@jaikiran, Done and thanks for your sponsoring and reviewing.

@jaikiran
Copy link
Member

jaikiran commented Aug 9, 2022

The tests came back fine without any issue.

@jaikiran
Copy link
Member

jaikiran commented Aug 9, 2022

/sponsor

@openjdk
Copy link

openjdk bot commented Aug 9, 2022

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

  • af243ca: 8265433: IGV: add graph tooltips with properties
  • 7739843: 8288633: The ICC_ColorSpace.fromCIEXYZ method uses the wrong rendering intent
  • eb8b789: 8292061: ProblemList serviceability/attach/ConcAttachTest.java on linux-all
  • 08274e6: 8290975: Minor cleanup could be done in javax.security
  • 7db5abd: 8282642: vmTestbase/gc/gctests/LoadUnloadGC2/LoadUnloadGC2.java fails intermittently with exit code 1
  • 124fc4a: 8290180: Convert com/sun/management/UnixOperatingSystemMXBean/GetOpenFileDescriptorCount.sh to jtreg java version
  • 4591937: 8290357: Drop HeapRegion::marked_bytes()
  • 7676be8: 8291037: Move PLAB resizing mechanism to G1EvacStats
  • 861cc67: 8291897: TerminatingThreadLocal(s) not registered from virtual thread(s)
  • 8d88be2: 8291459: JVM crash with GenerateOopMap::error_work(char const*, __va_list_tag*)
  • ... and 17 more: https://git.openjdk.org/jdk/compare/dd7f2d912bb66c0f10d7165040e52e2d18b73897...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Aug 9, 2022
@openjdk openjdk bot closed this Aug 9, 2022
@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 Aug 9, 2022
@openjdk
Copy link

openjdk bot commented Aug 9, 2022

@jaikiran @scientificware Pushed as commit 2712bc3.

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

@scientificware
Copy link
Contributor Author

scientificware commented Aug 9, 2022

@jaikiran Great Thanks.

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

Labels

core-libs core-libs-dev@openjdk.org integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

4 participants