GUACAMOLE-774: Fix include and syntax errors.

This commit is contained in:
Nick Couchman
2019-04-09 15:42:00 -04:00
parent 891efa446d
commit 73388e4fd2
2 changed files with 4 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ public enum RadiusAuthenticationProtocol {
* @param strValue * @param strValue
* The string value of the protocol. * The string value of the protocol.
*/ */
public RadiusAuthenticationProtocol(String strValue) { RadiusAuthenticationProtocol(String strValue) {
this.strValue = strValue; this.strValue = strValue;
} }
@@ -65,8 +65,7 @@ public enum RadiusAuthenticationProtocol {
return strValue; return strValue;
} }
@Override public static RadiusAuthenticationProtocol getEnum(String value) {
public static RadiusAuthenticationProtocol valueOf(String value) {
for (RadiusAuthenticationProtocol v : values()) for (RadiusAuthenticationProtocol v : values())
if(v.toString().equals(value)) if(v.toString().equals(value))

View File

@@ -19,6 +19,7 @@
package org.apache.guacamole.auth.radius.conf; package org.apache.guacamole.auth.radius.conf;
import org.apache.guacamole.GuacamoleException;
import org.apache.guacamole.GuacamoleServerException; import org.apache.guacamole.GuacamoleServerException;
/** /**
@@ -37,7 +38,7 @@ public abstract class RadiusAuthenticationProtocolProperty
// Attempt to parse the string value // Attempt to parse the string value
RadiusAuthenticationProtocol authProtocol = RadiusAuthenticationProtocol authProtocol =
RadiusAuthenticationProtocol.valueOf(value); RadiusAuthenticationProtocol.getEnum(value);
// Throw an exception if nothing matched. // Throw an exception if nothing matched.
if (authProtocol == null) if (authProtocol == null)