From 937b3a42459cf7aca35fa95ed51c51b150057601 Mon Sep 17 00:00:00 2001 From: Tamas Cservenak Date: Wed, 8 May 2024 09:25:17 +0200 Subject: [PATCH] Formatting issues Some latest commits entered with wrong formatting. --- .../org/eclipse/sisu/space/QualifiedTypeVisitor.java | 5 +++-- .../java/org/eclipse/sisu/space/QualifierCache.java | 4 ++-- .../main/java/org/eclipse/sisu/space/SpaceScanner.java | 10 +++++----- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/org.eclipse.sisu.inject/src/main/java/org/eclipse/sisu/space/QualifiedTypeVisitor.java b/org.eclipse.sisu.inject/src/main/java/org/eclipse/sisu/space/QualifiedTypeVisitor.java index 4b49deac..8f46b7b0 100644 --- a/org.eclipse.sisu.inject/src/main/java/org/eclipse/sisu/space/QualifiedTypeVisitor.java +++ b/org.eclipse.sisu.inject/src/main/java/org/eclipse/sisu/space/QualifiedTypeVisitor.java @@ -48,10 +48,11 @@ public final class QualifiedTypeVisitor public QualifiedTypeVisitor( final QualifiedTypeListener listener ) { - this( listener, false ); + this( listener, false ); } - public QualifiedTypeVisitor( final QualifiedTypeListener listener, boolean isStrict ) { + public QualifiedTypeVisitor( final QualifiedTypeListener listener, boolean isStrict ) + { qualifierCache = new QualifierCache( isStrict ); this.listener = listener; } diff --git a/org.eclipse.sisu.inject/src/main/java/org/eclipse/sisu/space/QualifierCache.java b/org.eclipse.sisu.inject/src/main/java/org/eclipse/sisu/space/QualifierCache.java index d2f45bb8..b7757187 100644 --- a/org.eclipse.sisu.inject/src/main/java/org/eclipse/sisu/space/QualifierCache.java +++ b/org.eclipse.sisu.inject/src/main/java/org/eclipse/sisu/space/QualifierCache.java @@ -43,7 +43,8 @@ final class QualifierCache // Public methods // ---------------------------------------------------------------------- - public QualifierCache(boolean isStrict) { + public QualifierCache( boolean isStrict ) + { super(); this.isStrict = isStrict; } @@ -53,7 +54,6 @@ public void enterClass( final int modifiers, final String name, final String _ex // no-op } - public AnnotationVisitor visitAnnotation( final String desc ) { isQualified |= QUALIFIER_DESC.equals( desc ); diff --git a/org.eclipse.sisu.inject/src/main/java/org/eclipse/sisu/space/SpaceScanner.java b/org.eclipse.sisu.inject/src/main/java/org/eclipse/sisu/space/SpaceScanner.java index 49096e2e..c564506b 100644 --- a/org.eclipse.sisu.inject/src/main/java/org/eclipse/sisu/space/SpaceScanner.java +++ b/org.eclipse.sisu.inject/src/main/java/org/eclipse/sisu/space/SpaceScanner.java @@ -136,16 +136,16 @@ public static void accept( final ClassVisitor visitor, final URL url, boolean is { return; // nothing to visit } - try( final InputStream in = Streams.open( url ) ) + try ( final InputStream in = Streams.open( url ) ) { new ClassReader( in ).accept( adapt( visitor ), ASM_FLAGS ); } - catch ( final IOException|RuntimeException e ) + catch ( final IOException | RuntimeException e ) { - if (isStrict) + if ( isStrict ) { - throw new IllegalStateException( "Problem scanning " + url, e); - } + throw new IllegalStateException( "Problem scanning " + url, e ); + } else { Logs.debug( "Problem scanning: {}", url, e );