We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c46f08 commit e01bb6bCopy full SHA for e01bb6b
src/org/opensolaris/opengrok/util/RandomString.java
@@ -23,11 +23,17 @@
23
package org.opensolaris.opengrok.util;
24
25
/**
26
+ * Utility class that can generate various random strings.
27
*
28
* @author Krystof Tulinger
29
*/
-public class RandomString {
30
+public final class RandomString {
31
32
+ private RandomString() {
33
+ // Throw an exception if this ever *is* called.
34
+ throw new AssertionError("Instantiating utility class " + getClass());
35
+ }
36
+
37
public static String generateLower(int length) {
38
return generate(length, "abcdefghijklmnopqrstuvwxyz");
39
}
0 commit comments