Skip to content

AbstractCOSCachedCredentialsProvider类是不是应该实现AutoCloseable而非Closeable #242

Open
@wuzhidexiaolang

Description

@wuzhidexiaolang

@OverRide
public void close() throws IOException {
if (executors != null) {
executors.shutdownNow();
executors = null;
}
}
关闭的是线程资源,Closeable针对的是IO资源,只能抛出 IOException,AutoCloseable是通用的资源,可以抛出Exception

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions