diff --git a/modules/commons/src/main/java/org/apache/ignite/internal/util/ClassCache.java b/modules/commons/src/main/java/org/apache/ignite/internal/util/ClassCache.java deleted file mode 100644 index 7d6edbe9163b3..0000000000000 --- a/modules/commons/src/main/java/org/apache/ignite/internal/util/ClassCache.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.ignite.internal.util; - -/** - * Class cache. - */ -public interface ClassCache { - /** - * Get class for the given name. - * - * @param clsName Class name. - * @return Class. - * @throws ClassNotFoundException If not found. - */ - public Class getFromCache(String clsName) throws ClassNotFoundException; -} diff --git a/modules/commons/src/main/java/org/apache/ignite/internal/util/CommonUtils.java b/modules/commons/src/main/java/org/apache/ignite/internal/util/CommonUtils.java index 8954c0cafd18c..ab5ff9f2a865a 100644 --- a/modules/commons/src/main/java/org/apache/ignite/internal/util/CommonUtils.java +++ b/modules/commons/src/main/java/org/apache/ignite/internal/util/CommonUtils.java @@ -855,9 +855,7 @@ public static Class forName( return cls; if (ldr != null) { - if (ldr instanceof ClassCache) - return ((ClassCache)ldr).getFromCache(clsName); - else if (!useCache) { + if (!useCache) { cls = Class.forName(clsName, true, ldr); return cls;