Skip to content

Commit

Permalink
Use "protected" on all "on...()" methods (#435)
Browse files Browse the repository at this point in the history
Some "@OverRide" methods used the "public" modifier, which is not necessary. Looking at
the base classes of these classes a "protected" modifier was used, so "protected" seems
to be intentionally.
  • Loading branch information
dr0i committed Jan 11, 2022
1 parent 72617a0 commit 53b322f
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ private static Object createObjectFromString(final String value,
}

@Override
public void onCloseStream() {
protected void onCloseStream() {
typeEncoderStack.clear();
}

@Override
public void onResetStream() {
protected void onResetStream() {
typeEncoderStack.clear();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,18 +217,18 @@ public void literal(final String name, final String value) {
}

@Override
public void onSetReceiver() {
protected void onSetReceiver() {
streamBuffer.setReceiver(getReceiver());
}

@Override
public void onResetStream() {
protected void onResetStream() {
streamBuffer.clear();
entityPathTracker.resetStream();
}

@Override
public void onCloseStream() {
protected void onCloseStream() {
streamBuffer.clear();
entityPathTracker.closeStream();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,13 @@ public void literal(final String name, final String value) {
}

@Override
public void onResetStream() {
protected void onResetStream() {
entityPathTracker.resetStream();
resetRecord();
}

@Override
public void onCloseStream() {
protected void onCloseStream() {
entityPathTracker.closeStream();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void endEntity() {
}

@Override
public void onResetStream() {
protected void onResetStream() {
numRecords = 0;
numEntities = 0;
numLiterals = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected void onCloseStream() {
}

@Override
public void onResetStream() {
protected void onResetStream() {
record = new StringBuilder(SB_CAPACITY);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public String getXmlDeclaration() {
}

@Override
public void onResetStream() {
protected void onResetStream() {
reset();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ protected void clear() {
}

@Override
public void onNamedValueSourceAdded(final NamedValueSource namedValueSource) {
protected void onNamedValueSourceAdded(final NamedValueSource namedValueSource) {
sourceList.add(namedValueSource);
sourcesLeft.add(namedValueSource);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected void emit() {
}

@Override
public void onNamedValueSourceAdded(final NamedValueSource namedValueSource) {
protected void onNamedValueSourceAdded(final NamedValueSource namedValueSource) {
sources.add(namedValueSource);
sourcesLeft.add(namedValueSource);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected void receive(final String newName, final String newValue, final NamedV
}

@Override
public void onNamedValueSourceAdded(final NamedValueSource namedValueSource) {
protected void onNamedValueSourceAdded(final NamedValueSource namedValueSource) {
priorities.put(namedValueSource, Integer.valueOf(nextPriority));
nextPriority += 1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected void receive(final String name, final String value, final NamedValueSo
}

@Override
public void onNamedValueSourceAdded(final NamedValueSource namedValueSource) {
protected void onNamedValueSourceAdded(final NamedValueSource namedValueSource) {
sources.add(namedValueSource);
sourcesLeft.add(namedValueSource);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected void receive(final String name, final String value, final NamedValueSo
}

@Override
public void onNamedValueSourceAdded(final NamedValueSource namedValueSource) {
protected void onNamedValueSourceAdded(final NamedValueSource namedValueSource) {
sources.add(namedValueSource);
sourcesLeft.add(namedValueSource);
}
Expand Down

0 comments on commit 53b322f

Please sign in to comment.