Buggy code:
public < RET > RET field ( final String iFieldName ) { } public < RET > RET field ( final String iFieldName , final Class < ? > iFieldType ) { } public < RET > RET field ( final String iFieldName , final OType iFieldType ) { } public ODocument field ( final String iFieldName , Object iPropertyValue ) { } public ODocument fields ( final String iFieldName , final Object iFieldValue , final Object ... iFields ) { } @ Deprecated public ODocument fields ( final Map < String , Object > iMap ) { } public ODocument fromMap ( final Map < String , Object > iMap ) { } public ODocument field ( String iFieldName , Object iPropertyValue , OType ... iFieldType ) { } public Object removeField ( final String iFieldName ) { } public ODocument merge ( final ODocument iOther , boolean iUpdateOnlyMode , boolean iMergeSingleItemsOfMultiValueFields ) { } public ODocument merge ( final Map < String , Object > iOther , final boolean iUpdateOnlyMode , boolean iMergeSingleItemsOfMultiValueFields ) { } public String [ ] getDirtyFields ( ) { } public Object getOriginalValue ( final String iFieldName ) { } public OMultiValueChangeTimeLine < Object , Object > getCollectionTimeLine ( final String iFieldName ) { } public Iterator < Map . Entry < String , Object > > iterator ( ) { } public boolean containsField ( final String iFieldName ) { } public boolean hasOwners ( ) { } @ Override public ORecordElement getOwner ( ) { } public Iterable < ORecordElement > getOwners ( ) { } @ Override public ORecordAbstract setDirty ( ) { } @ Override public void setDirtyNoChanged ( ) { } @ Override protected ORecordAbstract fill ( ORID iRid , ORecordVersion iVersion , byte [ ] iBuffer , boolean iDirty ) { } @ Override public ODocument fromStream ( final byte [ ] iRecordBuffer ) { } @ Override protected void clearSource ( ) { } private void fetchSchemaIfCan ( ) { } protected OGlobalProperty getGlobalPropertyById ( int id ) { } public OType fieldType ( final String iFieldName ) { } @ Override public ODocument unload ( ) { } @ Override public ODocument clear ( ) { } @ Override public ODocument reset ( ) { } public ODocument undo ( ) { } public boolean isLazyLoad ( ) { } public void setLazyLoad ( final boolean iLazyLoad ) { } public boolean isTrackingChanges ( ) { } public ODocument setTrackingChanges ( final boolean iTrackingChanges ) { } public boolean isOrdered ( ) { } public ODocument setOrdered ( final boolean iOrdered ) { } @ Override public boolean equals ( Object obj ) { } @ Override public int hashCode ( ) { } public int fields ( ) { } public boolean isEmpty ( ) { } @ Override public ODocument fromJSON ( final String iSource , final String iOptions ) { } @ Override public ODocument fromJSON ( final String iSource ) { } @ Override public ODocument fromJSON ( final InputStream iContentResult ) throws IOException { } @ Override public ODocument fromJSON ( final String iSource , final boolean needReload ) { } public boolean isEmbedded ( ) { } public ODocument setFieldType ( final String iFieldName , final OType iFieldType ) { } @ Override public ODocument save ( ) { } @ Override public ODocument save ( final String iClusterName ) { } public ORecordAbstract save ( final String iClusterName , final boolean forceCreate ) { } public boolean deserializeFields ( final String ... iFields ) { } @ Override public void writeExternal ( ObjectOutput stream ) throws IOException { } @ Override public void readExternal ( ObjectInput stream ) throws IOException , ClassNotFoundException { } public boolean isAllowChainedAccess ( ) { } public ODocument setAllowChainedAccess ( final boolean _allowChainedAccess ) { } public void setClassNameIfExists ( final String iClassName ) { } protected void fillClassIfNeed ( final String iClassName ) { } public OClass getSchemaClass ( ) { } protected OClass getImmutableSchemaClass ( ) { } public String getClassName ( ) { } public void setClassName ( final String className ) { } public void validate ( ) throws OValidationException { } protected void rawField ( final String iFieldName , final Object iFieldValue , final OType iFieldType ) { } protected boolean rawContainsField ( final String iFiledName ) { } protected void autoConvertValues ( ) { } @ Override protected ODocument flatCopy ( ) { } protected byte [ ] toStream ( final boolean iOnlyDelta ) { } protected byte getRecordType ( ) { } protected void addOwner ( final ORecordElement iOwner ) { } protected void removeOwner ( final ORecordElement iRecordElement ) { } protected void convertAllMultiValuesToTrackedVersions ( ) { } protected void internalReset ( ) { } protected boolean checkForFields ( final String ... iFields ) { } @ Override protected void setup ( ) { } protected String checkFieldName ( final String iFieldName ) { <START_BUG> final Character c = OSchemaShared . checkNameIfValid ( iFieldName ) ; <END_BUG> if ( c != null ) throw new IllegalArgumentException ( ( ( ( ( "Invalid<seq2seq4repair_space>field<seq2seq4repair_space>name<seq2seq4repair_space>'" + iFieldName ) + "'.<seq2seq4repair_space>Character<seq2seq4repair_space>'" ) + c ) + "'<seq2seq4repair_space>is<seq2seq4repair_space>invalid" ) ) ; return iFieldName ; } protected void setClass ( final OClass iClass ) { } private void fetchClassName ( ) { } private void convertFieldsToClass ( OClass _clazz ) { } private void saveOldFieldValue ( String iFieldName , Object oldValue ) { } private OType deriveFieldType ( String iFieldName , OType [ ] iFieldType ) { } private void addCollectionChangeListener ( final String fieldName , final Object fieldValue ) { } private void addCollectionChangeListener ( final String fieldName , final OTrackedMultiValue < Object , Object > multiValue ) { } private void removeAllCollectionChangeListeners ( ) { } private void addAllMultiValueChangeListeners ( ) { } private void removeCollectionChangeListener ( final String fieldName , Object fieldValue ) { } private void removeCollectionTimeLine ( final String fieldName ) { } }

Fix:
final Character c = OSchemaShared . checkFieldNameIfValid ( iFieldName ) ;