You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by GitBox <gi...@apache.org> on 2017/12/05 23:16:18 UTC

[GitHub] dtrebbien commented on a change in pull request #314: Add a new fix to BoxedIdentityComparison

dtrebbien commented on a change in pull request #314: Add a new fix to BoxedIdentityComparison
URL: https://github.com/apache/incubator-netbeans/pull/314#discussion_r155104942
 
 

 ##########
 File path: spi.java.hints/src/org/netbeans/spi/java/hints/JavaFixUtilities.java
 ##########
 @@ -1394,7 +1394,18 @@ private void rewrite(Tree from, Tree to) {
         OPERATOR_PRIORITIES.put(Kind.UNSIGNED_RIGHT_SHIFT_ASSIGNMENT, 15);
         OPERATOR_PRIORITIES.put(Kind.XOR_ASSIGNMENT, 15);
     }
-    
+
+    /**
+     * Checks whether {@code tree} can be used in places where a Primary is
+     * required (for instance, as the receiver expression of a method invocation).
+     * @param tree the tree to check
+     * @return {@code true} iff {@code tree} can be used where a Primary is
+     * required.
+     */
+    public static boolean isPrimary(@NonNull Tree tree) {
 
 Review comment:
   I created PR #320 for the API change.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services