-
Notifications
You must be signed in to change notification settings - Fork 427
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
Replace explicit types with <> (The diamond operator). #420
Conversation
This removes duplicated information when instantiating variables, and increases the readability. For example: ```Java EnumMap<CallableHandles, HandleAssociation> handleMap = new EnumMap<CallableHandles, HandleAssociation>(CallableHandles.class); ``` becomes ```Java EnumMap<CallableHandles, HandleAssociation> handleMap = new EnumMap<>(CallableHandles.class); ``` and ```Java private static final EnumMap<SSType.Category, EnumSet<JDBCType.Category>> conversionMap = new EnumMap<SSType.Category, EnumSet<JDBCType.Category>>(SSType.Category.class); ``` becomes ```Java private static final EnumMap<SSType.Category, EnumSet<JDBCType.Category>> conversionMap = new EnumMap<>(SSType.Category.class); ```
ee870bb
to
1b0224c
Compare
Codecov Report
@@ Coverage Diff @@
## dev #420 +/- ##
============================================
+ Coverage 45.92% 46.01% +0.09%
- Complexity 2198 2202 +4
============================================
Files 108 108
Lines 25210 25210
Branches 4164 4164
============================================
+ Hits 11577 11601 +24
+ Misses 11711 11681 -30
- Partials 1922 1928 +6
Continue to review full report at Codecov.
|
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.
I don't see any issues with these changes. Thank you @JamieMagee for improving code readability and removing explicit types.
@cheenamalhotra Thanks for the review. Is it possible to merge this? |
Testing was good. Merging in. |
This removes duplicated information when instantiating variables, and increases the readability. For example:
becomes
and
becomes