Browse Source

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>
master
David Ostrovsky 5 years ago committed by Matthias Sohn
parent
commit
0e87f70e0e
  1. 2
      org.eclipse.jgit/src/org/eclipse/jgit/fnmatch/CharacterHead.java

2
org.eclipse.jgit/src/org/eclipse/jgit/fnmatch/CharacterHead.java

@ -19,7 +19,7 @@ final class CharacterHead extends AbstractHead {
* @param expectedCharacter
* expected {@code char}
*/
protected CharacterHead(char expectedCharacter) {
CharacterHead(char expectedCharacter) {
super(false);
this.expectedCharacter = expectedCharacter;
}

Loading…
Cancel
Save