vieiro commented on a change in pull request #364: [NETBEANS-252] Fix CG adding
methods to enum constant bodies
URL: https://github.com/apache/incubator-netbeans/pull/364#discussion_r161389122
##########
File path:
java.source.base/src/org/netbeans/modules/java/source/save/CasualDiff.java
##########
@@ -200,13 +210,13 @@
* on how guarded blocks (or other divisor of the source) is mapped into
the changed text and not generate diffs across
* such a boundary.
*/
- private Map<Integer, Integer> blockSequenceMap = new
LinkedHashMap<Integer, Integer>();
+ private Map<Integer, Integer> blockSequenceMap = new LinkedHashMap<>();
private Iterator<Integer> boundaries;
private int nextBlockBoundary = -1;
protected CasualDiff(Context context, DiffContext diffContext,
TreeUtilities treeUtilities, Map<Tree, ?> tree2Tag, Map<Tree, DocCommentTree>
tree2Doc, Map<?, int[]> tag2Span, Set<Tree> oldTrees) {
- diffs = new LinkedHashSet<Diff>();
+ diffs = new LinkedHashSet<>();
Review comment:
Removing <DIff> here makes it harder to understand that diff is a linked
hash set of Diff. So please keep <Diff> here.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists