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

Add more generics to Guestbook related classes (#775) #2425

Merged
merged 1 commit into from
Sep 17, 2015

Conversation

bencomp
Copy link
Contributor

@bencomp bencomp commented Jul 31, 2015

Changes include converting Query to TypedQuery<...>.

Changes include converting `Query` to `TypedQuery<...>`.
@pdurbin
Copy link
Member

pdurbin commented Jul 31, 2015

Here's where one can see the "unchecked conversion" warnings @bencomp is talking about: https://travis-ci.org/IQSS/dataverse/builds/73547846#L1736

It's a type safety thing, a good practice to fix these. See #775. Generally speaking, since we're on Java 7 I'd recommend using the diamond operator to change things like new HashSet() to new HashSet<>(). No need to put new HashSet<String>() or whatever.

@scolapasta scolapasta added this to the 4.2 milestone Aug 3, 2015
sekmiller added a commit that referenced this pull request Sep 17, 2015
Add more generics to Guestbook related classes (#775)
@sekmiller sekmiller merged commit 7e6afb6 into IQSS:4.2 Sep 17, 2015
@bencomp bencomp deleted the guestbook-gen branch March 3, 2016 17:02
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.

4 participants