XenoAmess commented on a change in pull request #115:
URL: https://github.com/apache/commons-io/pull/115#discussion_r432870107
##########
File path: src/main/java/org/apache/commons/io/file/Counters.java
##########
@@ -92,8 +92,8 @@ public int hashCode() {
@Override
public String toString() {
- return String.format("%,d files, %,d directories, %,d bytes",
Long.valueOf(fileCounter.get()),
- Long.valueOf(directoryCounter.get()),
Long.valueOf(byteCounter.get()));
+ return String.format("%,d files, %,d directories, %,d bytes",
fileCounter.get(),
+ directoryCounter.get(), byteCounter.get());
Review comment:
OK, will not happen next time :-)
##########
File path: src/main/java/org/apache/commons/io/file/Counters.java
##########
@@ -135,7 +135,7 @@ public BigInteger getBigInteger() {
@Override
public Long getLong() {
- return Long.valueOf(value.longValueExact());
+ return value.longValueExact();
Review comment:
done.
##########
File path: src/main/java/org/apache/commons/io/file/Counters.java
##########
@@ -245,7 +245,7 @@ public BigInteger getBigInteger() {
@Override
public Long getLong() {
- return Long.valueOf(value);
+ return value;
Review comment:
done.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]