summaryrefslogtreecommitdiff
path: root/xml/impl/src/com/intellij/codeInsight/template/emmet/generators/LoremGenerator.java
diff options
context:
space:
mode:
Diffstat (limited to 'xml/impl/src/com/intellij/codeInsight/template/emmet/generators/LoremGenerator.java')
-rw-r--r--xml/impl/src/com/intellij/codeInsight/template/emmet/generators/LoremGenerator.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/xml/impl/src/com/intellij/codeInsight/template/emmet/generators/LoremGenerator.java b/xml/impl/src/com/intellij/codeInsight/template/emmet/generators/LoremGenerator.java
index a5f4aeef5f0d..37b6d4b15b53 100644
--- a/xml/impl/src/com/intellij/codeInsight/template/emmet/generators/LoremGenerator.java
+++ b/xml/impl/src/com/intellij/codeInsight/template/emmet/generators/LoremGenerator.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2000-2013 JetBrains s.r.o.
+ * Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,6 +16,7 @@
package com.intellij.codeInsight.template.emmet.generators;
import com.intellij.openapi.util.text.StringUtil;
+import com.intellij.util.ArrayUtil;
import java.util.*;
@@ -145,7 +146,7 @@ public class LoremGenerator {
result.add(words[i]);
}
- return result.toArray(new String[result.size()]);
+ return ArrayUtil.toStringArray(result);
}
private char choice(String values) {