protected void addPartnerEntry(PartnerLogData logData) {
        if (tc.isEntryEnabled())
            Tr.entry(tc, "addPartnerEntry", logData);

        final int result = _partnerLogTable.size();

        _partnerLogTable.add(result, logData);

        // Let the entry know where it's been put
        // Actually, fool it into thinking it's one entry higher to invalidate 0
        logData.setIndex(result + 1);

        if (tc.isEntryEnabled())
            Tr.exit(tc, "addPartnerEntry", result + 1);
    }
protected void addPartnerEntry ( PartnerLogData logData ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "addPartnerEntry" , logData ) ; final int result = _partnerLogTable . size ( ) ; _partnerLogTable . add ( result , logData ) ; logData . setIndex ( result + 1 ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "addPartnerEntry" , result + 1 ) ; }
You'd better be surrounded by write lock/unlock calls when you call this