mcgilman commented on code in PR #10652:
URL: https://github.com/apache/nifi/pull/10652#discussion_r2624628436
##########
nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/StandardNiFiConnectorWebContext.java:
##########
@@ -28,13 +28,13 @@ public class StandardNiFiConnectorWebContext implements
NiFiConnectorWebContext
private ConnectorDAO connectorDAO;
@Override
- @SuppressWarnings("unchecked")
- public <T> T getConnector(final String connectorId) throws
IllegalArgumentException {
+ @SuppressWarnings({ "unchecked"})
+ public <T> ConnectorWebContext<T> getConnectorWebContext(String
connectorId) throws IllegalArgumentException {
Review Comment:
```suggestion
public <T> ConnectorWebContext<T> getConnectorWebContext(final String
connectorId) throws IllegalArgumentException {
```
Method parameters should be marked `final`.
--
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]