mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-774: Fix include and syntax errors.
This commit is contained in:
@@ -56,7 +56,7 @@ public enum RadiusAuthenticationProtocol {
|
||||
* @param strValue
|
||||
* The string value of the protocol.
|
||||
*/
|
||||
public RadiusAuthenticationProtocol(String strValue) {
|
||||
RadiusAuthenticationProtocol(String strValue) {
|
||||
this.strValue = strValue;
|
||||
}
|
||||
|
||||
@@ -65,8 +65,7 @@ public enum RadiusAuthenticationProtocol {
|
||||
return strValue;
|
||||
}
|
||||
|
||||
@Override
|
||||
public static RadiusAuthenticationProtocol valueOf(String value) {
|
||||
public static RadiusAuthenticationProtocol getEnum(String value) {
|
||||
|
||||
for (RadiusAuthenticationProtocol v : values())
|
||||
if(v.toString().equals(value))
|
||||
|
@@ -19,6 +19,7 @@
|
||||
|
||||
package org.apache.guacamole.auth.radius.conf;
|
||||
|
||||
import org.apache.guacamole.GuacamoleException;
|
||||
import org.apache.guacamole.GuacamoleServerException;
|
||||
|
||||
/**
|
||||
@@ -37,7 +38,7 @@ public abstract class RadiusAuthenticationProtocolProperty
|
||||
|
||||
// Attempt to parse the string value
|
||||
RadiusAuthenticationProtocol authProtocol =
|
||||
RadiusAuthenticationProtocol.valueOf(value);
|
||||
RadiusAuthenticationProtocol.getEnum(value);
|
||||
|
||||
// Throw an exception if nothing matched.
|
||||
if (authProtocol == null)
|
||||
|
Reference in New Issue
Block a user