1
1
/*
2
2
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
3
*
4
- * Copyright (c) 2012-2015 Oracle and/or its affiliates. All rights reserved.
4
+ * Copyright (c) 2012-2016 Oracle and/or its affiliates. All rights reserved.
5
5
*
6
6
* The contents of this file are subject to the terms of either the GNU
7
7
* General Public License Version 2 only ("GPL") or the Common Development
58
58
import java .util .logging .Level ;
59
59
import java .util .logging .Logger ;
60
60
61
+ import javax .ws .rs .RuntimeType ;
62
+ import javax .ws .rs .core .Form ;
63
+ import javax .ws .rs .core .MediaType ;
64
+ import javax .ws .rs .core .MultivaluedMap ;
65
+ import javax .ws .rs .core .Response ;
66
+ import javax .ws .rs .core .SecurityContext ;
67
+
61
68
import javax .inject .Inject ;
62
69
import javax .inject .Provider ;
63
70
import javax .inject .Singleton ;
68
75
import javax .servlet .http .HttpServletRequest ;
69
76
import javax .servlet .http .HttpServletResponse ;
70
77
71
- import javax .ws .rs .RuntimeType ;
72
- import javax .ws .rs .core .Form ;
73
- import javax .ws .rs .core .MediaType ;
74
- import javax .ws .rs .core .MultivaluedMap ;
75
- import javax .ws .rs .core .Response ;
76
- import javax .ws .rs .core .SecurityContext ;
77
-
78
78
import org .glassfish .jersey .internal .ServiceFinderBinder ;
79
79
import org .glassfish .jersey .internal .inject .Providers ;
80
80
import org .glassfish .jersey .internal .inject .ReferencingFactory ;
@@ -128,8 +128,8 @@ public class WebComponent {
128
128
129
129
private static final Logger LOGGER = Logger .getLogger (WebComponent .class .getName ());
130
130
131
- private final Type REQUEST_TYPE = (new TypeLiteral <Ref <HttpServletRequest >>() {}).getType ();
132
- private final Type RESPONSE_TYPE = (new TypeLiteral <Ref <HttpServletResponse >>() {}).getType ();
131
+ private static final Type REQUEST_TYPE = (new TypeLiteral <Ref <HttpServletRequest >>() {}).getType ();
132
+ private static final Type RESPONSE_TYPE = (new TypeLiteral <Ref <HttpServletResponse >>() {}).getType ();
133
133
134
134
private static final AsyncContextDelegate DEFAULT_ASYNC_DELEGATE = new AsyncContextDelegate () {
135
135
@@ -146,7 +146,7 @@ public void complete() {
146
146
private final RequestScopedInitializerProvider requestScopedInitializer ;
147
147
private final boolean requestResponseBindingExternalized ;
148
148
149
- private final RequestScopedInitializerProvider DEFAULT_REQUEST_SCOPE_INITIALIZER_PROVIDER =
149
+ private static final RequestScopedInitializerProvider DEFAULT_REQUEST_SCOPE_INITIALIZER_PROVIDER =
150
150
new RequestScopedInitializerProvider () {
151
151
@ Override
152
152
public RequestScopedInitializer get (final RequestContextProvider context ) {
0 commit comments