aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/src/main/java
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2021-03-21 17:34:09 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2021-03-21 17:34:09 +0700
commitecb5320c7b61d72edbf4a440e4996171a9c8f7dd (patch)
tree2b5496ad42ca47d0f3c7e636f2130dbb4d8b6e2c /bridge/src/main/java
parente4a2a5a5d274bc16bae3d1178789752dba043730 (diff)
downloadaspectj-ecb5320c7b61d72edbf4a440e4996171a9c8f7dd.tar.gz
aspectj-ecb5320c7b61d72edbf4a440e4996171a9c8f7dd.zip
Fix some deprecated Java and JUnit warnings by using newer API calls
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'bridge/src/main/java')
-rw-r--r--bridge/src/main/java/org/aspectj/bridge/ReflectionFactory.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/src/main/java/org/aspectj/bridge/ReflectionFactory.java b/bridge/src/main/java/org/aspectj/bridge/ReflectionFactory.java
index 8eb65b3a0..73f063dc4 100644
--- a/bridge/src/main/java/org/aspectj/bridge/ReflectionFactory.java
+++ b/bridge/src/main/java/org/aspectj/bridge/ReflectionFactory.java
@@ -47,7 +47,7 @@ public class ReflectionFactory { // XXX lease, pool
final Class<?> cfn = Class.forName(cname);
String error = null;
if (args == NONE) {
- result = cfn.newInstance();
+ result = cfn.getDeclaredConstructor().newInstance();
} else {
Class<?>[] types = getTypes(args);
Constructor<?> constructor = cfn.getConstructor(types);