diff options
| author | David Williams | 2016-07-16 15:07:34 +0000 |
|---|---|---|
| committer | David Williams | 2016-07-16 15:07:34 +0000 |
| commit | d173031455240f144616c97b3cf55c7f0d7b26f4 (patch) | |
| tree | 970c1d4765173d50e999fb001a3b25719ffde30a | |
| parent | 35e6d7fba0103b6e1c9ffb6b6bff9a34392f3d3e (diff) | |
| download | eclipse.platform.releng-d173031455240f144616c97b3cf55c7f0d7b26f4.tar.gz eclipse.platform.releng-d173031455240f144616c97b3cf55c7f0d7b26f4.tar.xz eclipse.platform.releng-d173031455240f144616c97b3cf55c7f0d7b26f4.zip | |
Bug 481272 - another case of "hidden" hardcoding.
Change-Id: Ia117a2119bdde91909674ddaabfe147bc04bbc1f
| -rw-r--r-- | bundles/org.eclipse.test.performance/src/org/eclipse/test/internal/performance/db/DB.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.test.performance/src/org/eclipse/test/internal/performance/db/DB.java b/bundles/org.eclipse.test.performance/src/org/eclipse/test/internal/performance/db/DB.java index 954200ae..a51e5010 100644 --- a/bundles/org.eclipse.test.performance/src/org/eclipse/test/internal/performance/db/DB.java +++ b/bundles/org.eclipse.test.performance/src/org/eclipse/test/internal/performance/db/DB.java @@ -54,8 +54,13 @@ public class DB { return name; } } + // dw 7/16/2016: assuming this pattern is supposed to be JUST the date part of build id + // yyyymmdd + // There are probably much better patterns than even my "quick and dirty" method? + final Pattern pattern = Pattern.compile("20[0-9][0-9][01][0-9][0-3][0-9]"); //$NON-NLS-1$ +// This poorly hardcoded pattern could have one of the big limitations in finding the "right" version to use in plots? +// final Pattern pattern = Pattern.compile("200[3-9][01][0-9][0-3][0-9]"); //$NON-NLS-1$ - final Pattern pattern = Pattern.compile("200[3-9][01][0-9][0-3][0-9]"); //$NON-NLS-1$ final Matcher matcher = pattern.matcher(name); if (!matcher.find()) { |
