From 5239a83acc21b5e9a57048d89f37dde516be3119 Mon Sep 17 00:00:00 2001 From: Nick Couchman Date: Thu, 8 Feb 2018 09:32:04 -0500 Subject: [PATCH] GUACAMOLE-504: Clean up getHttpStatusCode(). --- .../java/org/apache/guacamole/GuacamoleException.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/guacamole-common/src/main/java/org/apache/guacamole/GuacamoleException.java b/guacamole-common/src/main/java/org/apache/guacamole/GuacamoleException.java index f0a81d1f0..44d40e3ad 100644 --- a/guacamole-common/src/main/java/org/apache/guacamole/GuacamoleException.java +++ b/guacamole-common/src/main/java/org/apache/guacamole/GuacamoleException.java @@ -70,12 +70,14 @@ public class GuacamoleException extends Exception { } /** - * Returns the numeric HTTP status code associated with this exception. + * Returns the most applicable HTTP status code that can be associated + * with this exception. * * @return - * The numeric HTTP status code associated with this exception. + * An integer representing the most applicable HTTP status code + * associated with this exception. */ - public Integer getHttpStatusCode() { + public int getHttpStatusCode() { return getStatus().getHttpStatusCode(); }