users@jersey.java.net

Re: Guice integration in 0.6

From: Richard Wallace <rwallace_at_thewallacepack.net>
Date: Mon, 03 Mar 2008 09:17:16 -0800

Paul Sandoz wrote:
> Richard Wallace wrote:
>>
>> The most common scenario is something like below:
>>
>> @Path("/items/{item-name}")
>> public class ItemResource {
>>
>> private final ItemRepository repository;
>>
>> @Inject
>> public ItemResource(ItemRepository repository) {
>> this.repository = repository;
>> }
>>
>> ...
>> }
>>
>> So when Guice gets a request to create an instance of ItemResource it
>> will find the constructor annotated with the @Inject annotation and
>> use that passing it the required dependencies.
>
> I see, that was very helpful. So Guice is in control.
>
>
>> In a case like the above, it would be nice to be able to add the
>> UriInfo object and probably the item-name parameter since that is
>> going to be something needed by all the methods. Up until now I've
>> simply been having that stuff passed to the methods as parameters
>> which is ok, but doesn't seem quite as nice.
>>
>> The way I would go about binding those parameters in Guice is along
>> the lines of something like this:
>>
>> public class JerseyModule extends AbstractModule {
>>
>> public void configure() {
>>
>> bind(UriInfo.class).annotatedWith(Context.class).toProvider(new
>> Provider() {
>> // lookup thread local context or the thread local UriInfo
>> and return it
>> });
>> }
>> }
>>
>> That's just for the UriInfo type. I'd also need to create bindings
>> for the other possible values as well. Since the
>> ThreadLocalHttpContext is something internal to the Jersey
>> implementation it seems it would be better if I could have some
>> better way of looking these things up, but I'd settle for getting
>> that much at this point.
>>
>
> Can the JerseyModule have access to the WebApplication? if so i can
> add a method WebApplication.getThreadLocalHttpContext() so you can
> proceed while we can try and take more time to solve this a better. OK?
>
I don't think the JerseyModule can have access to the WebApplication
because it seems we run into a chicken-and-egg, circular dependency
thing... I need to create the injector before Jersey starts up but I
need to have Jersey start up before I can create the injector.
Alternatively, in looking at the ServletContainer class the
WebApplication create() method is protected so I could override that
have the Guice injector responsible for instantiating a WebApplication
object. I like that because there are all sorts of ways I can do things
at that point, like having an interceptor for handleRequest() or
whatever else I might need down the road. The other thing that allows
me to do is to have the WebApplication injected into the Providers that
will resolve the Jersey parameters. So I'll have easy access to the
getThreadLocalHttpContext() method or whatever other API you might come
up with for exposing these values.

>
> AFAICT there does not seem a way in Guice to merge constructor
> parameters e.g. "create an instance of this class and oh by the way
> here of the parameters instances that i know about".
>
> Jersey injects 'singleton' and 'per-request' instance data for
> constructor parameters. For each parameter Jersey creates an
> 'extractor' instances by analyzing the parameters using Java
> reflection (it would be nice to cache such 'extractor' classes rather
> than having to do this work every time a request is made). It seems
> that this is the key piece of infrastructure that would be useful to
> expose e.g. for this parameter type get me the extractor instance.
>
> This is the interface:
>
> public interface ParameterExtractor {
> Object extract(HttpRequestContext request);
> }
>
> You can see that the:
>
> com.sun.ws.rest.impl.resource.PerRequestProvider
>
> gets an array ParameterExtractor instances. And then when an instance
> is required loops through the extractors calling extract with the
> HttpRequestContext (now a real performance boost would be to
> dynamically create byte code to do the extraction, but that is for
> another day...).
>

Ah ok. Now I see how Jersey is determining what to inject. So,
actually, if I do create an interceptor for the
WebApplication.handleRequest() method I can set my own ThreadLocal with
the request and response and then for my Guice Providers I can use the
appropriate extractors to get the values out of the request, just as
Jersey does internally. I'll have to play with that a bit but I think
that should work beautifully.

