@@ -84,15 +84,15 @@ public static int getPatchVersion() {
8484 * @param minorVersion the minor version
8585 * @param patchVersion the patch version
8686 *
87- * @return 0 if the versions are the same, -1 if the given version is lower, 1 if the given version is higher
87+ * @return 0 if the versions are the same, negative if the server version is lower, positive if the server version is higher
8888 */
8989 public static int compare (int majorVersion , int minorVersion , int patchVersion ) {
90- int compare = Integer .compare (majorVersion , MAJOR_VERSION );
90+ int compare = Integer .compare (MAJOR_VERSION , majorVersion );
9191 if (compare == 0 ) {
92- compare = Integer .compare (minorVersion , MINOR_VERSION );
92+ compare = Integer .compare (MINOR_VERSION , minorVersion );
9393 }
9494 if (compare == 0 ) {
95- compare = Integer .compare (patchVersion , PATCH_VERSION );
95+ compare = Integer .compare (PATCH_VERSION , patchVersion );
9696 }
9797 return compare ;
9898 }
@@ -103,7 +103,7 @@ public static int compare(int majorVersion, int minorVersion, int patchVersion)
103103 * @param majorVersion the major version
104104 * @param minorVersion the minor version
105105 *
106- * @return 0 if the versions are the same, -1 if the given version is lower, 1 if the given version is higher
106+ * @return 0 if the versions are the same, negative if the server version is lower, positive if the server version is higher
107107 */
108108 public static int compare (int majorVersion , int minorVersion ) {
109109 return compare (majorVersion , minorVersion , getPatchVersion ());
@@ -114,7 +114,7 @@ public static int compare(int majorVersion, int minorVersion) {
114114 *
115115 * @param majorVersion the major version
116116 *
117- * @return 0 if the versions are the same, -1 if the given version is lower, 1 if the given version is higher
117+ * @return 0 if the versions are the same, negative if the server version is lower, positive if the server version is higher
118118 */
119119 public static int compare (int majorVersion ) {
120120 return compare (majorVersion , getMinorVersion ());
0 commit comments