You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2019/08/04 12:38:38 UTC
[maven-dependency-plugin] branch MDEP-655 updated: Fixed Checkstyle
issues.
This is an automated email from the ASF dual-hosted git repository.
khmarbaise pushed a commit to branch MDEP-655
in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git
The following commit(s) were added to refs/heads/MDEP-655 by this push:
new 317b562 Fixed Checkstyle issues.
317b562 is described below
commit 317b562d035d151f6dc9182de9efd156b6d1ce32
Author: Karl Heinz Marbaise <kh...@apache.org>
AuthorDate: Sun Aug 4 14:38:26 2019 +0200
Fixed Checkstyle issues.
---
.../plugins/dependency/utils/filters/DestFileFilter.java | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/main/java/org/apache/maven/plugins/dependency/utils/filters/DestFileFilter.java b/src/main/java/org/apache/maven/plugins/dependency/utils/filters/DestFileFilter.java
index 985c25d..8191a12 100644
--- a/src/main/java/org/apache/maven/plugins/dependency/utils/filters/DestFileFilter.java
+++ b/src/main/java/org/apache/maven/plugins/dependency/utils/filters/DestFileFilter.java
@@ -296,26 +296,26 @@ public class DestFileFilter
destFile = new File( destFolder, item.getDestFileName() );
}
- return overWrite || !destFile.exists()
- || ( overWriteIfNewer && getLastModified( artifact.getFile()) > getLastModified( destFile) );
+ return overWrite || !destFile.exists() || ( overWriteIfNewer && getLastModified(
+ artifact.getFile() ) > getLastModified( destFile ) );
}
/**
- * Using simply {@code File.getLastModified} will return
- * sometime a wrong value see JDK bug for details.
- *
+ * Using simply {@code File.getLastModified} will return sometime a wrong value see JDK bug for details.
+ * <p>
* https://bugs.openjdk.java.net/browse/JDK-8177809
*
* @param file {@link File}
* @return the last modification time in milliseconds.
* @throws ArtifactFilterException in case of a IO Exception.
*/
- private long getLastModified(File file) throws ArtifactFilterException
+ private long getLastModified( File file ) throws ArtifactFilterException
{
try
{
return Files.getLastModifiedTime( file.toPath() ).toMillis();
- } catch (IOException e)
+ }
+ catch ( IOException e )
{
throw new ArtifactFilterException( "IO Exception", e );
}