Skip to content

fixed some warnings in Eclipse mostly be removing @SuppressWarnings that... #34

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

Closed
wants to merge 1 commit into from

Conversation

marschall
Copy link
Contributor

Hi

I'm new to git and I thought it's best to start with something small. This fixes several warnings in Eclipse. It's mostly places that have a @SuppressWarnings annotation but no longer need it, probably because the code was generified in Spring 3.

Cheers
Philippe

@cbeams
Copy link
Contributor

cbeams commented Feb 16, 2012

Hi Phillipe,

These changes should be fine; as mentioned in #37, please just touch up the commit according to the contributor guidelines

Cheers!

@ghost ghost assigned cbeams Feb 16, 2012
@marschall
Copy link
Contributor Author

I did sign the CLA.

@cbeams
Copy link
Contributor

cbeams commented May 16, 2012

Hi Philippe,

Still happy to commit this; could you touch up the commit comment formatting per the guidelines? Thanks.

The Spring code base causes several warnings in Eclipse. This can be
problematic because it's hard to tell which of these indicate a
potential problem in the code and which are just noise.

This patch fixes several Eclipse warnings that do not point to code
problems. Two kinds of warnings are fixed. First in a lot of cases
@SuppressWarnings("unchecked") is used although there are no unchecked
casts happening. This seems to be a leftover from when the code base
was on Java 1.4, now that the code base was moved to Java 1.5 these are
no longer necessary. Secondly there some places where the raw types of
List and Class are used where there wildcard types (List<?> and
Class<?>) would work just as well without causing any raw type
warnings.

This patch contains the following changes:

 - remove @SuppressWarnings where no longer needed

 - use wildcard types instead of raw types where possible

 - update the Apache license header of modified files
@marschall
Copy link
Contributor Author

Done, I also did a rebase against the current master.

cbeams added a commit that referenced this pull request May 17, 2012
* warnings:
  Fix compiler warnings
@cbeams
Copy link
Contributor

cbeams commented May 17, 2012

Nice! Thanks Philippe, this is committed.

@cbeams cbeams closed this May 17, 2012
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.

2 participants