matthiasblaesing commented on code in PR #4602:
URL: https://github.com/apache/netbeans/pull/4602#discussion_r986038559
##########
cpplite/cpplite.project/src/org/netbeans/modules/cpplite/project/ui/wizard/CPPLiteProjectWizardIterator.java:
##########
@@ -72,7 +72,7 @@ public class CPPLiteProjectWizardIterator implements
WizardDescriptor.Instantiat
private int idx;
@Override
- public Set instantiate() throws IOException {
+ public Set<FileObject> instantiate() throws IOException {
Review Comment:
see comment for apisupport.ant
##########
cpplite/cpplite.debugger/src/org/netbeans/modules/cpplite/debugger/CPPLiteActionsProvider.java:
##########
@@ -69,7 +69,7 @@ public CPPLiteActionsProvider(ContextProvider
contextProvider) {
}
@Override
- public Set getActions () {
+ public Set<Object> getActions () {
Review Comment:
I strongly suggest not to do this. This overrides `getActions` from
`org.netbeans.spi.debugger.ActionsProvider`, which is not generified. Once it
is, this might break. I doubt that `Object` is a valid generic for a method
that should return Actions.
##########
apisupport/apisupport.ant/src/org/netbeans/modules/apisupport/project/ui/wizard/NewNbModuleWizardIterator.java:
##########
@@ -161,7 +161,7 @@ public FileObject getCreateProjectFolder() {
return createdProjectFolder;
}
- public Set instantiate() throws IOException {
+ public Set<FileObject> instantiate() throws IOException {
Review Comment:
This is an override from an ungenerified superclass. This might break when
generics are added to the interface.
##########
enterprise/cloud.amazon/src/org/netbeans/modules/cloud/amazon/serverplugin/AmazonJ2eePlatformImpl2.java:
##########
@@ -144,7 +144,7 @@ public boolean isToolSupported(String toolName) {
}
@Override
- public Set getSupportedJavaPlatformVersions() {
+ public Set<String> getSupportedJavaPlatformVersions() {
Review Comment:
The method signature of the superclass hints this is correct, yet it is not
generic by itself.
##########
cpplite/cpplite.debugger/src/org/netbeans/modules/cpplite/debugger/breakpoints/CPPLiteBreakpointActionProvider.java:
##########
@@ -101,7 +101,7 @@ public void doAction (Object action) {
* @return set of actions supported by this ActionsProvider
*/
@Override
- public Set getActions () {
+ public Set<Object> getActions () {
Review Comment:
Same comment as for `CPPLiteActionsProvider` applies
--
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