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
|
* @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))
|
||||||
|
@@ -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)
|
||||||
|
Reference in New Issue
Block a user