Skip to content

Commit 09616fc

Browse files
committed
[Java] Use Constructor to avoid deprecation warning in Java 10.
1 parent 1e7a70e commit 09616fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/TargetCodeGeneratorLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static TargetCodeGenerator get(final String name)
7676

7777
try
7878
{
79-
return (TargetCodeGenerator)Class.forName(name).newInstance();
79+
return (TargetCodeGenerator)Class.forName(name).getConstructor().newInstance();
8080
}
8181
catch (final Exception ex)
8282
{

0 commit comments

Comments
 (0)