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

Andrey Turbanov aturbanov at openjdk.org
Mon Dec 23 12:54:38 UTC 2024


On Mon, 23 Dec 2024 12:36:54 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
>
> Volkan Yazıcı has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Make `MimeTable` final

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?

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

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


More information about the net-dev mailing list