Commit d1c1de02ed07932a0d68b3d987950bc6c1bbf37e

Authored by Ednara Oliveira
1 parent 20bc65aa
Exists in master

Formatação

impl/extension/jsf/src/main/java/br/gov/frameworkdemoiselle/internal/implementation/SecurityObserver.java
@@ -74,12 +74,12 @@ public class SecurityObserver implements Serializable { @@ -74,12 +74,12 @@ public class SecurityObserver implements Serializable {
74 public SecurityObserver() { 74 public SecurityObserver() {
75 clear(); 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 this.savedParams = new HashMap<String, Object>(); 80 this.savedParams = new HashMap<String, Object>();
81 } 81 }
82 - 82 +
83 return this.savedParams; 83 return this.savedParams;
84 } 84 }
85 85
@@ -87,8 +87,7 @@ public class SecurityObserver implements Serializable { @@ -87,8 +87,7 @@ public class SecurityObserver implements Serializable {
87 clear(); 87 clear();
88 FacesContext facesContext = Beans.getReference(FacesContext.class); 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 getSavedParams().putAll(facesContext.getExternalContext().getRequestParameterMap()); 91 getSavedParams().putAll(facesContext.getExternalContext().getRequestParameterMap());
93 savedViewId = facesContext.getViewRoot().getViewId(); 92 savedViewId = facesContext.getViewRoot().getViewId();
94 } 93 }