IBM / ibm-cos-sdk-java

ibm-cos-sdk-java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example code in README.md confusing

YossiTamari opened this issue · comments

In the example in README.md, the method listBuckets receives a s3Client parameter, but then it ignores it and uses the static member _s3Client instead.
I believe the method should use the parameter. In fact, I think the static member should be removed from the code and a simple local variable should be used in main().