Java 5: 'while' and for-loop replaceable with 'foreach'
This commit is contained in:
committed by
Rossen Stoyanchev
parent
0260d79092
commit
7caa67f302
@@ -338,8 +338,8 @@ public class FlowFacesContext extends FacesContextWrapper {
|
||||
String detail = (String) ois.readObject();
|
||||
int severityOrdinal = ois.readInt();
|
||||
FacesMessage.Severity severity = FacesMessage.SEVERITY_INFO;
|
||||
for (Iterator<?> iterator = FacesMessage.VALUES.iterator(); iterator.hasNext();) {
|
||||
FacesMessage.Severity value = (FacesMessage.Severity) iterator.next();
|
||||
for (Object o : FacesMessage.VALUES) {
|
||||
FacesMessage.Severity value = (FacesMessage.Severity) o;
|
||||
if (value.getOrdinal() == severityOrdinal) {
|
||||
severity = value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user