diff options
Diffstat (limited to 'src/main/java/org/openslx/util/vm/VboxMetaData.java')
-rw-r--r-- | src/main/java/org/openslx/util/vm/VboxMetaData.java | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/main/java/org/openslx/util/vm/VboxMetaData.java b/src/main/java/org/openslx/util/vm/VboxMetaData.java index 2b46ecd..fd31787 100644 --- a/src/main/java/org/openslx/util/vm/VboxMetaData.java +++ b/src/main/java/org/openslx/util/vm/VboxMetaData.java @@ -273,7 +273,7 @@ public class VboxMetaData extends VmMetaData<VBoxSoundCardMeta, VBoxDDAccelMeta, { VBoxSoundCardMeta sound = soundCards.get( type ); - config.changeAttribute( "AudioAdapter", "enabled", vmBoolean( sound.isPresent ) ); + config.changeAttribute( "AudioAdapter", "enabled", Boolean.toString( sound.isPresent ) ); config.changeAttribute( "AudioAdapter", "controller", sound.value ); } @@ -309,7 +309,7 @@ public class VboxMetaData extends VmMetaData<VBoxSoundCardMeta, VBoxDDAccelMeta, public void setDDAcceleration( VmMetaData.DDAcceleration type ) { VBoxDDAccelMeta accel = ddacc.get( type ); - config.changeAttribute( "Display", "accelerate3D", vmBoolean( accel.isPresent ) ); + config.changeAttribute( "Display", "accelerate3D", Boolean.toString( accel.isPresent ) ); } @Override @@ -353,7 +353,7 @@ public class VboxMetaData extends VmMetaData<VBoxSoundCardMeta, VBoxDDAccelMeta, String index = "0"; VBoxEthernetDevTypeMeta networkc = networkCards.get( type ); // cardIndex is not used yet...maybe later needed for different network cards - config.changeAttribute( "Adapter", "enabled", vmBoolean( networkc.isPresent ), "slot", index ); + config.changeAttribute( "Adapter", "enabled", Boolean.toString( networkc.isPresent ), "slot", index ); config.changeAttribute( "Adapter", "type", networkc.value, "slot", index ); } @@ -418,17 +418,6 @@ public class VboxMetaData extends VmMetaData<VBoxSoundCardMeta, VBoxDDAccelMeta, // end of all from vmware supported Ethernet devices versions here } - /** - * given a boolean value returns a string in lowercase of given boolean - * - * @param var - * @return - */ - private static String vmBoolean( boolean var ) - { - return Boolean.toString( var ).toLowerCase(); - } - @Override public boolean addEthernet( VmMetaData.EtherType type ) { |