]> source.dussan.org Git - jgit.git/commit
FsckError.CorruptObject: Use @Nullable constructor for errorType 56/130656/4
authorIvan Frade <ifrade@google.com>
Mon, 8 Oct 2018 21:43:17 +0000 (14:43 -0700)
committerIvan Frade <ifrade@google.com>
Tue, 9 Oct 2018 18:53:06 +0000 (11:53 -0700)
commit7aebb6779c19d0c62a1c11fa89d19a1e5a03ea1c
treed93b9caba1a9099acbabc711b21db41ed883bbfb
parent9372791fcf0e3350a457cf5cf0959ccd3fff95fe
FsckError.CorruptObject: Use @Nullable constructor for errorType

errorType is already null in the caller and callee when unknown, so we
can replace a conditional call to a setter in the only caller with an
unconditionally provided @Nullable constructor parameter.

As a bonus, this lets us mark the field as final.

Change-Id: Ie2f929180e74ffa1aba8ec6caccfa81fbd8bfc04
Signed-off-by: Ivan Frade <ifrade@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/internal/fsck/FsckError.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/fsck/FsckPackParser.java