Skip to content

Commit

Permalink
Fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
lhstrh committed Sep 28, 2023
1 parent 8bee8f7 commit b3e6d96
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/main/java/org/lflang/TargetProperty.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

package org.lflang;

import java.lang.reflect.InvocationTargetException;
import java.nio.file.Path;
import java.util.Arrays;
import java.util.LinkedList;
Expand Down Expand Up @@ -283,8 +284,8 @@ public String getKey() {

public static TargetPropertyConfig<?> getPropertyInstance(TargetProperty p) {
try {
return p.propertyClass.newInstance();
} catch (InstantiationException | IllegalAccessException e) {
return p.propertyClass.getDeclaredConstructor().newInstance();
} catch (ReflectiveOperationException e) {
throw new RuntimeException(e);
}
}
Expand Down

0 comments on commit b3e6d96

Please sign in to comment.