Skip to content

Commit

Permalink
No _ in private instance variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Oct 17, 2023
1 parent e7c993b commit 700fc26
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,15 @@ public class TestNavigableSetSubSet extends AbstractNavigableSetTest<E> {
private int highBound;
private final E[] fullElements;
private final E[] otherElements;
private final boolean m_Inclusive;
private final boolean inclusive;

@SuppressWarnings("unchecked")
public TestNavigableSetSubSet(final int bound, final boolean head, final boolean inclusive) {
super("TestNavigableSetSubSet");
if (head) {
type = TYPE_HEADSET;
m_Inclusive = inclusive;
highBound = bound;
this.type = TYPE_HEADSET;
this.inclusive = inclusive;
this.highBound = bound;

final int realBound = inclusive ? bound + 1 : bound;
fullElements = (E[]) new Object[realBound];
Expand All @@ -199,7 +199,7 @@ public TestNavigableSetSubSet(final int bound, final boolean head, final boolean
AbstractNavigableSetTest.this.getOtherElements(), 0, otherElements, 0, bound - 1);
} else {
type = TYPE_TAILSET;
m_Inclusive = inclusive;
this.inclusive = inclusive;
lowBound = bound;
final Object[] allElements = AbstractNavigableSetTest.this.getFullElements();
final int realBound = inclusive ? bound : bound + 1;
Expand All @@ -215,10 +215,10 @@ public TestNavigableSetSubSet(final int bound, final boolean head, final boolean
@SuppressWarnings("unchecked")
public TestNavigableSetSubSet(final int loBound, final int hiBound, final boolean inclusive) {
super("TestNavigableSetSubSet");
type = TYPE_SUBSET;
lowBound = loBound;
highBound = hiBound;
m_Inclusive = inclusive;
this.type = TYPE_SUBSET;
this.lowBound = loBound;
this.highBound = hiBound;
this.inclusive = inclusive;

final int fullLoBound = inclusive ? loBound : loBound + 1;
final int length = hiBound - loBound + 1 - (inclusive ? 0 : 2);
Expand Down Expand Up @@ -260,11 +260,11 @@ private NavigableSet<E> getSubSet(final NavigableSet<E> set) {
final E[] elements = AbstractNavigableSetTest.this.getFullElements();
switch (type) {
case TYPE_SUBSET :
return set.subSet(elements[lowBound], m_Inclusive, elements[highBound], m_Inclusive);
return set.subSet(elements[lowBound], inclusive, elements[highBound], inclusive);
case TYPE_HEADSET :
return set.headSet(elements[highBound], m_Inclusive);
return set.headSet(elements[highBound], inclusive);
case TYPE_TAILSET :
return set.tailSet(elements[lowBound], m_Inclusive);
return set.tailSet(elements[lowBound], inclusive);
default :
return null;
}
Expand Down

0 comments on commit 700fc26

Please sign in to comment.