diff options
Diffstat (limited to 'src/main/java/org/openslx/libvirt/domain/device/Video.java')
-rw-r--r-- | src/main/java/org/openslx/libvirt/domain/device/Video.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/org/openslx/libvirt/domain/device/Video.java b/src/main/java/org/openslx/libvirt/domain/device/Video.java index f3ee13f..a674715 100644 --- a/src/main/java/org/openslx/libvirt/domain/device/Video.java +++ b/src/main/java/org/openslx/libvirt/domain/device/Video.java @@ -73,8 +73,8 @@ public class Video extends Device // only set acceleration on supported Virtio GPUs this.setXmlElementAttributeValueYesNo( "model/acceleration", "accel2d", acceleration ); } else { - String errorMsg = new String( - "Video card model '" + model.toString() + "' does not support enabled 2D hardware acceleration." ); + String errorMsg = + "Video card model '" + model.toString() + "' does not support enabled 2D hardware acceleration."; throw new IllegalArgumentException( errorMsg ); } } @@ -103,8 +103,8 @@ public class Video extends Device // only set acceleration on supported Virtio GPUs this.setXmlElementAttributeValueYesNo( "model/acceleration", "accel3d", acceleration ); } else { - String errorMsg = new String( - "Video card model '" + model.toString() + "' does not support enabled 3D hardware acceleration." ); + String errorMsg = + "Video card model '" + model.toString() + "' does not support enabled 3D hardware acceleration."; throw new IllegalArgumentException( errorMsg ); } } |