Skip to content

Commit

Permalink
Fix formatting issues (#109)
Browse files Browse the repository at this point in the history
Some latest commits entered with wrong formatting.
  • Loading branch information
cstamas authored May 8, 2024
1 parent 269a0ca commit 02d39b8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ final class QualifierCache
// Public methods
// ----------------------------------------------------------------------

public QualifierCache(boolean isStrict) {
public QualifierCache( boolean isStrict )
{
super();
this.isStrict = isStrict;
}
Expand All @@ -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 );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 02d39b8

Please sign in to comment.