Skip to content

Commit

Permalink
[NETBEANS-3459] Fixed compiler warnings concerning rawtypes TargetPan…
Browse files Browse the repository at this point in the history
…elProvider
  • Loading branch information
mklaehn committed Dec 4, 2019
1 parent 780396a commit 2c2f309
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,11 @@ TargetPanelProvider<T> getProvider(){
}

private void loadProvider( ) {
Collection<? extends TargetPanelProvider> providers =
Lookup.getDefault().lookupAll( TargetPanelProvider.class );
for (TargetPanelProvider targetPanelProvider : providers) {
if ( targetPanelProvider.isApplicable( myId)){
myProvider = (TargetPanelProvider<T>)targetPanelProvider;
Collection<? extends TargetPanelProvider<T>> providers
= (Collection<? extends TargetPanelProvider<T>>) Lookup.getDefault().lookupAll(TargetPanelProvider.class);
for (TargetPanelProvider<T> targetPanelProvider : providers) {
if (targetPanelProvider.isApplicable(myId)) {
myProvider = targetPanelProvider;
break;
}
}
Expand Down

0 comments on commit 2c2f309

Please sign in to comment.