Style fixes.

This commit is contained in:
Michael Jumper
2011-12-20 21:40:41 -08:00
parent b3708bb381
commit f89020ef0f
2 changed files with 7 additions and 4 deletions

View File

@@ -49,11 +49,13 @@ public abstract class FileGuacamoleProperty implements GuacamoleProperty<File> {
@Override @Override
public File parseValue(String value) throws GuacamoleException { public File parseValue(String value) throws GuacamoleException {
// having a null value is acceptable. If value is null, no error thrown.
if(value != null) // If no property provided, return null.
return new File(value); if (value == null)
else
return null; return null;
return new File(value);
} }
} }

View File

@@ -108,6 +108,7 @@ public class GuacamoleProperties {
* guacamole.properties. * guacamole.properties.
*/ */
public static <Type> Type getProperty(GuacamoleProperty<Type> property) throws GuacamoleException { public static <Type> Type getProperty(GuacamoleProperty<Type> property) throws GuacamoleException {
if (exception != null) if (exception != null)
throw exception; throw exception;