nbauma109 commented on pull request #3677:
URL: https://github.com/apache/netbeans/pull/3677#issuecomment-1052390654
I think it's the opposite. For me, if I want
`Lookup.getDefault().lookup(DiffProvider.class)` to return non-null, a SPI
implementation has to be declared like this:
```
@ServiceProvider(service = DiffProvider.class)
public class MyDiffProvider extends BuiltInDiffProvider {
@Override
public Difference[] computeDiff(final Reader reader1, final Reader
reader2) throws IOException {
return HuntDiff.diff(getLines(reader1), getLines(reader2), true);
}
}
```
But maybe I miss a piece of the puzzle here ?
--
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