Skip to content

Commit

Permalink
Cleaned up Javadoc, updated version number to 1.0, and got rid of min…
Browse files Browse the repository at this point in the history
…or warnings
  • Loading branch information
Andrew Binstock committed Aug 9, 2020
1 parent f08912f commit 8b89d3d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
27 changes: 25 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<java.version>1.8</java.version>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<maven.build.timestamp.format>MMM d, YYYY h:mm a z</maven.build.timestamp.format>
</properties>

<description>
Expand Down Expand Up @@ -45,13 +50,31 @@
<version>3.2.0</version>
<configuration>
<show>private</show>
<footer>Generated ${maven.build.timestamp}, (c) Copyright 2020 Andrew Binstock</footer>
</configuration>
</plugin>
</plugins>


</build>

<reporting>
<plugins>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>4.0.4</version>
<configuration>
<effort>Max</effort>
<threshold>Low</threshold>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.7</version>
</plugin>
</plugins>
</reporting>

<dependencies>
<dependency>
<groupId>junit</groupId>
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/org/pz/filededupe/FileChecksum.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ long calculate() throws IOException {
FileInputStream file;

try {
file = new FileInputStream(filename);
file = new FileInputStream( filename );
} catch( FileNotFoundException e ) {
System.err.println( "Error: File " + filename + " not found.");
throw( new IOException( e.toString() ));
Expand All @@ -59,6 +59,9 @@ long calculate() throws IOException {
in.close();
} catch( IOException e ) {
System.err.println( "Error reading file: " + filename );
check.close();
in.close();
file.close();
throw( new IOException( e.toString() ));
}

Expand Down

0 comments on commit 8b89d3d

Please sign in to comment.