]> source.dussan.org Git - jgit.git/commit
PackInserterTest#newLargeBlob: Factor Random instance out to class member 09/115209/1
authorDavid Pursehouse <david.pursehouse@gmail.com>
Thu, 11 Jan 2018 05:22:09 +0000 (14:22 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Thu, 11 Jan 2018 05:23:21 +0000 (14:23 +0900)
commit1842c70b8da5383a698d6adcd8c9ca68310100ef
treefa19d57379f73fd130a83176be3d77c6437f86e8
parentdadbdcdcfcc2c19165047a75bf617e5000cfc445
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>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/PackInserterTest.java