src/main/java/org/nustaq/serialization/FSTObjectOutput.java
protected FSTClazzInfo.FSTFieldInfo getCachedFI( Class... possibles ) {
        if ( refs == null ) {
            refs = refsLocal.get();
        }
        if ( curDepth >= refs.length ) {
            return new FSTClazzInfo.FSTFieldInfo(possibles, null, true);
        } else {
            FSTClazzInfo.FSTFieldInfo inf = refs[curDepth];
            if ( inf == null ) {
                inf = new FSTClazzInfo.FSTFieldInfo(possibles, null, true);
                refs[curDepth] = inf;
                return inf;
            }
            inf.setPossibleClasses(possibles);
            return inf;
        }
    }
protected FSTClazzInfo.FSTFieldInfo getCachedFI( Class... possibles ) {
        if ( refs == null ) {
            refs = refsLocal.get();
        }
        if ( curDepth >= refs.length ) {
            return new FSTClazzInfo.FSTFieldInfo(possibles, null, true);
        } else {
            FSTClazzInfo.FSTFieldInfo inf = refs[curDepth];
            if ( inf == null ) {
                inf = new FSTClazzInfo.FSTFieldInfo(possibles, null, true);
                refs[curDepth] = inf;
                return inf;
            }
            inf.setPossibleClasses(possibles);
            return inf;
        }
    }
protected FSTClazzInfo . FSTFieldInfo getCachedFI ( Class ... possibles ) { if ( refs == null ) { refs = refsLocal . get ( ) ; } if ( curDepth >= refs . length ) { return new FSTClazzInfo . FSTFieldInfo ( possibles , null , true ) ; } else { FSTClazzInfo . FSTFieldInfo inf = refs [ curDepth ] ; if ( inf == null ) { inf = new FSTClazzInfo . FSTFieldInfo ( possibles , null , true ) ; refs [ curDepth ] = inf ; return inf ; } inf . setPossibleClasses ( possibles ) ; return inf ; } }
avoid creation of dummy ref
avoid creation of dummy ref