-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Closed
Labels
good first issueGood for newcomersGood for newcomerskind/bugCategory issues or prs related to bug.Category issues or prs related to bug.
Milestone
Description
https://github.com/alibaba/Sentinel/blob/master/sentinel-core/src/main/java/com/alibaba/csp/sentinel/spi/SpiLoader.java
closeResources 有小错误
/**
* Close all resources
*
* @param closeables {@link Closeable} resources
*/
private void closeResources(Closeable... closeables) {
if (closeables == null || closeables.length == 0) {
return;
}
Exception firstException = null;
for (Closeable closeable : closeables) {
try {
closeable.close();
} catch (Exception e) {
if (firstException != null) {
firstException = e;
}
}
}
if (firstException != null) {
fail("error closing resources", firstException);
}
}
cdfive
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomerskind/bugCategory issues or prs related to bug.Category issues or prs related to bug.