diff options
Diffstat (limited to 'ardor3d-ui')
-rw-r--r-- | ardor3d-ui/src/main/java/com/ardor3d/extension/ui/text/CopyPasteManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ardor3d-ui/src/main/java/com/ardor3d/extension/ui/text/CopyPasteManager.java b/ardor3d-ui/src/main/java/com/ardor3d/extension/ui/text/CopyPasteManager.java index 2ac0bb1..31cbe81 100644 --- a/ardor3d-ui/src/main/java/com/ardor3d/extension/ui/text/CopyPasteManager.java +++ b/ardor3d-ui/src/main/java/com/ardor3d/extension/ui/text/CopyPasteManager.java @@ -25,7 +25,7 @@ public enum CopyPasteManager { public String getClipBoardContents() { if (_impl == null) { try { - _impl = (CopyPasteImpl) Class.forName("com.ardor3d.ui.text.awt.AwtCopyPasteImpl").newInstance(); + _impl = (CopyPasteImpl) Class.forName("com.ardor3d.ui.text.awt.AwtCopyPasteImpl").getDeclaredConstructor().newInstance(); } catch (final Throwable t) { _impl = new NullCopyPasteImpl(); } @@ -36,7 +36,7 @@ public enum CopyPasteManager { public void setClipBoardContents(final String contents) { if (_impl == null) { try { - _impl = (CopyPasteImpl) Class.forName("com.ardor3d.ui.text.awt.AwtCopyPasteImpl").newInstance(); + _impl = (CopyPasteImpl) Class.forName("com.ardor3d.ui.text.awt.AwtCopyPasteImpl").getDeclaredConstructor().newInstance(); } catch (final Throwable t) { _impl = new NullCopyPasteImpl(); } |