Skip to content
Permalink
Browse files
Add missing override methods to avoid calling default methods creating
unnecessary objects.
  • Loading branch information
garydgregory committed Aug 8, 2021
1 parent 07e88a5 commit 5fb02a197372cde6e38b88d5be0eaf9b61c38a06
Showing 1 changed file with 10 additions and 0 deletions.
@@ -171,11 +171,21 @@ public long getIdleTimeMillis() {
return elapsed >= 0 ? elapsed : 0;
}

@Override
public Instant getLastBorrowInstant() {
return lastBorrowInstant;
}

@Override
public long getLastBorrowTime() {
return lastBorrowInstant.toEpochMilli();
}

@Override
public Instant getLastReturnInstant() {
return lastReturnInstant;
}

@Override
public long getLastReturnTime() {
return lastReturnInstant.toEpochMilli();

0 comments on commit 5fb02a1

Please sign in to comment.