-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: master
Are you sure you want to change the base?
Conversation
@iltoningui The idea looks cool but the tests fail for this PR. Please fix so that all tests can pass. |
There was a problem hiding this 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 { |
There was a problem hiding this comment.
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]; |
There was a problem hiding this comment.
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...?
No description provided.