summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2018-04-16 14:08:30 +0200
committerJonathan Bauer2018-04-16 14:08:30 +0200
commitd4f90318394a9f2e2b30cb436ac4ca1c5c46b253 (patch)
tree1524ada7f257ac0fcb04110e00047580cd02952d
parentrefactor: populateTheMaps -> registerVirtualHW (diff)
downloadmaster-sync-shared-vbox.tar.gz
master-sync-shared-vbox.tar.xz
master-sync-shared-vbox.zip
refactor: remove unneeded function wrappervbox
-rw-r--r--src/main/java/org/openslx/util/vm/VboxMetaData.java17
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 )
{