File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
core/esmf-native-support/src/main/java/org/eclipse/esmf/substitution
tools/samm-cli/src/main/java/org/eclipse/esmf Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1717import java .io .IOException ;
1818import java .io .InputStream ;
1919
20+ import org .eclipse .esmf .nativefeatures .Native ;
21+
2022import com .oracle .svm .core .annotate .Alias ;
2123import com .oracle .svm .core .annotate .Substitute ;
2224import com .oracle .svm .core .annotate .TargetClass ;
4042public final class Target_sun_awt_FontConfiguration {
4143 @ Substitute
4244 private void readFontConfigFile ( final File f ) {
43- try ( final InputStream inputStream = getClass (). getResourceAsStream ( "fontconfig.bfc" ) ) {
45+ try ( final InputStream inputStream = Native . class . getResourceAsStream ( "/ fontconfig.bfc" ) ) {
4446 loadBinary ( inputStream );
4547 } catch ( final IOException exception ) {
4648 throw new RuntimeException ( exception );
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ public static boolean appliesToInput( final String input ) {
7676 try {
7777 return absoluteFile ( new File ( input ) ).exists ();
7878 } catch ( final Exception exception ) {
79- // This could file with e.g. a InvalidPathException or with platform-specific exceptions when the input is indeed not a valid file
79+ // This could fail with e.g. a InvalidPathException or with platform-specific exceptions when the input is indeed not a valid file
8080 return false ;
8181 }
8282 }
You can’t perform that action at this time.
0 commit comments