Skip to content

Commit 5dbe5db

Browse files
committed
Update use of deprecated APIs
1 parent cbc14ba commit 5dbe5db

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

core/esmf-aspect-meta-model-java/src/main/java/org/eclipse/esmf/aspectmodel/resolver/NamespacePackage.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ private List<AspectModelFile> loadZipContent() {
177177
try ( final ZipInputStream inputStream = new ZipInputStream( new ByteArrayInputStream( content ) ) ) {
178178
for ( ZipEntry entry = inputStream.getNextEntry(); entry != null; entry = inputStream.getNextEntry() ) {
179179
if ( entry.getName().startsWith( modelsRoot ) && entry.getName().endsWith( ".ttl" ) ) {
180-
final RawAspectModelFile rawFile = AspectModelFileLoader.load( inputStream,
181-
Optional.of( constructLocationForFile( entry.getName() ) ) );
180+
final RawAspectModelFile rawFile = AspectModelFileLoader.load( inputStream, constructLocationForFile( entry.getName() ) );
182181
builder.add( rawFile );
183182
}
184183
}

core/esmf-aspect-model-aas-generator/src/test/java/org/eclipse/esmf/aspectmodel/aas/AasToAspectModelGeneratorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void testIdtaAasxFilesCanBeTranslated( final File aasxFile ) {
6767
fail( "Translation of " + aasxFile.getName() + " yielded no Aspects" );
6868
}
6969
final String result = AspectSerializer.INSTANCE.aspectToString( aspects.iterator().next() );
70-
final AspectModel aspectModel = new AspectModelLoader().load( new ByteArrayInputStream( result.getBytes() ) );
70+
final AspectModel aspectModel = new AspectModelLoader().load( new ByteArrayInputStream( result.getBytes() ), aasxFile.toURI() );
7171

7272
aspectModel.elements().forEach( element -> {
7373
if ( element instanceof Property || element instanceof Operation || element instanceof Unit ) {

0 commit comments

Comments
 (0)