|
16 | 16 |
|
17 | 17 | package org.springframework.ldap.odm.tools;
|
18 | 18 |
|
19 |
| -import freemarker.template.Configuration; |
20 |
| -import freemarker.template.DefaultObjectWrapper; |
21 |
| -import freemarker.template.Template; |
22 |
| -import freemarker.template.TemplateException; |
23 |
| -import org.apache.commons.cli.CommandLine; |
24 |
| -import org.apache.commons.cli.CommandLineParser; |
25 |
| -import org.apache.commons.cli.HelpFormatter; |
26 |
| -import org.apache.commons.cli.Options; |
27 |
| -import org.apache.commons.cli.ParseException; |
28 |
| -import org.apache.commons.cli.PosixParser; |
29 |
| -import org.slf4j.Logger; |
30 |
| -import org.slf4j.LoggerFactory; |
31 |
| - |
32 |
| -import javax.naming.Context; |
33 |
| -import javax.naming.NamingException; |
34 |
| -import javax.naming.directory.DirContext; |
35 |
| -import javax.naming.directory.InitialDirContext; |
36 | 19 | import java.io.BufferedReader;
|
37 | 20 | import java.io.File;
|
38 | 21 | import java.io.FileOutputStream;
|
|
44 | 27 | import java.util.HashMap;
|
45 | 28 | import java.util.HashSet;
|
46 | 29 | import java.util.Hashtable;
|
| 30 | +import java.util.Locale; |
47 | 31 | import java.util.Map;
|
48 | 32 | import java.util.Set;
|
49 | 33 | import java.util.regex.Matcher;
|
50 | 34 | import java.util.regex.Pattern;
|
51 | 35 |
|
| 36 | +import javax.naming.Context; |
| 37 | +import javax.naming.NamingException; |
| 38 | +import javax.naming.directory.DirContext; |
| 39 | +import javax.naming.directory.InitialDirContext; |
| 40 | + |
| 41 | +import freemarker.template.Configuration; |
| 42 | +import freemarker.template.DefaultObjectWrapper; |
| 43 | +import freemarker.template.Template; |
| 44 | +import freemarker.template.TemplateException; |
| 45 | +import org.apache.commons.cli.CommandLine; |
| 46 | +import org.apache.commons.cli.CommandLineParser; |
| 47 | +import org.apache.commons.cli.HelpFormatter; |
| 48 | +import org.apache.commons.cli.Options; |
| 49 | +import org.apache.commons.cli.ParseException; |
| 50 | +import org.apache.commons.cli.PosixParser; |
| 51 | +import org.slf4j.Logger; |
| 52 | +import org.slf4j.LoggerFactory; |
| 53 | + |
52 | 54 | /**
|
53 | 55 | * This tool creates a Java class representation of a set of LDAP object classes for use
|
54 | 56 | * with {@link org.springframework.ldap.odm.core.OdmManager}.
|
@@ -328,7 +330,7 @@ private static Set<String> parseObjectClassesFlag(String objectClassesFlag) {
|
328 | 330 |
|
329 | 331 | for (String objectClassFlag : objectClassesFlag.split(",")) {
|
330 | 332 | if (objectClassFlag.length() > 0) {
|
331 |
| - objectClasses.add(objectClassFlag.toLowerCase().trim()); |
| 333 | + objectClasses.add(objectClassFlag.toLowerCase(Locale.ROOT).trim()); |
332 | 334 | }
|
333 | 335 | }
|
334 | 336 |
|
|
0 commit comments