Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ii updates readme and tests #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

iltoningui
Copy link

No description provided.

@AlexJuca
Copy link
Contributor

@iltoningui The idea looks cool but the tests fail for this PR. Please fix so that all tests can pass.

Copy link
Contributor

@smaziano smaziano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iltoningui are fixing this any time soon ?

@@ -25,7 +26,9 @@ public String toJson(Object content) {
return null;
}

public T fromJson(String body, Class<T> clazz) throws IOException {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iltoningui even though we discussed this over the "corridor" I believe you should've explained the reason for the change.

public T fromJson(String body, Class<T> clazz) throws IOException {
public T fromJson(String body) throws IOException {
@SuppressWarnings("unchecked")
Class<T> clazz = (Class<T>) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This naming convention for the class to "clazz" never sounds right, it resonates nothing to me. What you think of something more meaningful such as "Resource" or "Entity" or other...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants