src/java.base/share/classes/jdk/internal/module/ServicesCatalog.java
changeset 57714 9f44485e7441
parent 53563 a4b7ea85d668
equal deleted inserted replaced
57713:0211b062843d 57714:9f44485e7441
    79                     && Objects.equals(this.providerName, that.providerName);
    79                     && Objects.equals(this.providerName, that.providerName);
    80         }
    80         }
    81     }
    81     }
    82 
    82 
    83     // service name -> list of providers
    83     // service name -> list of providers
    84     private final Map<String, List<ServiceProvider>> map = new ConcurrentHashMap<>();
    84     private final Map<String, List<ServiceProvider>> map = new ConcurrentHashMap<>(32);
    85 
    85 
    86     private ServicesCatalog() { }
    86     private ServicesCatalog() { }
    87 
    87 
    88     /**
    88     /**
    89      * Creates a ServicesCatalog that supports concurrent registration
    89      * Creates a ServicesCatalog that supports concurrent registration