No _ in private instance variable name
This commit is contained in:
parent
e7c993b64c
commit
700fc2623b
|
@ -181,15 +181,15 @@ public abstract class AbstractNavigableSetTest<E> extends AbstractSortedSetTest<
|
||||||
private int highBound;
|
private int highBound;
|
||||||
private final E[] fullElements;
|
private final E[] fullElements;
|
||||||
private final E[] otherElements;
|
private final E[] otherElements;
|
||||||
private final boolean m_Inclusive;
|
private final boolean inclusive;
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public TestNavigableSetSubSet(final int bound, final boolean head, final boolean inclusive) {
|
public TestNavigableSetSubSet(final int bound, final boolean head, final boolean inclusive) {
|
||||||
super("TestNavigableSetSubSet");
|
super("TestNavigableSetSubSet");
|
||||||
if (head) {
|
if (head) {
|
||||||
type = TYPE_HEADSET;
|
this.type = TYPE_HEADSET;
|
||||||
m_Inclusive = inclusive;
|
this.inclusive = inclusive;
|
||||||
highBound = bound;
|
this.highBound = bound;
|
||||||
|
|
||||||
final int realBound = inclusive ? bound + 1 : bound;
|
final int realBound = inclusive ? bound + 1 : bound;
|
||||||
fullElements = (E[]) new Object[realBound];
|
fullElements = (E[]) new Object[realBound];
|
||||||
|
@ -199,7 +199,7 @@ public abstract class AbstractNavigableSetTest<E> extends AbstractSortedSetTest<
|
||||||
AbstractNavigableSetTest.this.getOtherElements(), 0, otherElements, 0, bound - 1);
|
AbstractNavigableSetTest.this.getOtherElements(), 0, otherElements, 0, bound - 1);
|
||||||
} else {
|
} else {
|
||||||
type = TYPE_TAILSET;
|
type = TYPE_TAILSET;
|
||||||
m_Inclusive = inclusive;
|
this.inclusive = inclusive;
|
||||||
lowBound = bound;
|
lowBound = bound;
|
||||||
final Object[] allElements = AbstractNavigableSetTest.this.getFullElements();
|
final Object[] allElements = AbstractNavigableSetTest.this.getFullElements();
|
||||||
final int realBound = inclusive ? bound : bound + 1;
|
final int realBound = inclusive ? bound : bound + 1;
|
||||||
|
@ -215,10 +215,10 @@ public abstract class AbstractNavigableSetTest<E> extends AbstractSortedSetTest<
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public TestNavigableSetSubSet(final int loBound, final int hiBound, final boolean inclusive) {
|
public TestNavigableSetSubSet(final int loBound, final int hiBound, final boolean inclusive) {
|
||||||
super("TestNavigableSetSubSet");
|
super("TestNavigableSetSubSet");
|
||||||
type = TYPE_SUBSET;
|
this.type = TYPE_SUBSET;
|
||||||
lowBound = loBound;
|
this.lowBound = loBound;
|
||||||
highBound = hiBound;
|
this.highBound = hiBound;
|
||||||
m_Inclusive = inclusive;
|
this.inclusive = inclusive;
|
||||||
|
|
||||||
final int fullLoBound = inclusive ? loBound : loBound + 1;
|
final int fullLoBound = inclusive ? loBound : loBound + 1;
|
||||||
final int length = hiBound - loBound + 1 - (inclusive ? 0 : 2);
|
final int length = hiBound - loBound + 1 - (inclusive ? 0 : 2);
|
||||||
|
@ -260,11 +260,11 @@ public abstract class AbstractNavigableSetTest<E> extends AbstractSortedSetTest<
|
||||||
final E[] elements = AbstractNavigableSetTest.this.getFullElements();
|
final E[] elements = AbstractNavigableSetTest.this.getFullElements();
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case TYPE_SUBSET :
|
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 :
|
case TYPE_HEADSET :
|
||||||
return set.headSet(elements[highBound], m_Inclusive);
|
return set.headSet(elements[highBound], inclusive);
|
||||||
case TYPE_TAILSET :
|
case TYPE_TAILSET :
|
||||||
return set.tailSet(elements[lowBound], m_Inclusive);
|
return set.tailSet(elements[lowBound], inclusive);
|
||||||
default :
|
default :
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue