File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
src/main/java/org/apache/ibatis/scripting Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,6 @@ public void register(Class<?> cls) {
31
31
if (cls == null ) {
32
32
throw new IllegalArgumentException ("null is not a valid Language Driver" );
33
33
}
34
- if (!LanguageDriver .class .isAssignableFrom (cls )) {
35
- throw new ScriptingException (cls .getName () + " does not implement " + LanguageDriver .class .getName ());
36
- }
37
34
LanguageDriver driver = LANGUAGE_DRIVER_MAP .get (cls );
38
35
if (driver == null ) {
39
36
try {
@@ -49,9 +46,6 @@ public void register(LanguageDriver instance) {
49
46
if (instance == null ) {
50
47
throw new IllegalArgumentException ("null is not a valid Language Driver" );
51
48
}
52
- if (!LanguageDriver .class .isAssignableFrom (instance .getClass ())) {
53
- throw new ScriptingException (instance .getClass ().getName () + " does not implement " + LanguageDriver .class .getName ());
54
- }
55
49
LanguageDriver driver = LANGUAGE_DRIVER_MAP .get (instance .getClass ());
56
50
if (driver == null ) {
57
51
LANGUAGE_DRIVER_MAP .put (instance .getClass (), driver );
You can’t perform that action at this time.
0 commit comments