From 3f07b9e0025c34a6f1f824c554804245850d63c8 Mon Sep 17 00:00:00 2001 From: 7u83 <7u83@mail.ru> Date: Mon, 20 Nov 2017 22:35:46 +0100 Subject: [PATCH] Refactoring for readbility --- src/sesim/SeSimClassLoader.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sesim/SeSimClassLoader.java b/src/sesim/SeSimClassLoader.java index 509ca57..562f358 100644 --- a/src/sesim/SeSimClassLoader.java +++ b/src/sesim/SeSimClassLoader.java @@ -41,7 +41,7 @@ import java.util.logging.Level; * * @author 7u83 <7u83@mail.ru> */ -public class SeSimClassLoader { +public class SeSimClassLoader { protected ArrayList default_pathlist; @@ -114,14 +114,14 @@ public class SeSimClassLoader { } /** - * Check if a given class provides an certain interface and also if the + * Check if a given class provides a certain interface and also if the * class is not abstract, so it could be instanciated. * * @param cls Class to check * @param iface Interface which the class should provide * @return true if it is an instance of insclass, otherwise false */ - public boolean isInstance(Class cls, Class iface) { + public boolean hasInterface(Class cls, Class iface) { if (Modifier.isAbstract(cls.getModifiers())) { return false; @@ -164,7 +164,7 @@ public class SeSimClassLoader { } if (iface != null) { - if (!isInstance(cls, iface)) { + if (!hasInterface(cls, iface)) { return null; } }