-
Notifications
You must be signed in to change notification settings - Fork 915
Cleanup Map raw type warnings.. #6112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
enterprise/glassfish.eecommon/src/org/netbeans/modules/glassfish/eecommon/api/DomainEditor.java
Outdated
Show resolved
Hide resolved
enterprise/glassfish.eecommon/src/org/netbeans/modules/glassfish/eecommon/api/DomainEditor.java
Outdated
Show resolved
Hide resolved
enterprise/glassfish.eecommon/src/org/netbeans/modules/glassfish/eecommon/api/DomainEditor.java
Outdated
Show resolved
Hide resolved
...ise/payara.micro/src/org/netbeans/modules/fish/payara/micro/project/DeployOnSaveManager.java
Outdated
Show resolved
Hide resolved
8b62fa5 to
2135e4c
Compare
Cleanup May raw type warnings that look like this: [repeat] /home/bwalker/src/netbeans/ide/team.commons/src/org/netbeans/modules/bugtracking/commons/AttachmentsPanel.java:353: warning: [rawtypes] found raw type: Map [repeat] Map attributes = cmp.getFont().getAttributes(); [repeat] ^ [repeat] missing type arguments for generic class Map<K,V> [repeat] where K,V are type-variables: [repeat] K extends Object declared in interface Map [repeat] V extends Object declared in interface Map Also, some minor code cleanup.
2135e4c to
7424845
Compare
|
Need to resolve this old PR.. So I rebased against the latest, resolved the comments, and it's now ready. |
| /** | ||
| * @return Map{@code <String, String>} containing vendor specific properties. | ||
| */ | ||
| public abstract Map getUnresolvedVendorSpecificProperties(); | ||
| public abstract Map<String, String> getUnresolvedVendorSpecificProperties(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the implementations should be also updated, otherwise it becomes an unchecked conversion warning there
| private Map dtdMap; | ||
| private Map<String, String> dtdMap; | ||
| private ResourceElem topRE; | ||
| private StringBuffer pcdata = new StringBuffer(); | ||
| private int weight; | ||
| private String uri; | ||
|
|
||
| Handler(Map dtdMap, ResourceElem rootElem, boolean validate) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matthiasblaesing Handler is package private and I don't see the constructor in the sig file. I suppose this means package private inner classes aren't exported?
constructor could be changed to:
Handler(Map<String, String> dtdMap, ResourceElem rootElem, boolean validate) {the now redundant cast in L1277 should be now also removed
String publicURL = (String) dtdMap.get(pid);
->
String publicURL = dtdMap.get(pid);
Cleanup May raw type warnings that look like this:
[repeat] /home/bwalker/src/netbeans/ide/team.commons/src/org/netbeans/modules/bugtracking/commons/AttachmentsPanel.java:353: warning: [rawtypes] found raw type: Map
[repeat] Map attributes = cmp.getFont().getAttributes();
[repeat] ^
[repeat] missing type arguments for generic class Map<K,V>
[repeat] where K,V are type-variables:
[repeat] K extends Object declared in interface Map
[repeat] V extends Object declared in interface Map
Also, some minor code cleanup.
^Add meaningful description above
By opening a pull request you confirm that, unless explicitly stated otherwise, the changes -
Please make sure (eg.
git log) that all commits have a valid name and email address for you in the Author field.If you're a first time contributor, see the Contributing guidelines for more information.
If you're a committer, please label the PR before pressing "Create pull request" so that the right test jobs can run.