diff --git a/license-maven-plugin-git/src/main/java/com/mycila/maven/plugin/license/git/GitLookup.java b/license-maven-plugin-git/src/main/java/com/mycila/maven/plugin/license/git/GitLookup.java index 6e62f6028..b7d8d8fdd 100644 --- a/license-maven-plugin-git/src/main/java/com/mycila/maven/plugin/license/git/GitLookup.java +++ b/license-maven-plugin-git/src/main/java/com/mycila/maven/plugin/license/git/GitLookup.java @@ -186,6 +186,7 @@ String getAuthorEmailOfCreation(File file) throws IOException, GitAPIException { } private boolean isFileModifiedOrUnstaged(String repoRelativePath) throws GitAPIException { + @SuppressWarnings("resource") Status status = new Git(repository).status().addPath(repoRelativePath).call(); return !status.isClean(); }