[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[p2-dev] help with a compile warning
I've been trying to remove all our compile warnings (we have 4 left), and one has me stumped.
1. WARNING in /src/org/eclipse/equinox/internal/p2/updatesite/artifact/UpdateSiteArtifactRepositoryFactory.java
(at line 76)
The allocated object is never used
In this case we create a URL object in a try / catch block to make sure that the URL is properly formed. We can argue if that's the best approach, but that's what we're doing. The problem is, we never actually use the Object, and this makes our headless build sad :-(. I added a:
To the method, and this fixes the problem in the IDE but not the build.
Does anybody have any ideas what we can do? Does the headless build pay attention to the annotations? Can we configure this somewhere else? Should we rework the code?
R. Ian Bull | EclipseSource Victoria | +1 250 477 7484http://eclipsesource.com