Skip to content

Commit eab4800

Browse files
committed
feat: create utility init a new File #90 (sonar issue)
1 parent 477691b commit eab4800

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

fj-core/src/main/java/org/fugerit/java/core/io/FileIO.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ public static boolean isInTmpFolder( String tempFilePath ) throws IOException {
5050
}
5151

5252
public static boolean createFullFile( File file ) throws IOException {
53-
boolean created = Boolean.TRUE;
5453
if ( file.exists() ) {
5554
return Boolean.FALSE;
5655
} else {

fj-core/src/test/java/test/org/fugerit/java/core/io/TestFileIO.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public void testCreateFullFile() throws IOException {
4747
file1.delete();
4848
file1.getParentFile().delete();
4949
file2.delete();
50+
Assert.assertTrue( FileIO.createFullFile( new File( baseDir1 ) ) );
5051
Assert.assertTrue( FileIO.createFullFile( file0 ) );
5152
Assert.assertTrue( FileIO.createFullFile( file1 ) );
5253
Assert.assertFalse( FileIO.createFullFile( file0 ) );

0 commit comments

Comments
 (0)