Skip to content

Commit

Permalink
Merge pull request #22 from sbxcloud/annotationlib
Browse files Browse the repository at this point in the history
META crashed when no exist fixed
  • Loading branch information
lgguzman authored Apr 25, 2017
2 parents d402f59 + 86a8094 commit 363e115
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Agregamos la librería como dependencia

dependencies {
//...otras dependencias de tu proyeco aquí.....
compile 'com.github.sbxcloud:androidlib:v2.2.1'
compile 'com.github.sbxcloud:androidlib:v2.2.2'
}
Esta librería se basa en annotaciones. Para crear tu propia Clase usuario puedes hacerla así:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,9 @@ public static Object getSbxModel(JSONObject jsonObject, Class<?> clazz, int lev
variable.set(o,
SbxDataValidator.getDate(
jsonObject.optJSONObject("_META").optString("created_time")));
} catch (IllegalArgumentException | IllegalAccessException e) {
throw new SbxAuthException(e);
} catch (Exception e) {
// throw new SbxAuthException(e);
e.printStackTrace();
}

}
Expand Down Expand Up @@ -295,8 +296,9 @@ public static void getSbxModel(JSONObject jsonObject, Class<?> clazz, Object o,
variable.set(o,
SbxDataValidator.getDate(
jsonObject.optJSONObject("_META").optString("created_time")));
} catch (IllegalArgumentException | IllegalAccessException e) {
throw new SbxAuthException(e);
} catch ( Exception e) {
e.printStackTrace();
// throw new SbxAuthException(e);
}

}
Expand Down Expand Up @@ -450,8 +452,8 @@ public static void getSbxModel(JSONObject jsonObject, Class<?> clazz, Object o,
variable.set(o,
SbxDataValidator.getDate(
jsonObject.optJSONObject("_META").optString("created_time")));
} catch (IllegalArgumentException | IllegalAccessException e) {
throw new SbxAuthException(e);
} catch ( Exception e) {
// throw new SbxAuthException(e);
}

}
Expand Down Expand Up @@ -611,8 +613,9 @@ public static Object getSbxModel(JSONObject jsonObject, Class<?> clazz, int lev
variable.set(o,
SbxDataValidator.getDate(
jsonObject.optJSONObject("_META").optString("created_time")));
} catch (IllegalArgumentException | IllegalAccessException e) {
throw new SbxAuthException(e);
} catch ( Exception e) {
e.printStackTrace();
//throw new SbxAuthException(e);
}

}
Expand Down

0 comments on commit 363e115

Please sign in to comment.