Tim Speetjens has posted comments on this change.

Change subject: aaa: Suppress compiler warnings for unchecked cast
......................................................................


Patch Set 2:

(1 comment)

http://gerrit.ovirt.org/#/c/33682/2/backend/manager/modules/aaa/src/main/java/org/ovirt/engine/core/aaa/filters/NegotiationFilter.java
File 
backend/manager/modules/aaa/src/main/java/org/ovirt/engine/core/aaa/filters/NegotiationFilter.java:

Line 115:             ((HttpServletRequest) 
req).setAttribute(FiltersHelper.Constants.REQUEST_SCHEMES_KEY, schemes);
Line 116:             HttpSession session = httpreq.getSession(false);
Line 117:             Deque<AuthenticationProfile> stack = null;
Line 118:             if (session != null) {
Line 119:                 stack = 
(Deque<AuthenticationProfile>)session.getAttribute(STACK_ATTR);
> Your fix is inconsistent.
I can't find any way to limit the scope of the @SuppressWarnings annotation 
further. Wherever I put it, it's invalid or has not the desired effect. As far 
as I can see, it is the most narrowed down place, making it consistent with the 
other place where such annotation is added.
Line 120:             }
Line 121:             if (stack == null) {
Line 122:                 stack = new ArrayDeque<AuthenticationProfile>();
Line 123:                 stack.addAll(profiles);


-- 
To view, visit http://gerrit.ovirt.org/33682
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I730d91cdb7392f91e475642230a5c499f235f73c
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Tim Speetjens <[email protected]>
Gerrit-Reviewer: Tim Speetjens <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to