int length = (interposedSynchronizations == null
? 0
: interposedSynchronizations.size());
for (int i = length - 1; i >= 0; i--) {
Synchronization sync
= (Synchronization) interposedSynchronizations.get(i);
try {
if (log.isLoggable(Level.FINEST))
log.finest(this + " afterCompletion " + sync);
sync.afterCompletion(status);
} catch (Throwable e) {
log.log(Level.FINE, e.toString(), e);
}
}
length = synchronizations == null ? 0 : synchronizations.size();
// for (int i = length - 1; i >= 0; i--) {
for (int i = 0; i < length; i++) {
Synchronization sync = (Synchronization) synchronizations.get(i);
try {
if (log.isLoggable(Level.FINEST))
log.finest(this + " afterCompletion " + sync);
sync.afterCompletion(status);
} catch (Throwable e) {
log.log(Level.FINE, e.toString(), e);
}
}