Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Hammer2019-11-20 19:06:54 +0000
committerAlexander Kurtakov2019-12-11 17:13:01 +0000
commitbf84edb7500f0ac62aeec92d7158137ccc4ed725 (patch)
tree046d2a4db7246a1231f7af562b47a99ecdcd5c36 /bundles/org.eclipse.equinox.p2.artifact.repository
parent64699225ab687e88a61212c7f17f0eb56c9cad21 (diff)
downloadrt.equinox.p2-bf84edb7500f0ac62aeec92d7158137ccc4ed725.tar.gz
rt.equinox.p2-bf84edb7500f0ac62aeec92d7158137ccc4ed725.tar.xz
rt.equinox.p2-bf84edb7500f0ac62aeec92d7158137ccc4ed725.zip
Use jdk 5 for-each loopI20191211-1805
Replace simple uses of Iterator with a corresponding for-loop. Also add missing braces on loops as necessary. Change-Id: I0b989291c6067ee9d1a966ac6bd9ac280cf8fad0 Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.artifact.repository')
-rw-r--r--bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/UniversalUniqueIdentifier.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/UniversalUniqueIdentifier.java b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/UniversalUniqueIdentifier.java
index 90fa151e9..ab172c03a 100644
--- a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/UniversalUniqueIdentifier.java
+++ b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/UniversalUniqueIdentifier.java
@@ -296,8 +296,8 @@ public class UniversalUniqueIdentifier implements java.io.Serializable {
@Override
public String toString() {
StringBuilder buffer = new StringBuilder();
- for (int i = 0; i < fBits.length; i++)
- appendByteString(buffer, fBits[i]);
+ for (byte bit : fBits)
+ appendByteString(buffer, bit);
return buffer.toString();
}

Back to the top