Skip to content

Commit

Permalink
Merge pull request #16 from Afrouper/main
Browse files Browse the repository at this point in the history
git and maven housekeeping
  • Loading branch information
xeraph authored Dec 13, 2021
2 parents 3786246 + 04d3cd8 commit 75109d8
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/
2 changes: 2 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
</properties>

<build>
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/com/logpresso/scanner/Log4j2Scanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -375,4 +375,12 @@ private void ensureClose(Closeable c) {
}
}

private void ensureClose(ZipFile zipFile) {
if (zipFile != null) {
try {
zipFile.close();
} catch (Throwable t) {
}
}
}
}

0 comments on commit 75109d8

Please sign in to comment.