From be88623fb74db0776fd37b0115c618ec8294c889 Mon Sep 17 00:00:00 2001 From: shikloshi Date: Tue, 18 Aug 2015 17:29:20 +0300 Subject: [PATCH] Add isSuccessful() method to all BintrayResponse --- .../client/bintrayResponse/EmptyBintrayResponse.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build-info-client/src/main/java/org/jfrog/build/client/bintrayResponse/EmptyBintrayResponse.java b/build-info-client/src/main/java/org/jfrog/build/client/bintrayResponse/EmptyBintrayResponse.java index 1373d93ce..ed3a10452 100644 --- a/build-info-client/src/main/java/org/jfrog/build/client/bintrayResponse/EmptyBintrayResponse.java +++ b/build-info-client/src/main/java/org/jfrog/build/client/bintrayResponse/EmptyBintrayResponse.java @@ -11,13 +11,17 @@ public class EmptyBintrayResponse extends BintrayResponse { private int status; - public EmptyBintrayResponse(int status){ + public EmptyBintrayResponse(int status) { this.status = status; } @Override - public String toString(){ + public String toString() { return "\nStatus Code: " + status + "\nView Artifactory logs for more details.\n"; } + @Override + public boolean isSuccessful() { + return false; + } }