RFR: 8345987: java.management has two Util.newObjectName methods (remove one)
    Chris Plummer 
    cjplummer at openjdk.org
       
    Wed Dec 11 18:58:13 UTC 2024
    
    
  
On Wed, 11 Dec 2024 13:55:24 GMT, Kevin Walls <kevinw at openjdk.org> wrote:
> Unnecessary duplication of small utility method.  There should be only one Util.newObjectName().
src/java.management/share/classes/javax/management/ObjectName.java line 40:
> 38: import java.util.Map;
> 39: 
> 40: import static sun.management.Util.newObjectName;
What is the motivation for doing the static import? I prefer seeing Util.newObjectName().
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/22681#discussion_r1880745856
    
    
More information about the serviceability-dev
mailing list