Commit d1c1de02ed07932a0d68b3d987950bc6c1bbf37e
1 parent
20bc65aa
Exists in
master
Formatação
Showing
1 changed file
with
5 additions
and
6 deletions
Show diff stats
impl/extension/jsf/src/main/java/br/gov/frameworkdemoiselle/internal/implementation/SecurityObserver.java
... | ... | @@ -74,12 +74,12 @@ public class SecurityObserver implements Serializable { |
74 | 74 | public SecurityObserver() { |
75 | 75 | clear(); |
76 | 76 | } |
77 | - | |
78 | - private Map<String, Object> getSavedParams(){ | |
79 | - if(this.savedParams == null) { | |
77 | + | |
78 | + private Map<String, Object> getSavedParams() { | |
79 | + if (this.savedParams == null) { | |
80 | 80 | this.savedParams = new HashMap<String, Object>(); |
81 | 81 | } |
82 | - | |
82 | + | |
83 | 83 | return this.savedParams; |
84 | 84 | } |
85 | 85 | |
... | ... | @@ -87,8 +87,7 @@ public class SecurityObserver implements Serializable { |
87 | 87 | clear(); |
88 | 88 | FacesContext facesContext = Beans.getReference(FacesContext.class); |
89 | 89 | |
90 | - if (!config.getLoginPage() | |
91 | - .equals(facesContext.getViewRoot().getViewId())) { | |
90 | + if (!config.getLoginPage().equals(facesContext.getViewRoot().getViewId())) { | |
92 | 91 | getSavedParams().putAll(facesContext.getExternalContext().getRequestParameterMap()); |
93 | 92 | savedViewId = facesContext.getViewRoot().getViewId(); |
94 | 93 | } | ... | ... |