for( int i = 0; i < allocationDepth - 1; ++i ) {
if( id.equals(ithOldest.get(i) ) ) {
- return AGE_in_I;
+ return AGE_in_I;
}
}
public Integer getAge(Integer id) {
for( int i = 0; i < allocationDepth; ++i ) {
if( id.equals(ithOldest.get(i) ) ) {
- return new Integer(i);
+ return new Integer(i);
}
}
for( int i = 0; i < allocationDepth - 1; ++i ) {
if( id.equals(getIthOldestShadow(i) ) ) {
- return SHADOWAGE_in_I;
+ return SHADOWAGE_in_I;
}
}
public Integer getShadowAge(Integer id) {
for( int i = 0; i < allocationDepth - 1; ++i ) {
if( id.equals(getIthOldestShadow(i) ) ) {
- return new Integer(-i);
+ return new Integer(-i);
}
}