>
>>>> I've noticed in going through the code that there are many other
>>>> places where raw types are used in Jersey instead of generified types.
>>>
>>> Could you point to other areas?
>>>
>>
>> Well, there are quite a few of them, so I can't list them all out.
>> ;) Eclipse lists 255 over the entire project, with 39 in api, 198 in
>> impl and 18 in spi. The ones that would probably most effect people
>> like me are the ones in spi, but the ones in api are arguably just as
>> important.
>>
>
> Right, i would like to tidy up the spi/api.
>
> Is it possible extract what Eclipse lists out as a text file?
> (NetBeans is lacking this feature, or i am not aware of such a feature).
>
> Paul.
>

What's really weird is that I tried modifying the project.properties to
tell it to show the warnings, but it already has -Xlint:unchecked set
for javac.compilerargs but it still isn't showing the warnings. If I
change it to just -Xlint it shows deprecations and unused variables, but
not the raw type warnings like it should. Really weird. Anyways,
attached is the list of warnings Eclipse gives me. They're not all type
warnings, but the majority are.


Severity and Description Path Resource Location Creation Time Id
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/client Client.java line 247 1204564489194 56924
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/client/config ClientConfig.java line 44 1204564489153 56919
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/client/config DefaultClientConfig.java line 35 1204564489151 56916
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/client/config DefaultClientConfig.java line 35 1204564489152 56917
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/client/config DefaultClientConfig.java line 41 1204564489152 56918
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/core ClasspathResourceConfig.java line 112 1204564489137 56911
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/core ClasspathResourceConfig.java line 119 1204564489137 56912
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/core DefaultResourceConfig.java line 41 1204564489133 56901
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/core DefaultResourceConfig.java line 41 1204564489133 56902
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/core DefaultResourceConfig.java line 43 1204564489133 56903
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/core DefaultResourceConfig.java line 43 1204564489133 56904
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/core DefaultResourceConfig.java line 52 1204564489133 56905
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/core DefaultResourceConfig.java line 58 1204564489133 56906
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/core DefaultResourceConfig.java line 59 1204564489133 56907
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/core DefaultResourceConfig.java line 65 1204564489133 56908
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/core DefaultResourceConfig.java line 76 1204564489133 56909
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/core DefaultResourceConfig.java line 80 1204564489133 56910
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/core PackagesResourceConfig.java line 98 1204564489127 56899
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/core PackagesResourceConfig.java line 105 1204564489128 56900
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/core ResourceConfig.java line 116 1204564489122 56897
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/core ResourceConfig.java line 129 1204564489122 56898
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/wadl WadlGeneratorTask.java line 142 1204564489062 56876
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/wadl WadlGeneratorTask.java line 163 1204564489062 56877
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/wadl WadlGeneratorTask.java line 164 1204564489063 56879
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ComponentProviderCache.java line 45 1204564489865 57166
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ComponentProviderCache.java line 47 1204564489865 57167
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ComponentProviderCache.java line 50 1204564489865 57168
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ComponentProviderCache.java line 53 1204564489865 57169
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ComponentProviderCache.java line 56 1204564489866 57170
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ComponentProviderCache.java line 57 1204564489866 57171
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ComponentProviderCache.java line 57 1204564489866 57172
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ComponentProviderCache.java line 58 1204564489866 57173
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ComponentProviderCache.java line 67 1204564489867 57174
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ComponentProviderCache.java line 67 1204564489867 57175
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ComponentProviderCache.java line 68 1204564489867 57176
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ComponentProviderCache.java line 74 1204564489867 57177
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ContextResolverFactory.java line 86 1204564489861 57161
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ContextResolverFactory.java line 135 1204564489861 57163
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application MessageBodyFactory.java line 67 1204564489856 57146
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application MessageBodyFactory.java line 67 1204564489856 57147
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application MessageBodyFactory.java line 73 1204564489856 57148
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application MessageBodyFactory.java line 77 1204564489856 57149
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application MessageBodyFactory.java line 81 1204564489856 57150
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application WebApplicationContext.java line 80 1204564489847 57142
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application WebApplicationContext.java line 85 1204564489847 57143
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application WebApplicationImpl.java line 97 1204564489839 57126
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application WebApplicationImpl.java line 98 1204564489839 57127
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application WebApplicationImpl.java line 144 1204564489840 57129
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application WebApplicationImpl.java line 197 1204564489840 57130
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application WebApplicationImpl.java line 209 1204564489840 57131
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application WebApplicationImpl.java line 389 1204564489840 57134
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application WebApplicationImpl.java line 401 1204564489840 57135
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/container/config AnnotatedClassScanner.java line 59 1204564489758 57107
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/container/config AnnotatedClassScanner.java line 72 1204564489758 57108
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/container/config AnnotatedClassScanner.java line 75 1204564489758 57109
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/container/config AnnotatedClassScanner.java line 85 1204564489758 57110
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/container/config AnnotatedClassScanner.java line 86 1204564489758 57111
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/container/config AnnotatedClassScanner.java line 102 1204564489758 57112
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/container/config AnnotatedClassScanner.java line 103 1204564489758 57113
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/container/config AnnotatedClassScanner.java line 138 1204564489758 57114
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/container/config AnnotatedClassScanner.java line 149 1204564489758 57115
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/container/config AnnotatedClassScanner.java line 149 1204564489758 57116
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/container/config AnnotatedClassScanner.java line 150 1204564489758 57117
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/container/config AnnotatedClassScanner.java line 150 1204564489758 57118
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/container/config AnnotatedClassScanner.java line 151 1204564489758 57119
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/container/config AnnotatedClassScanner.java line 168 1204564489758 57121
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/container/config AnnotatedClassScanner.java line 170 1204564489758 57122
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/container/config AnnotatedClassScanner.java line 272 1204564489759 57123
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/container/servlet Include.java line 103 1204564489703 57092
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/json JSONJAXBContext.java line 61 1204564489643 57080
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/json JSONJAXBContext.java line 65 1204564489643 57081
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ErrorHelper.java line 39 1204564489550 57046
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ErrorHelper.java line 43 1204564489550 57047
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ErrorHelper.java line 48 1204564489550 57048
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ErrorHelper.java line 53 1204564489550 57049
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ErrorHelper.java line 59 1204564489550 57050
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ErrorHelper.java line 65 1204564489550 57051
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ReflectionHelper.java line 86 1204564489538 57024
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ReflectionHelper.java line 95 1204564489538 57025
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ReflectionHelper.java line 100 1204564489538 57026
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ReflectionHelper.java line 100 1204564489538 57027
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ReflectionHelper.java line 150 1204564489538 57028
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ReflectionHelper.java line 150 1204564489538 57029
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ReflectionHelper.java line 150 1204564489538 57030
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ReflectionHelper.java line 154 1204564489538 57033
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ReflectionHelper.java line 154 1204564489538 57034
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ReflectionHelper.java line 154 1204564489539 57035
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ReflectionHelper.java line 159 1204564489539 57038
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ReflectionHelper.java line 176 1204564489539 57042
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ReflectionHelper.java line 180 1204564489541 57043
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model/method/dispatch EntityParamDispatchProvider.java line 49 1204564489509 57016
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model/method/dispatch EntityParamDispatchProvider.java line 51 1204564489509 57017
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model/parameter MultivaluedDefaultListParameterProcessor.java line 50 1204564489465 57008
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model/parameter PrimitiveMapper.java line 34 1204564489437 56993
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model/parameter PrimitiveMapper.java line 34 1204564489437 56994
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model/parameter PrimitiveMapper.java line 35 1204564489437 56995
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model/parameter PrimitiveMapper.java line 35 1204564489437 56996
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model/parameter PrimitiveMapper.java line 36 1204564489437 56997
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model/parameter PrimitiveMapper.java line 37 1204564489437 56998
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/modelapi/annotation IntrospectionModeller.java line 226 1204564489421 56981
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/modelapi/annotation IntrospectionModeller.java line 251 1204564489421 56982
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/modelapi/annotation IntrospectionModeller.java line 252 1204564489421 56983
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/modelapi/annotation IntrospectionModeller.java line 252 1204564489421 56984
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/modelapi/annotation IntrospectionModeller.java line 305 1204564489421 56985
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/modelapi/annotation IntrospectionModeller.java line 351 1204564489421 56986
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/modelapi/annotation MethodList.java line 40 1204564489408 56976
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/provider/entity AbstractJAXBElementProvider.java line 39 1204564489390 56966
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/provider/entity AbstractJAXBElementProvider.java line 40 1204564489390 56967
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/provider/entity AbstractJAXBElementProvider.java line 48 1204564489390 56968
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/provider/entity AtomEntryProvider.java line 52 1204564489385 56965
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/provider/entity AtomFeedProvider.java line 48 1204564489380 56964
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/provider/entity ByteArrayProvider.java line 38 1204564489375 56963
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/provider/entity DataSourceProvider.java line 38 1204564489372 56962
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/provider/entity FileProvider.java line 42 1204564489370 56961
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/provider/entity FormURLEncodedProvider.java line 40 1204564489368 56960
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/provider/entity InputStreamProvider.java line 37 1204564489365 56959
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/provider/entity MimeMultipartProvider.java line 40 1204564489355 56955
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/provider/entity StringProvider.java line 37 1204564489353 56954
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/uri UriBuilderImpl.java line 155 1204564489317 56943
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/uri UriBuilderImpl.java line 163 1204564489317 56944
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/uri/rules ResourceClassRule.java line 37 1204564489289 56936
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/uri/rules ResourceClassRule.java line 39 1204564489289 56937
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/uri/rules SubLocatorRule.java line 64 1204564489278 56934
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/wadl WadlGenerator.java line 167 1204564489219 56930
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/spi/com/sun/ws/rest/spi/container/servlet ServletContainer.java line 164 1204564489955 57193
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/spi/com/sun/ws/rest/spi/service ServiceFinder.java line 380 1204564489930 57187
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/spi/com/sun/ws/rest/spi/service ServiceFinder.java line 388 1204564489930 57188
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/spi/com/sun/ws/rest/spi/service ServiceFinder.java line 393 1204564489930 57189
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/spi/com/sun/ws/rest/spi/service ServiceFinder.java line 403 1204564489930 57190
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/spi/com/sun/ws/rest/spi/service ServiceFinder.java line 449 1204564489930 57192
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/spi/com/sun/ws/rest/spi/uri/rules UriRuleContext.java line 47 1204564489914 57184
Class is a raw type. References to generic type Class<T> should be parameterized jersey/src/spi/com/sun/ws/rest/spi/uri/rules UriRuleContext.java line 55 1204564489914 57185
Constructor is a raw type. References to generic type Constructor<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/model AbstractResourceConstructor.java line 31 1204564489115 56894
Constructor is a raw type. References to generic type Constructor<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/model AbstractResourceConstructor.java line 37 1204564489115 56895
Constructor is a raw type. References to generic type Constructor<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/model AbstractResourceConstructor.java line 46 1204564489115 56896
Constructor is a raw type. References to generic type Constructor<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model/parameter MultivaluedDefaultListParameterProcessor.java line 65 1204564489466 57009
Constructor is a raw type. References to generic type Constructor<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model/parameter MultivaluedDefaultListParameterProcessor.java line 107 1204564489466 57010
Constructor is a raw type. References to generic type Constructor<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model/parameter MultivaluedDefaultStringConstructorExtractor.java line 39 1204564489461 57004
Constructor is a raw type. References to generic type Constructor<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model/parameter MultivaluedDefaultStringConstructorExtractor.java line 45 1204564489461 57005
Constructor is a raw type. References to generic type Constructor<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model/parameter MultivaluedDefaultStringConstructorListExtractor.java line 41 1204564489459 57002
Constructor is a raw type. References to generic type Constructor<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model/parameter MultivaluedParameterProcessor.java line 56 1204564489448 56999
Constructor is a raw type. References to generic type Constructor<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model/parameter StringConstructorExtractor.java line 33 1204564489432 56991
Constructor is a raw type. References to generic type Constructor<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model/parameter StringConstructorExtractor.java line 35 1204564489432 56992
Constructor is a raw type. References to generic type Constructor<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/modelapi/annotation IntrospectionModeller.java line 122 1204564489421 56977
Constructor is a raw type. References to generic type Constructor<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/modelapi/annotation IntrospectionModeller.java line 124 1204564489421 56978
Constructor is a raw type. References to generic type Constructor<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/modelapi/annotation IntrospectionModeller.java line 206 1204564489421 56979
Constructor is a raw type. References to generic type Constructor<T> should be parameterized jersey/src/spi/com/sun/ws/rest/spi/container/servlet ServletContainer.java line 174 1204564489955 57194
ContextResolver is a raw type. References to generic type ContextResolver<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ContextResolverFactory.java line 46 1204564489861 57152
ContextResolver is a raw type. References to generic type ContextResolver<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ContextResolverFactory.java line 48 1204564489861 57153
ContextResolver is a raw type. References to generic type ContextResolver<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ContextResolverFactory.java line 50 1204564489861 57154
ContextResolver is a raw type. References to generic type ContextResolver<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ContextResolverFactory.java line 58 1204564489861 57155
ContextResolver is a raw type. References to generic type ContextResolver<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ContextResolverFactory.java line 63 1204564489861 57156
ContextResolver is a raw type. References to generic type ContextResolver<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ContextResolverFactory.java line 64 1204564489861 57157
ContextResolver is a raw type. References to generic type ContextResolver<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ContextResolverFactory.java line 67 1204564489861 57158
ContextResolver is a raw type. References to generic type ContextResolver<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ContextResolverFactory.java line 71 1204564489861 57159
ContextResolver is a raw type. References to generic type ContextResolver<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ContextResolverFactory.java line 81 1204564489861 57160
ContextResolver is a raw type. References to generic type ContextResolver<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ContextResolverFactory.java line 127 1204564489861 57162
ContextResolver is a raw type. References to generic type ContextResolver<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application ContextResolverFactory.java line 144 1204564489861 57164
Enumeration is a raw type. References to generic type Enumeration<E> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/container/grizzly GrizzlyRequestAdaptor.java line 79 1204564489745 57106
Enumeration is a raw type. References to generic type Enumeration<E> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/container/servlet ServletAdaptor.java line 74 1204564489694 57088
Enumeration is a raw type. References to generic type Enumeration<E> should be parameterized jersey/src/spi/com/sun/ws/rest/spi/container/servlet ServletContainer.java line 206 1204564489955 57196
HeaderDelegateProvider is a raw type. References to generic type HeaderDelegateProvider<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/provider RuntimeDelegateImpl.java line 45 1204564489393 56970
HeaderDelegateProvider is a raw type. References to generic type HeaderDelegateProvider<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/provider RuntimeDelegateImpl.java line 46 1204564489393 56971
Injectable is a raw type. References to generic type Injectable<T,V> should be parameterized jersey/src/api/com/sun/ws/rest/api/client Client.java line 61 1204564489193 56921
Injectable is a raw type. References to generic type Injectable<T,V> should be parameterized jersey/src/api/com/sun/ws/rest/api/client Client.java line 163 1204564489194 56922
Injectable is a raw type. References to generic type Injectable<T,V> should be parameterized jersey/src/api/com/sun/ws/rest/api/client Client.java line 211 1204564489194 56923
Injectable is a raw type. References to generic type Injectable<T,V> should be parameterized jersey/src/api/com/sun/ws/rest/api/client Client.java line 250 1204564489194 56925
Injectable is a raw type. References to generic type Injectable<T,V> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application WebApplicationImpl.java line 112 1204564489839 57128
Injectable is a raw type. References to generic type Injectable<T,V> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application WebApplicationImpl.java line 212 1204564489840 57132
Injectable is a raw type. References to generic type Injectable<T,V> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application WebApplicationImpl.java line 378 1204564489840 57133
Injectable is a raw type. References to generic type Injectable<T,V> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application WebApplicationImpl.java line 516 1204564489840 57137
Injectable is a raw type. References to generic type Injectable<T,V> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application WebApplicationImpl.java line 517 1204564489840 57138
Injectable is a raw type. References to generic type Injectable<T,V> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application WebApplicationImpl.java line 517 1204564489841 57139
Injectable is a raw type. References to generic type Injectable<T,V> should be parameterized jersey/src/spi/com/sun/ws/rest/spi/container WebApplication.java line 94 1204564489966 57197
Iterator is a raw type. References to generic type Iterator<E> should be parameterized jersey/src/impl/com/sun/ws/rest/impl ResponseImpl.java line 73 1204564489884 57181
Iterator is a raw type. References to generic type Iterator<E> should be parameterized jersey/src/impl/com/sun/ws/rest/impl ResponseImpl.java line 122 1204564489884 57182
Iterator is a raw type. References to generic type Iterator<E> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/json/reader JsonNamespaceContext.java line 42 1204564489586 57066
Iterator is a raw type. References to generic type Iterator<E> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model/method ResourceMethod.java line 153 1204564489517 57020
JAXBElement is a raw type. References to generic type JAXBElement<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/provider/entity JSONJAXBElementProvider.java line 62 1204564489361 56957
JAXBElement is a raw type. References to generic type JAXBElement<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/provider/entity JSONJAXBElementProvider.java line 62 1204564489361 56958
List is a raw type. References to generic type List<E> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model/method ResourceMethod.java line 152 1204564489517 57019
MessageBodyReader is a raw type. References to generic type MessageBodyReader<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application MessageBodyFactory.java line 52 1204564489856 57144
MessageBodyWriter is a raw type. References to generic type MessageBodyWriter<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/application MessageBodyFactory.java line 54 1204564489856 57145
Provider is a raw type. References to generic type Provider<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/container/jaxws ProviderContainerProvider.java line 36 1204564489715 57095
Provider is a raw type. References to generic type Provider<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/container/jaxws ProviderContainerProvider.java line 38 1204564489715 57096
Provider is a raw type. References to generic type Provider<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/container/jaxws ProviderContainerProvider.java line 38 1204564489715 57097
RequestBuilder is a raw type. References to generic type RequestBuilder<T> should be parameterized jersey/src/api/com/sun/ws/rest/api/client RequestBuilder.java line 35 1204564489166 56920
taskdef class edu.umd.cs.findbugs.anttask.FindBugsTask cannot be found jersey build.xml line 367 1204563774572 56869
taskdef class org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs cannot be found jersey build.xml line 25 1204563774572 56868
taskdef class org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs cannot be found jersey/nbproject build-impl.xml line 403 1204563842640 56870
The field ContextResolverFactory.LOGGER is never read locally jersey/src/impl/com/sun/ws/rest/impl/application ContextResolverFactory.java line 43 1204564489861 57151
The field HttpResponseAdaptor.request is never read locally jersey/src/impl/com/sun/ws/rest/impl/container/servlet HttpResponseAdaptor.java line 45 1204564489707 57093
The field JsonLexer.yycolumn is never read locally jersey/src/impl/com/sun/ws/rest/impl/json/reader JsonLexer.java line 224 1204564489598 57067
The field JsonLexer.zzAtBOL is never read locally jersey/src/impl/com/sun/ws/rest/impl/json/reader JsonLexer.java line 229 1204564489598 57068
The field JSONMarshaller.jaxbContext is never read locally jersey/src/impl/com/sun/ws/rest/impl/json JSONMarshaller.java line 59 1204564489639 57075
The field JSONUnmarshaller.jaxbContext is never read locally jersey/src/impl/com/sun/ws/rest/impl/json JSONUnmarshaller.java line 63 1204564489622 57069
The field ResourceClass.LOGGER is never read locally jersey/src/impl/com/sun/ws/rest/impl/model ResourceClass.java line 69 1204564489533 57023
The import com.sun.ws.rest.api.container.ContainerException is never used jersey/src/impl/com/sun/ws/rest/impl ThreadLocalHttpContext.java line 25 1204564489880 57179
The import com.sun.ws.rest.api.MediaTypes is never used jersey/src/impl/com/sun/ws/rest/impl/model ResourceClass.java line 25 1204564489533 57021
The import com.sun.ws.rest.api.model.AbstractResource is never used jersey/src/impl/com/sun/ws/rest/impl/application WebApplicationImpl.java line 38 1204564489839 57125
The import com.sun.ws.rest.api.uri.UriTemplate is never used jersey/src/impl/com/sun/ws/rest/impl/uri/rules/automata TrieNode.java line 26 1204564489262 56933
The import com.sun.ws.rest.impl.template is never used jersey/src/spi/com/sun/ws/rest/spi/template TemplateContext.java line 8 1204564489917 57186
The import com.sun.ws.rest.spi.dispatch.RequestDispatcher is never used jersey/src/impl/com/sun/ws/rest/impl/wadl WadlMethodFactory.java line 34 1204564489205 56927
The import java.text.ParseException is never used jersey/src/impl/com/sun/ws/rest/impl/provider/header CacheControlProvider.java line 26 1204564489349 56953
The import java.text.ParseException is never used jersey/src/impl/com/sun/ws/rest/impl/provider/header CookieProvider.java line 26 1204564489346 56952
The import java.util.Arrays is never used jersey/src/impl/com/sun/ws/rest/impl/uri/rules/automata TrieNodeValue.java line 12 1204564489256 56932
The import java.util.Arrays is never used jersey/src/impl/com/sun/ws/rest/impl/wadl WadlMethodFactory.java line 35 1204564489205 56928
The import java.util.HashMap is never used jersey/src/api/com/sun/ws/rest/api/container ContainerFactory.java line 34 1204564489148 56914
The import java.util.Map is never used jersey/src/api/com/sun/ws/rest/api/container ContainerFactory.java line 36 1204564489149 56915
The import javax.ws.rs.core.MediaType is never used jersey/src/impl/com/sun/ws/rest/impl/model ResourceClass.java line 62 1204564489533 57022
The import javax.ws.rs.core.Response is never used jersey/src/impl/com/sun/ws/rest/impl ThreadLocalHttpContext.java line 29 1204564489881 57180
The import javax.ws.rs.ext.RuntimeDelegate.HeaderDelegate is never used jersey/src/impl/com/sun/ws/rest/impl/provider RuntimeDelegateImpl.java line 20 1204564489393 56969
The local variable _as is never read jersey/src/impl/com/sun/ws/rest/impl/container/config AnnotatedClassScanner.java line 160 1204564489758 57120
The local variable c is never read jersey/src/impl/com/sun/ws/rest/impl/wadl WadlFactory.java line 98 1204564489222 56931
The local variable r is never read jersey/src/impl/com/sun/ws/rest/impl/application WebApplicationImpl.java line 460 1204564489840 57136
The method createValidator() from the type JAXBContext is deprecated jersey/src/impl/com/sun/ws/rest/impl/json JSONJAXBContext.java line 86 1204564489643 57083
The method generate() from the type WadlMethodFactory.WadlOptionsMethodDispatcher is never used locally jersey/src/impl/com/sun/ws/rest/impl/wadl WadlMethodFactory.java line 86 1204564489205 56929
The method hasMessageBody(MultivaluedMap<String,String>) from the type HttpMethodRule is never used locally jersey/src/impl/com/sun/ws/rest/impl/uri/rules HttpMethodRule.java line 124 1204564489296 56938
The method isValidating() from the type Unmarshaller is deprecated jersey/src/impl/com/sun/ws/rest/impl/json JSONUnmarshaller.java line 215 1204564489622 57071
The method printStack(String) from the type JsonXmlStreamWriter is never used locally jersey/src/impl/com/sun/ws/rest/impl/json/writer JsonXmlStreamWriter.java line 319 1204564489563 57052
The method redirect(UriRuleContext) from the type ViewableRule is never used locally jersey/src/impl/com/sun/ws/rest/impl/template ViewableRule.java line 98 1204564489324 56948
The method setValidating(boolean) from the type Unmarshaller is deprecated jersey/src/impl/com/sun/ws/rest/impl/json JSONUnmarshaller.java line 211 1204564489622 57070
The static field MessageContext.HTTP_RESPONSE_CODE should be accessed in a static way jersey/src/impl/com/sun/ws/rest/impl/container/jaxws MessageContextResponseAdaptor.java line 122 1204564489723 57099
The static field MessageContext.HTTP_RESPONSE_HEADERS should be accessed in a static way jersey/src/impl/com/sun/ws/rest/impl/container/jaxws MessageContextResponseAdaptor.java line 123 1204564489723 57100
The static field MessageContext.SERVLET_RESPONSE should be accessed in a static way jersey/src/impl/com/sun/ws/rest/impl/container/jaxws MessageContextResponseAdaptor.java line 58 1204564489723 57098
The type Validator is deprecated jersey/src/impl/com/sun/ws/rest/impl/json JSONJAXBContext.java line 33 1204564489643 57079
The type Validator is deprecated jersey/src/impl/com/sun/ws/rest/impl/json JSONJAXBContext.java line 85 1204564489643 57082
Type safety: The method getAnnotation(Class) belongs to the raw type Constructor. References to generic type Constructor<T> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/modelapi/annotation IntrospectionModeller.java line 210 1204564489421 56980
Type safety: The method getConstructor(Class...) belongs to the raw type Class. References to generic type Class<T> should be parameterized jersey/src/spi/com/sun/ws/rest/spi/container/servlet ServletContainer.java line 174 1204564489955 57195
Type safety: The return type Class for findClass(String) from the type WadlGeneratorTask.Loader needs unchecked conversion to conform to Class<?> from the type URLClassLoader jersey/src/api/com/sun/ws/rest/api/wadl WadlGeneratorTask.java line 163 1204564489062 56878
TypeVariable is a raw type. References to generic type TypeVariable<D> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ReflectionHelper.java line 150 1204564489538 57031
TypeVariable is a raw type. References to generic type TypeVariable<D> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ReflectionHelper.java line 151 1204564489538 57032
TypeVariable is a raw type. References to generic type TypeVariable<D> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ReflectionHelper.java line 154 1204564489539 57036
TypeVariable is a raw type. References to generic type TypeVariable<D> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ReflectionHelper.java line 155 1204564489539 57037
TypeVariable is a raw type. References to generic type TypeVariable<D> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ReflectionHelper.java line 160 1204564489539 57039
TypeVariable is a raw type. References to generic type TypeVariable<D> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ReflectionHelper.java line 162 1204564489539 57040
TypeVariable is a raw type. References to generic type TypeVariable<D> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/model ReflectionHelper.java line 162 1204564489539 57041
Unhandled warning token StatementWithEmptyBody jersey/src/spi/com/sun/ws/rest/spi/service ServiceFinder.java line 448 1204564489930 57191
XmlAdapter is a raw type. References to generic type XmlAdapter<ValueType,BoundType> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/json JSONMarshaller.java line 161 1204564489639 57076
XmlAdapter is a raw type. References to generic type XmlAdapter<ValueType,BoundType> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/json JSONMarshaller.java line 165 1204564489639 57077
XmlAdapter is a raw type. References to generic type XmlAdapter<ValueType,BoundType> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/json JSONMarshaller.java line 169 1204564489639 57078
XmlAdapter is a raw type. References to generic type XmlAdapter<ValueType,BoundType> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/json JSONUnmarshaller.java line 258 1204564489622 57072
XmlAdapter is a raw type. References to generic type XmlAdapter<ValueType,BoundType> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/json JSONUnmarshaller.java line 262 1204564489622 57073
XmlAdapter is a raw type. References to generic type XmlAdapter<ValueType,BoundType> should be parameterized jersey/src/impl/com/sun/ws/rest/impl/json JSONUnmarshaller.java line 266 1204564489622 57074