Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSServerException.java')
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSServerException.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSServerException.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSServerException.java
index c4b7c7b7c..baace6ca0 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSServerException.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSServerException.java
@@ -35,8 +35,8 @@ public class CVSServerException extends CVSException {
if ( ! status.isMultiStatus())
return false;
IStatus[] children = ((MultiStatus)status).getChildren();
- for (int i = 0; i < children.length; i++) {
- if (children[i].getCode() == CVSStatus.NO_SUCH_TAG) {
+ for (IStatus child : children) {
+ if (child.getCode() == CVSStatus.NO_SUCH_TAG) {
return true;
}
}
@@ -51,9 +51,10 @@ public class CVSServerException extends CVSException {
if ( ! status.isMultiStatus())
return status.getSeverity() == IStatus.ERROR;
IStatus[] children = ((MultiStatus)status).getChildren();
- for (int i=0;i<children.length;i++) {
- if (children[i].getSeverity() == IStatus.ERROR)
+ for (IStatus child : children) {
+ if (child.getSeverity() == IStatus.ERROR) {
return true;
+ }
}
return false;
}

Back to the top