Buggy code:
@ SuppressWarnings ( "unchecked" ) public class OSchemaShared extends ODocumentWrapperNoClass implements OCloseable , OSchema { public static final int CURRENT_VERSION_NUMBER = 4 ; public static final int VERSION_NUMBER_V4 = 4 ; public static final int VERSION_NUMBER_V5 = 5 ; private static final long serialVersionUID = 1L ; private final boolean clustersCanNotBeSharedAmongClasses ; private final OReadersWriterSpinLock rwSpinLock = new OReadersWriterSpinLock ( ) ; private final Map < String , OClass > classes = new HashMap < String , OClass > ( ) ; private final Map < Integer , OClass > clustersToClasses = new HashMap < Integer , OClass > ( ) ; private final OClusterSelectionFactory clusterSelectionFactory = new OClusterSelectionFactory ( ) ; private final ThreadLocal < OModifiableInteger > modificationCounter = new ThreadLocal < OModifiableInteger > ( ) { @ Override protected OModifiableInteger initialValue ( ) { } } ; private final List < OGlobalProperty > properties = new ArrayList < OGlobalProperty > ( ) ; private final Map < String , OGlobalProperty > propertiesByNameType = new HashMap < String , OGlobalProperty > ( ) ; private volatile int version = 0 ; private volatile boolean fullCheckpointOnChange = false ; private static final class ClusterIdsAreEmptyException extends Exception { } public OSchemaShared ( boolean clustersCanNotBeSharedAmongClasses ) { } public static Character checkNameIfValid ( String iName ) { if ( iName == null ) throw new IllegalArgumentException ( "Name<seq2seq4repair_space>is<seq2seq4repair_space>null" ) ; iName = iName . trim ( ) ; final int nameSize = iName . length ( ) ; if ( nameSize == 0 ) throw new IllegalArgumentException ( "Name<seq2seq4repair_space>is<seq2seq4repair_space>empty" ) ; for ( int i = 0 ; i < nameSize ; ++ i ) { final char c = iName . charAt ( i ) ; <START_BUG> if ( ( ( ( c == ':' ) || ( c == ',' ) ) || ( c == '<seq2seq4repair_space>' ) ) || ( c == '%' ) ) <END_BUG> return c ; } return null ; } public boolean isFullCheckpointOnChange ( ) { } public void setFullCheckpointOnChange ( boolean fullCheckpointOnChange ) { } @ Override public OImmutableSchema makeSnapshot ( ) { } public boolean isClustersCanNotBeSharedAmongClasses ( ) { } public OClusterSelectionFactory getClusterSelectionFactory ( ) { } public int countClasses ( ) { } public OClass createClass ( final Class < ? > clazz ) { } public OClass createClass ( final Class < ? > clazz , final int iDefaultClusterId ) { } public OClass createClass ( final String className ) { } public OClass createClass ( final String iClassName , final OClass iSuperClass ) { } public OClass createClass ( final String className , final int iDefaultClusterId ) { } public OClass createClass ( final String className , final OClass iSuperClass , final int iDefaultClusterId ) { } public OClass getOrCreateClass ( final String iClassName ) { } public OClass getOrCreateClass ( final String iClassName , final OClass superClass ) { } @ Override public OClass createAbstractClass ( final Class < ? > iClass ) { } @ Override public OClass createAbstractClass ( final String className ) { } @ Override public OClass createAbstractClass ( final String className , final OClass superClass ) { } public OClass createClass ( final String className , final OClass superClass , int [ ] clusterIds ) { } public void checkEmbedded ( OStorage storage ) { } void addClusterForClass ( final int clusterId , final OClass cls ) { } void removeClusterForClass ( int clusterId , OClass cls ) { } void checkClusterCanBeAdded ( int clusterId , OClass cls ) { } public OClass getClassByClusterId ( int clusterId ) { } public void dropClass ( final String className ) { } @ Override public < RET extends ODocumentWrapper > RET reload ( ) { } public boolean existsClass ( final String iClassName ) { } public OClass getClass ( final Class < ? > iClass ) { } public OClass getClass ( final String iClassName ) { } public void acquireSchemaReadLock ( ) { } public void releaseSchemaReadLock ( ) { } public void acquireSchemaWriteLock ( ) { } public void releaseSchemaWriteLock ( ) { } public void releaseSchemaWriteLock ( final boolean iSave ) { } void changeClassName ( final String oldName , final String newName , OClass cls ) { } @ Override public void fromStream ( ) { } @ Override @ OBeforeSerialization public ODocument toStream ( ) { } public Collection < OClass > getClasses ( ) { } @ Override public Set < OClass > getClassesRelyOnCluster ( final String clusterName ) { } @ Override public OSchemaShared load ( ) { } public void create ( ) { } public void close ( boolean onDelete ) { } @ Deprecated public int getVersion ( ) { } public ORID getIdentity ( ) { } @ Override public < RET extends ODocumentWrapper > RET save ( ) { } @ Override public < RET extends ODocumentWrapper > RET save ( final String iClusterName ) { } public OSchemaShared setDirty ( ) { } public OGlobalProperty getGlobalPropertyById ( int id ) { } public OGlobalProperty createGlobalProperty ( String name , OType type , Integer id ) { } public List < OGlobalProperty > getGlobalProperties ( ) { } protected OGlobalProperty findOrCreateGlobalProperty ( String name , OType type ) { } private OClass doCreateClass ( final String className , final OClass superClass , final int [ ] clusterIds , int retry ) throws OSchemaShared . ClusterIdsAreEmptyException { } private boolean isDistributedCommand ( ) { } private OClass createClassInternal ( final String className , final OClass superClass , final int [ ] clusterIdsToAdd ) throws OSchemaShared . ClusterIdsAreEmptyException { } private int [ ] createClusters ( String className ) { } private void dropClassInternal ( final String className ) { } private void deleteDefaultCluster ( OClass clazz ) { } private void saveInternal ( ) { } private void addClusterClassMap ( final OClass cls ) { } private void removeClusterClassMap ( final OClass cls ) { }

Fix:
if ( ( ( ( ( c == ':' ) || ( c == ',' ) ) || ( c == '<seq2seq4repair_space>' ) ) || ( c == '%' ) ) || ( c == '@' ) )