Fixed java 1.6 compatibility issue.
This commit is contained in:
parent
e548d288ad
commit
13b748b050
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ public class Algorithms {
|
||||||
if (isEmpty(s)) {
|
if (isEmpty(s)) {
|
||||||
return Collections.emptyMap();
|
return Collections.emptyMap();
|
||||||
}
|
}
|
||||||
Map<String, String> names = new HashMap<>();
|
Map<String, String> names = new HashMap<String, String>();
|
||||||
String[] split = s.split(CHAR_TOSPLIT + "");
|
String[] split = s.split(CHAR_TOSPLIT + "");
|
||||||
// last split is an empty string
|
// last split is an empty string
|
||||||
for (int i = 1; i < split.length; i += 2) {
|
for (int i = 1; i < split.length; i += 2) {
|
||||||
|
|
Loading…
Reference in a new issue