private int compareClassesAllowingNull ( ClassAnnotation lhs , ClassAnnotation rhs ) { if ( lhs == null || rhs == null ) { return compareNullElements ( lhs , rhs ) ; } String lhsClassName = classNameRewriter . rewriteClassName ( lhs . getClassName ( ) ) ; String rhsClassName = classNameRewriter . rewriteClassName ( rhs . getClassName ( ) ) ; if ( DEBUG ) { System . err . println ( "Comparing " + lhsClassName + " and " + rhsClassName ) ; } int cmp = lhsClassName . compareTo ( rhsClassName ) ; if ( DEBUG ) { System . err . println ( "\t==> " + cmp ) ; } return cmp ; }
Compare class annotations .