private static TypeMirror getBaseDaoTypeMirror(Entity entity) {
        if(entity != null) {
            try {
                entity.baseDaoClass();
            } catch (MirroredTypeException mte) {
                return mte.getTypeMirror();
            }
        }
        return null;
    }
private static TypeMirror getBaseDaoTypeMirror(Entity entity) {
        if(entity != null) {
            try {
                entity.baseDaoClass();
            } catch (MirroredTypeException mte) {
                return mte.getTypeMirror();
            }
        }
        return null;
    }
private static TypeMirror getBaseDaoTypeMirror ( Entity entity ) { if ( entity != null ) { try { entity . baseDaoClass ( ) ; } catch ( MirroredTypeException mte ) { return mte . getTypeMirror ( ) ; } } return null ; }
Trying to get Class<?> from an annotation raises an exception
see http://stackoverflow.com/questions/7687829/java-6-annotation-processing-getting-a-class-from-an-annotation
Trying to get Class<? > from an annotation raises an exception see http : // stackoverflow . com / questions / 7687829 / java - 6 - annotation - processing - getting - a - class - from - an - annotation