You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by mj...@apache.org on 2018/02/14 23:41:59 UTC

[04/12] guacamole-client git commit: GUACAMOLE-504: Clean up getHttpStatusCode().

GUACAMOLE-504: Clean up getHttpStatusCode().


Project: http://git-wip-us.apache.org/repos/asf/guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/guacamole-client/commit/5239a83a
Tree: http://git-wip-us.apache.org/repos/asf/guacamole-client/tree/5239a83a
Diff: http://git-wip-us.apache.org/repos/asf/guacamole-client/diff/5239a83a

Branch: refs/heads/master
Commit: 5239a83acc21b5e9a57048d89f37dde516be3119
Parents: 68e101f
Author: Nick Couchman <vn...@apache.org>
Authored: Thu Feb 8 09:32:04 2018 -0500
Committer: Nick Couchman <vn...@apache.org>
Committed: Fri Feb 9 13:17:08 2018 -0500

----------------------------------------------------------------------
 .../main/java/org/apache/guacamole/GuacamoleException.java   | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/guacamole-client/blob/5239a83a/guacamole-common/src/main/java/org/apache/guacamole/GuacamoleException.java
----------------------------------------------------------------------
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 f0a81d1..44d40e3 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();
     }