This is an automated email from the ASF dual-hosted git repository.

nizhikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new 1e407c43e6a [MINOR] Remove ClassCache interface (#13395)
1e407c43e6a is described below

commit 1e407c43e6a42f95edd38ea1e36080e92f9f8675
Author: Nikolay <[email protected]>
AuthorDate: Wed Jul 22 21:20:10 2026 +0300

    [MINOR] Remove ClassCache interface (#13395)
---
 .../apache/ignite/internal/util/ClassCache.java    | 32 ----------------------
 .../apache/ignite/internal/util/CommonUtils.java   |  4 +--
 2 files changed, 1 insertion(+), 35 deletions(-)

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 7d6edbe9163..00000000000
--- 
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 8954c0cafd1..ab5ff9f2a86 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 abstract class CommonUtils {
             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;

Reply via email to