protected boolean overrideHashcode(MethodBodyCreator creator) {

        Method hashCode = null;
        ClassMetadataSource data = reflectionMetadataSource.getClassMetadata(Object.class);
        try {
            hashCode = data.getMethod("hashCode", Integer.TYPE);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        return overrideMethod(hashCode, MethodIdentifier.getIdentifierForMethod(hashCode), creator);
    }
protected boolean overrideHashcode ( MethodBodyCreator creator ) { Method hashCode = null ; ClassMetadataSource data = reflectionMetadataSource . getClassMetadata ( Object . class ) ; try { hashCode = data . getMethod ( "hashCode" , Integer . TYPE ) ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } return overrideMethod ( hashCode , MethodIdentifier . getIdentifierForMethod ( hashCode ) , creator ) ; }
Override the hashCode method using the given {@link MethodBodyCreator}.

@param creator the method body creator to use
@return true if the method was not already overridden