Skip to content

Commit

Permalink
Code cleaning via SpotBugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-brandizi committed Jan 11, 2024
1 parent c77ae11 commit 716bae1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion revision-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


## 14.0.1
* Various dependency ugrades.
* Various dependency upgrades.


## 14.0
Expand Down
8 changes: 7 additions & 1 deletion src/test/java/uk/ac/ebi/utils/memory/CleaningObjectTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,20 @@ public void close ()
log.info ( "close() invoked for {}!", this.getClass ().getSimpleName () );
System.err.println ( "close() invoked for " + this.getClass ().getSimpleName () + "!" );
}

public void doSomething ()
{
log.info ( "Doing something, just to avoid code analysis warnings" );
}
}

@Test @Ignore ( "To be completed" )
public void testBasics ()
{
@SuppressWarnings ( { "resource", "unused" } )
@SuppressWarnings ( { "resource" } )
SelfDisposingObject obj = new SelfDisposingObject ();
// TODO: we need something to trigger the disposal, for the moment we just check
// the logging output.
obj.doSomething ();
}
}

0 comments on commit 716bae1

Please sign in to comment.