From ec56f76b7ec572dd4fcc4c180eda16f009dd63ce Mon Sep 17 00:00:00 2001 From: Yauhenikapl Date: Tue, 24 Sep 2024 13:41:30 +0300 Subject: [PATCH] Update PR --- .../esmf/aspectmodel/aas/AasToAspectModelGenerator.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/core/esmf-aspect-model-aas-generator/src/main/java/org/eclipse/esmf/aspectmodel/aas/AasToAspectModelGenerator.java b/core/esmf-aspect-model-aas-generator/src/main/java/org/eclipse/esmf/aspectmodel/aas/AasToAspectModelGenerator.java index c986ef77..7dca497b 100644 --- a/core/esmf-aspect-model-aas-generator/src/main/java/org/eclipse/esmf/aspectmodel/aas/AasToAspectModelGenerator.java +++ b/core/esmf-aspect-model-aas-generator/src/main/java/org/eclipse/esmf/aspectmodel/aas/AasToAspectModelGenerator.java @@ -173,15 +173,8 @@ public List getSubmodelNames() { .collect( Collectors.toList() ); } - private Collector, ArrayDeque> reverseOrder() { - return Collector.of( ArrayDeque::new, ArrayDeque::addFirst, ( deque1, deque2 ) -> { - deque2.addAll( deque1 ); - return deque2; - } ); - } - private String iriToReversedHostNameNotation( final IRI iri ) { - URI uri; + final URI uri; try { uri = URI.create( iri.toString().contains( "://" ) ? iri.toString() : "https://" + iri ); } catch ( IllegalArgumentException e ) {