From c8680e7ec64ff076361c61c16e8665e4a4952a25 Mon Sep 17 00:00:00 2001 From: Yauhenikapl Date: Fri, 10 Jan 2025 13:39:11 +0300 Subject: [PATCH] Fix styles --- .../AspectModelDatabricksDenormalizedSqlVisitor.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/esmf-aspect-model-document-generators/src/main/java/org/eclipse/esmf/aspectmodel/generator/sql/databricks/AspectModelDatabricksDenormalizedSqlVisitor.java b/core/esmf-aspect-model-document-generators/src/main/java/org/eclipse/esmf/aspectmodel/generator/sql/databricks/AspectModelDatabricksDenormalizedSqlVisitor.java index d58d01d0..0c16ab59 100644 --- a/core/esmf-aspect-model-document-generators/src/main/java/org/eclipse/esmf/aspectmodel/generator/sql/databricks/AspectModelDatabricksDenormalizedSqlVisitor.java +++ b/core/esmf-aspect-model-document-generators/src/main/java/org/eclipse/esmf/aspectmodel/generator/sql/databricks/AspectModelDatabricksDenormalizedSqlVisitor.java @@ -196,7 +196,7 @@ public String visitProperty( final Property property, final Context context ) { } return property.getCharacteristic().get().accept( this, context.copy() - .prefix( ( context.prefix().isEmpty() ? "" : context.prefix() + LEVEL_DELIMITER ) + columnName( property ) ) + .prefix( (context.prefix().isEmpty() ? "" : context.prefix() + LEVEL_DELIMITER) + columnName( property ) ) .currentProperty( property ) .build() ); } @@ -220,7 +220,6 @@ public String visitEither( final Either either, final Context context ) { public String visitCharacteristic( final Characteristic characteristic, final Context context ) { final Property property = context.currentProperty(); final Type type = characteristic.getDataType().orElseThrow(); - System.out.println("TEST Complex Type Collection or not: " + type.isComplexType() + " : " + characteristic.getName()); if ( type.isComplexType() ) { // Break endless recursion if ( context.recursionDepth().getOrDefault( property, 0 ) >= MAX_RECURSION_DEPTH ) { @@ -277,9 +276,10 @@ public String visitCollection( final Collection collection, final Context contex } } - private String processComplexType( final ComplexType entity, final Context context, final String parentPrefix, final boolean isCollection ) { + private String processComplexType( final ComplexType entity, final Context context, final String parentPrefix, + final boolean isCollection ) { StringBuilder columns = new StringBuilder(); - final String lineDelimiter = ",\n "; + final String lineDelimiter = ",\n "; entity.getAllProperties().forEach( property -> { if ( property.getDataType().isEmpty() || property.isNotInPayload() ) {