Skip to content

Commit

Permalink
Fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Yauhenikapl committed Jan 10, 2025
1 parent 58b7362 commit c8680e7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
}
Expand All @@ -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 ) {
Expand Down Expand Up @@ -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() ) {
Expand Down

0 comments on commit c8680e7

Please sign in to comment.