From dc66f84d71dbbe3723037f13dce1e6c7d8eb40b0 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 8 Jun 2019 12:51:08 -0700 Subject: [PATCH] GUACAMOLE-422: Clarify behavior of atLeast(). --- .../protocol/GuacamoleProtocolVersion.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/guacamole-common/src/main/java/org/apache/guacamole/protocol/GuacamoleProtocolVersion.java b/guacamole-common/src/main/java/org/apache/guacamole/protocol/GuacamoleProtocolVersion.java index e52a7c2c2..5036d6b6f 100644 --- a/guacamole-common/src/main/java/org/apache/guacamole/protocol/GuacamoleProtocolVersion.java +++ b/guacamole-common/src/main/java/org/apache/guacamole/protocol/GuacamoleProtocolVersion.java @@ -127,16 +127,15 @@ public class GuacamoleProtocolVersion { } /** - * Determines whether or not this object is greater than or equal to the - * the version passed in to the method. Returns a boolean true if the - * version is the same as or greater than the other version, otherwise - * false. - * + * Returns whether this GuacamoleProtocolVersion is at least as recent as + * (greater than or equal to) the given version. + * * @param otherVersion - * The version to which this object should be compared. + * The version to which this GuacamoleProtocolVersion should be compared. * * @return - * True if this object is greater than or equal to the other version. + * true if this object is at least as recent as the given version, + * false if the given version is newer. */ public boolean atLeast(GuacamoleProtocolVersion otherVersion) {