This is an automated email from the ASF dual-hosted git repository.

tallison pushed a commit to branch branch_1x
in repository https://gitbox.apache.org/repos/asf/tika.git

commit fd7ec73a19bfdfb3918faae28126ae6662bf1823
Author: tballison <talli...@mitre.org>
AuthorDate: Mon Feb 12 10:28:46 2018 -0500

    Remove java 8 String.join
---
 .../java/org/apache/tika/sax/StandardOrganizations.java   | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git 
a/tika-core/src/main/java/org/apache/tika/sax/StandardOrganizations.java 
b/tika-core/src/main/java/org/apache/tika/sax/StandardOrganizations.java
index 39ace2d..cff186a 100644
--- a/tika-core/src/main/java/org/apache/tika/sax/StandardOrganizations.java
+++ b/tika-core/src/main/java/org/apache/tika/sax/StandardOrganizations.java
@@ -159,8 +159,17 @@ public class StandardOrganizations {
         * @return the regular expression containing the most important 
technical standard organizations.
         */
        public static String getOrganzationsRegex() {
-               String regex = "(" + String.join("|", organizations.keySet()) + 
")";
-               
-               return regex;
+               StringBuilder sb = new StringBuilder();
+               sb.append("(");
+               int i = 0;
+               for (String org : organizations.keySet()) {
+                       if (i > 0) {
+                               sb.append("|");
+                       }
+                       sb.append(org);
+                       i++;
+               }
+               sb.append(")");
+               return sb.toString();
        }
 }
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
talli...@apache.org.

Reply via email to