Skip to content

Commit 47abf6c

Browse files
FrankBiankexianjun
authored andcommitted
correct typos,eg: occured -> occurred (#3380)
LGTM
1 parent 1efa457 commit 47abf6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dubbo-common/src/main/java/org/apache/dubbo/common/extension/ExtensionLoader.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ private void loadDirectory(Map<String, Class<?>> extensionClasses, String dir, S
643643
}
644644
}
645645
} catch (Throwable t) {
646-
logger.error("Exception occured when loading extension class (interface: " +
646+
logger.error("Exception occurred when loading extension class (interface: " +
647647
type + ", description file: " + fileName + ").", t);
648648
}
649649
}
@@ -680,14 +680,14 @@ private void loadResource(Map<String, Class<?>> extensionClasses, ClassLoader cl
680680
reader.close();
681681
}
682682
} catch (Throwable t) {
683-
logger.error("Exception occured when loading extension class (interface: " +
683+
logger.error("Exception occurred when loading extension class (interface: " +
684684
type + ", class file: " + resourceURL + ") in " + resourceURL, t);
685685
}
686686
}
687687

688688
private void loadClass(Map<String, Class<?>> extensionClasses, java.net.URL resourceURL, Class<?> clazz, String name) throws NoSuchMethodException {
689689
if (!type.isAssignableFrom(clazz)) {
690-
throw new IllegalStateException("Error occured when loading extension class (interface: " +
690+
throw new IllegalStateException("Error occurred when loading extension class (interface: " +
691691
type + ", class line: " + clazz.getName() + "), class "
692692
+ clazz.getName() + " is not subtype of interface.");
693693
}

0 commit comments

Comments
 (0)