Skip to content

Ii updates readme and tests - #8

Open
iltoningui wants to merge 2 commits into
masterfrom
ii-updates-readme-and-tests
Open

Ii updates readme and tests#8
iltoningui wants to merge 2 commits into
masterfrom
ii-updates-readme-and-tests

Conversation

@iltoningui

Copy link
Copy Markdown

No description provided.

@AlexJuca

Copy link
Copy Markdown
Contributor

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

@smaziano smaziano left a comment

Copy link
Copy Markdown
Contributor

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 ?

return null;
}

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

Copy link
Copy Markdown
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
Copy Markdown
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