Skip to content
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

Fix some raw type references #2589

Closed
wants to merge 9 commits into from

Conversation

bencomp
Copy link
Contributor

@bencomp bencomp commented Sep 24, 2015

In an effort to get the number of Java compiler warnings about unchecked references and casts (see #2574) I added diamonds to a few classes.

This is work in progress.

@@ -489,7 +489,7 @@ public String getSolrSchema() {
sb.append(" <field name=\"" + nameSearchable + "\" type=\"" + type + "\" multiValued=\"" + multivalued + "\" stored=\"true\" indexed=\"true\"/>\n");
}

List<String> listOfStaticFields = new ArrayList();
List<String> listOfStaticFields = new ArrayList<>();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bencomp you're certainly right that this is a type safety issue but the default settings from Netbeans apparently don't provide developers the typical yellow warning indicators:

screen shot 2015-09-25 at 9 35 47 am

If you could please share the Netbeans settings you are using, I'd appreciate it. You could even add it to the Google Doc linked from http://guides.dataverse.org/en/latest/developers/coding-style.html

@pdurbin
Copy link
Member

pdurbin commented Jan 13, 2016

@bencomp please see my comments about closing pull requests made against the 4.3 branch at #2860 (comment) (Let's discuss in one place, there.)

@bencomp bencomp deleted the 2574-code-style-raw-type branch March 3, 2016 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants