Skip to content

Commit

Permalink
correct typos,eg: occured -> occurred (#3380)
Browse files Browse the repository at this point in the history
LGTM
  • Loading branch information
FrankBian authored and kexianjun committed Jan 29, 2019
1 parent 1efa457 commit 47abf6c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ private void loadDirectory(Map<String, Class<?>> extensionClasses, String dir, S
}
}
} catch (Throwable t) {
logger.error("Exception occured when loading extension class (interface: " +
logger.error("Exception occurred when loading extension class (interface: " +
type + ", description file: " + fileName + ").", t);
}
}
Expand Down Expand Up @@ -680,14 +680,14 @@ private void loadResource(Map<String, Class<?>> extensionClasses, ClassLoader cl
reader.close();
}
} catch (Throwable t) {
logger.error("Exception occured when loading extension class (interface: " +
logger.error("Exception occurred when loading extension class (interface: " +
type + ", class file: " + resourceURL + ") in " + resourceURL, t);
}
}

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

0 comments on commit 47abf6c

Please sign in to comment.