Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/VersionFormatParser.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/VersionFormatParser.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/VersionFormatParser.java b/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/VersionFormatParser.java
index 87b7485e5..1c1079e1c 100644
--- a/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/VersionFormatParser.java
+++ b/bundles/org.eclipse.equinox.p2.metadata/src/org/eclipse/equinox/internal/p2/metadata/VersionFormatParser.java
@@ -1240,7 +1240,7 @@ class VersionFormatParser {
}
private String parseAndConsiderEscapeUntil(char endChar) throws VersionFormatException {
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
while (current < eos) {
char c = format.charAt(current++);
if (c == endChar)
@@ -1288,7 +1288,7 @@ class VersionFormatParser {
private void parseCharacterGroup(VersionFormatParser.Instructions ep) throws VersionFormatException {
assertChar('[');
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
outer: for (; current < eos; ++current) {
char c = format.charAt(current);
switch (c) {
@@ -1355,7 +1355,7 @@ class VersionFormatParser {
++current;
ArrayList<List<String>> identifiers = new ArrayList<>();
ArrayList<String> idents = new ArrayList<>();
- StringBuffer sb = new StringBuffer();
+ StringBuilder sb = new StringBuilder();
for (;;) {
if (current >= eos)
throw formatException(Messages.bad_enum_definition);

Back to the top