aboutsummaryrefslogtreecommitdiffstats
path: root/ardor3d-ui
diff options
context:
space:
mode:
authorJulien Gouesse <[email protected]>2023-02-15 23:08:25 +0100
committerJulien Gouesse <[email protected]>2023-02-15 23:08:25 +0100
commitaa6df077361bf1470d3799514f5774951025bed4 (patch)
treeef4161d363c026cfcdf9ac884f91a16bf09869ef /ardor3d-ui
parentd0444773304dd536898183e361d2737315aee6b5 (diff)
Removes some deprecated calls in order to ease compilation with future versions of Java
Diffstat (limited to 'ardor3d-ui')
-rw-r--r--ardor3d-ui/src/main/java/com/ardor3d/extension/ui/text/CopyPasteManager.java4
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();
}