Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions codereview.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
public class Test {
private List<KeyVersion> processEventsInBucket(String bucketName) {
final AmazonS3 s3Client = EventHandler.getS3Client();
ObjectListing files = s3Client.listObjects(bucketName);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommendation generated by Amazon CodeGuru Reviewer

This code uses an outdated API. ListObjectsV2 is the revised List Objects API, and we recommend you use this revised API for new application developments.

}
public void test() {
while(true) {
System.out.println('aaaa');
}
}
public static long sum(int[] a) {
int sum = 0;
for (int i = 0; i < a.length; i++) {
sum+= a[i];
}
return sum;
}
}