Buggy code:
public abstract class ConceptComponent < R extends Revision < R , C > , C extends ConceptComponent < R , C > > implements Comparable < ConceptComponent > , AnalogBI , AnalogGeneratorBI < R > , ComponentBI , ComponentVersionBI , IdBI { protected static final Logger logger = Logger . getLogger ( ConceptComponent . class . getName ( ) ) ; private static AtomicBoolean fixAlert = new AtomicBoolean ( false ) ; static int authorityNid = Integer . MAX_VALUE ; private static AnnotationWriter annotationWriter = new AnnotationWriter ( ) ; protected ArrayList < IdentifierVersion > additionalIdVersions ; public ConcurrentSkipListSet < RefexMember < ? , ? > > annotations ; public ConcurrentSkipListSet < RefexDynamicMember > annotationsDynamic ; public int enclosingConceptNid ; public int nid ; protected long primordialLsb ; protected long primordialMsb ; public int primordialStamp ; public RevisionSet < R , C > revisions ; public ConceptComponent ( ) { } protected ConceptComponent ( int enclosingConceptNid , TupleInput input ) throws IOException { } protected ConceptComponent ( TtkComponentChronicle < ? > eComponent , int enclosingConceptNid ) throws IOException { } public boolean isIndexed ( ) { } public void setIndexed ( ) { } public enum IDENTIFIER_PART_TYPES { LONG ( 1 ) , STRING ( 2 ) , UUID ( 3 ) ; private int partTypeId ; IDENTIFIER_PART_TYPES ( int partTypeId ) { } public static ConceptComponent . IDENTIFIER_PART_TYPES readType ( TupleInput input ) { } public void writeType ( TupleOutput output ) { } public static ConceptComponent . IDENTIFIER_PART_TYPES getType ( Class < ? > denotationClass ) { } } @ SuppressWarnings ( "rawtypes" ) @ Override public boolean addAnnotation ( RefexChronicleBI annotation ) throws IOException { } @ Override public boolean addDynamicAnnotation ( RefexDynamicChronicleBI annotation ) throws IOException { } protected abstract void addComponentNids ( Set < Integer > allNids ) { } public boolean addIdVersion ( IdentifierVersion srcId ) { } public final boolean addMutablePart ( R version ) { } public static void addNidToBuffer ( Appendable buf , int nidToConvert ) { } @ SuppressWarnings ( "unchecked" ) public final boolean addRevision ( R r ) { } public final boolean addRevisionNoRedundancyCheck ( R r ) { } public static void addTextToBuffer ( Appendable buf , int nidToConvert ) { } public boolean addUuidId ( UUID uuidId , int authorityNid , Status status , long time , int authorNid , int moduleNid , int pathNid ) { } protected String assertionString ( ) { } public void cancel ( ) { } protected void clearAnnotationVersions ( ) { } public abstract void clearVersions ( ) { } @ Override public int compareTo ( ConceptComponent o ) { } public boolean conceptComponentFieldsEqual ( ConceptComponent < R , C > another ) { } public boolean containsStamp ( int stamp ) { } public final void convertId ( List < TtkIdentifier > list ) throws IOException { } @ Override public boolean equals ( Object obj ) { } public abstract boolean fieldsEqual ( ConceptComponent < R , C > another ) { } @ Override public int hashCode ( ) { } public boolean makeAdjudicationAnalogs ( EditCoordinate ec , ViewCoordinate vc ) throws IOException { } public ConceptComponent < R , C > merge ( C another ) throws IOException { } protected void modified ( ) { } private void readAnnotationsFromBdb ( TupleInput input ) { } public final void readComponentFromBdb ( TupleInput input ) { } public abstract void readFromBdb ( TupleInput input ) { } private void readIdentifierFromBdb ( TupleInput input ) { } public final boolean readyToWrite ( ) { } public abstract boolean readyToWriteComponent ( ) { } public boolean removeRevision ( R r ) { } public final void resetUncommitted ( Status status , int authorNid , int pathNid , int moduleNid ) { } @ Override public boolean stampIsInRange ( int min , int max ) { } @ Override public String toString ( ) { StringBuffer buf = new StringBuffer ( ) ; <START_BUG> buf . append ( "nid:" ) ; <END_BUG> buf . append ( nid ) ; buf . append ( "<seq2seq4repair_space>pUuid:" ) ; buf . append ( new UUID ( primordialMsb , primordialLsb ) ) ; buf . append ( "<seq2seq4repair_space>stamp:<seq2seq4repair_space>" ) ; if ( ( primordialStamp ) == ( Integer . MIN_VALUE ) ) { buf . append ( "Integer.MIN_VALUE" ) ; } else { buf . append ( primordialStamp ) ; } if ( ( primordialStamp ) > 0 ) { try { buf . append ( "<seq2seq4repair_space>s:" ) ; buf . append ( getStatus ( ) ) ; buf . append ( "<seq2seq4repair_space>t:<seq2seq4repair_space>" ) ; buf . append ( TimeHelper . formatDate ( getTime ( ) ) ) ; buf . append ( "<seq2seq4repair_space>" ) ; buf . append ( getTime ( ) ) ; buf . append ( "<seq2seq4repair_space>a:" ) ; ConceptComponent . addNidToBuffer ( buf , getAuthorNid ( ) ) ; buf . append ( "<seq2seq4repair_space>m:" ) ; ConceptComponent . addNidToBuffer ( buf , getModuleNid ( ) ) ; buf . append ( "<seq2seq4repair_space>p:" ) ; ConceptComponent . addNidToBuffer ( buf , getPathNid ( ) ) ; } catch ( Throwable e ) { buf . append ( "<seq2seq4repair_space>!!!<seq2seq4repair_space>Invalid<seq2seq4repair_space>stamp.<seq2seq4repair_space>Cannot<seq2seq4repair_space>compute<seq2seq4repair_space>status,<seq2seq4repair_space>time,<seq2seq4repair_space>author,<seq2seq4repair_space>module,<seq2seq4repair_space>path.<seq2seq4repair_space>!!!<seq2seq4repair_space>" ) ; buf . append ( e . getLocalizedMessage ( ) ) ; } } else { buf . append ( "<seq2seq4repair_space>!!!<seq2seq4repair_space>Invalid<seq2seq4repair_space>stamp.<seq2seq4repair_space>Cannot<seq2seq4repair_space>compute<seq2seq4repair_space>status,<seq2seq4repair_space>time,<seq2seq4repair_space>author,<seq2seq4repair_space>module,<seq2seq4repair_space>path.<seq2seq4repair_space>!!!<seq2seq4repair_space>" ) ; } buf . append ( "<seq2seq4repair_space>extraVersions:<seq2seq4repair_space>" ) ; buf . append ( revisions ) ; buf . append ( "<seq2seq4repair_space>xtraIds:" ) ; buf . append ( additionalIdVersions ) ; buf . append ( "<seq2seq4repair_space>annotations:" ) ; buf . append ( annotations ) ; buf . append ( "<seq2seq4repair_space>annotations<seq2seq4repair_space>Dynamic:" ) ; buf . append ( annotationsDynamic ) ; buf . append ( "};" ) ; return buf . toString ( ) ; } @ Override public abstract String toUserString ( ) { } @ Override public String toUserString ( TerminologySnapshotDI snapshot ) throws IOException , ContradictionException { }

Fix:
buf . append ( "{nid:" ) ;