Skip to content

Commit

Permalink
correct custom
Browse files Browse the repository at this point in the history
  • Loading branch information
FANNG1 committed Mar 14, 2024
1 parent aca26aa commit af7d652
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ public CatalogOperations ops() {
private CatalogOperations createOps(Map<String, String> conf) {
String customCatalogOperationClass = conf.get(CATALOG_OPERATION_IMPL);
return Optional.ofNullable(customCatalogOperationClass)
.map(className -> loadCustomerOps(className))
.map(className -> loadCustomOps(className))
.orElse(newOps(conf));
}

private CatalogOperations loadCustomerOps(String className) {
private CatalogOperations loadCustomOps(String className) {
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
try {
// Class.forName use classloader of the caller class (BaseCatalog.class), it's global
Expand Down

0 comments on commit af7d652

Please sign in to comment.