From 6b439073f191c70121ff5a189e8b286d652107fc Mon Sep 17 00:00:00 2001 From: Kirill Vlasov <kirill.vlasov@devfactory.com> Date: Thu, 24 Dec 2015 09:26:00 +0500 Subject: [PATCH] [s3] Fixing squid:S1143 - return statements should not occur in finally blocks --- s3/src/main/java/com/yahoo/ycsb/db/S3Client.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/s3/src/main/java/com/yahoo/ycsb/db/S3Client.java b/s3/src/main/java/com/yahoo/ycsb/db/S3Client.java index bd18ed51..89da1576 100644 --- a/s3/src/main/java/com/yahoo/ycsb/db/S3Client.java +++ b/s3/src/main/java/com/yahoo/ycsb/db/S3Client.java @@ -414,14 +414,14 @@ public class S3Client extends DB { System.err.println("Not possible to write object :"+key); e.printStackTrace(); return Status.ERROR; - } finally { - return Status.OK; } } catch (Exception e) { System.err.println("Error in the creation of the stream :"+e.toString()); e.printStackTrace(); return Status.ERROR; } + + return Status.OK; } /** @@ -465,9 +465,9 @@ public class S3Client extends DB { System.err.println("Not possible to get the object "+key); e.printStackTrace(); return Status.ERROR; - } finally { - return Status.OK; } + + return Status.OK; } /** -- GitLab