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

Roger Riggs rriggs at openjdk.org
Thu Dec 19 17:13:46 UTC 2024


On Thu, 19 Dec 2024 16:25:49 GMT, Volkan Yazıcı <duke at openjdk.org> wrote:

>> Cleans up `sun.net.www.MimeTable`:
>> 
>> * Removes unused methods & variables
>> * Removes commented out code
>> * Simplifies iterations over arrays
>
> src/java.base/share/classes/sun/net/www/MimeTable.java line 233:
> 
>> 231:                     "/usr/local/etc/mailcap"
>> 232:             };
>> 233: 
> 
> This field hasn't been used since 2007, the epoch of the Git history, it is probably predating even that. I doubt if it will ever be used or is still relevant. Hence, removed it.

I don't think we have a deprecation process for this kind of dependency but dropping these deserves a CSR since the behavior is changing (and a release note).

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

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


More information about the net-dev mailing list