diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2018-01-11 14:22:09 +0900 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2018-01-11 14:23:21 +0900 |
commit | 1842c70b8da5383a698d6adcd8c9ca68310100ef (patch) | |
tree | fa19d57379f73fd130a83176be3d77c6437f86e8 /org.eclipse.jgit.test/org.eclipse.jgit.core--All-Tests (Java 8).launch | |
parent | dadbdcdcfcc2c19165047a75bf617e5000cfc445 (diff) | |
download | jgit-1842c70b8da5383a698d6adcd8c9ca68310100ef.tar.gz jgit-1842c70b8da5383a698d6adcd8c9ca68310100ef.zip |
PackInserterTest#newLargeBlob: Factor Random instance out to class member
Instead of instantiating a new Random on each invocation of newLargeBlob,
create it once and reuse it.
This fixes a warning raised by Spotbugs about the Random object being
created and only used once.
Change-Id: I5b8e6ccbbc92641811537808aed9eae2034c1133
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.test/org.eclipse.jgit.core--All-Tests (Java 8).launch')
0 files changed, 0 insertions, 0 deletions