RFR: 8336412: sun.net.www.MimeTable has a few unused methods [v2]

Volkan Yazıcı duke at openjdk.org
Mon Dec 23 13:59:14 UTC 2024


On Mon, 23 Dec 2024 12:52:24 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

>> src/java.base/share/classes/sun/net/www/MimeTable.java line 186:
>> 
>>> 184:     }
>>> 185: 
>>> 186:     public synchronized Enumeration<MimeEntry> elements() {
>> 
>> Can we drop `elements` as well?
>
> `sun.net.www.MimeTable#find` seems unused too

In 82f2b3a14171d5963e2bfecb1b84105bda6a34f2, removed all unused methods and decreased the visibility (i.e., added `private`, and, if possible, `final`) wherever possible. (Started a `tier1` run in the meantime.)

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/22831#discussion_r1895779642


More information about the net-dev mailing list