-
Notifications
You must be signed in to change notification settings - Fork 809
XDDFDataSourcesFactory.java replace anonymous classes with a real one for clarity #973
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
base: trunk
Are you sure you want to change the base?
Conversation
removed some inline classes ( because they are hard to debug/understand and are anonymous) and replaced these 4 anon classes with a single real class thereby shrinking code
| public final Type type; | ||
|
|
||
| public XDDFCategoryDataSourceImpl(CTAxDataSource categoryDS) { | ||
| this.categoryDS=categoryDS; |
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.
can you keep the whitespace?
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.
how ?
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.
you mean just around this = sign ?
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.
done
added whitespaces as required
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 file has been reformatted - appears to replace the spaces used for indents with tabs, leading to a 100% diff in the file
I will not review this unless the format is fixed. It is not acceptable to reformat files in PRs with code changes - it makes the PR impossible to review.
forgot a couple function
| } | ||
|
|
||
| public boolean isNumeric() { | ||
| return (type == Type.FROM_NUMBER_REFERENCE || type == Type.FROM_NUMBER_LITERAL); |
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.
code will never be merged unless it is formatted correctly - 4 space indents and no tabs
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.
done
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.
btw in the future do not let whitespaces hold you back:
https://stackoverflow.com/questions/37007300/how-to-ignore-whitespace-in-github-when-comparing
removed some inline classes ( because they are hard to read and debug) and replaced these 4 anon classes with a single real class thereby shrinking code