mbien commented on code in PR #9623:
URL: https://github.com/apache/netbeans/pull/9623#discussion_r4134590055


##########
java/spi.java.hints/src/org/netbeans/modules/java/hints/spiimpl/Utilities.java:
##########
@@ -1531,21 +1531,11 @@ public static boolean isFakeClass(Tree t) {
 
     private record OffsetSourcePositions(SourcePositions delegate, long 
offset) implements SourcePositions {
 
-        @Override
-        public long getStartPosition(CompilationUnitTree cut, Tree tree) {

Review Comment:
   as far as i see this util doesn't escape to API and the risk of us calling 
it would be low since a deprecation warning would show up for _newly written_ 
code - until it becomes a build failure given that its for-removal.
   
   Even if called, it would land in the default impl within `SourcePositions`, 
which propagates down - this should align its behavior with all other 
`SourcePositions` impls (in and outside of NB).
   
   I slightly prefer the current proposed diff which is simply removing the 
methods, since this essentially means that there will be one build failure less 
to fix in a future javac update PR.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
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

Reply via email to