]> source.dussan.org Git - jgit.git/commit
Fix ProtectedMembersInFinalClass warning flagged by error prone 03/163403/4
authorDavid Ostrovsky <david@ostrovsky.org>
Fri, 22 May 2020 06:03:41 +0000 (08:03 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 4 Jun 2020 14:24:16 +0000 (16:24 +0200)
commit0e87f70e0e0618973c75254fa962b40d2da7cd4c
tree8dcc8e20165759d8ccb84e976646f859e70635fe
parentcd1023cf453db935ea7d25121cde7800df6dfdb7
Fix ProtectedMembersInFinalClass warning flagged by error prone

Running recent error prone version complaining on that code:

CharacterHead.java:22: error: [ProtectedMembersInFinalClass] Make
members of final classes package-private: <init>
protected CharacterHead(char expectedCharacter) {
          ^
    (see https://errorprone.info/bugpattern/ProtectedMembersInFinalClass)
  Did you mean 'CharacterHead(char expectedCharacter) {'

Bug: 562756
Change-Id: Ic46a0b07e46235592f6e63db631f583303420b73
Signed-off-by: David Ostrovsky <david@ostrovsky.org>
org.eclipse.jgit/src/org/eclipse/jgit/fnmatch/CharacterHead.java