Skip to content

Commit

Permalink
Add missing override methods to avoid calling default methods creating
Browse files Browse the repository at this point in the history
unnecessary objects.
  • Loading branch information
garydgregory committed Aug 8, 2021
1 parent 07e88a5 commit 5fb02a1
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5fb02a1

Please sign in to comment.