From 27ae9095639bb228a1b7ff86a3ebe4264abf05be Mon Sep 17 00:00:00 2001
From: mschaefers <mschaefers@scoop-gmbh.de>
Date: Thu, 29 Nov 2012 12:33:09 -0500
Subject: [PATCH] feature: when using LdapUserService one can configure Gitblit to fetch all users from ldap that can possibly login. This allows to see newly generated LDAP users instantly in Gitblit. By now an LDAP user had to log in once to appear in GitBlit.

---
 src/com/gitblit/utils/ArrayUtils.java |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/com/gitblit/utils/ArrayUtils.java b/src/com/gitblit/utils/ArrayUtils.java
index 635d27a..41d110a 100644
--- a/src/com/gitblit/utils/ArrayUtils.java
+++ b/src/com/gitblit/utils/ArrayUtils.java
@@ -26,6 +26,14 @@
  */
 public class ArrayUtils {
 
+	public static boolean isEmpty(byte [] array) {
+		return array == null || array.length == 0;
+	}
+
+	public static boolean isEmpty(char [] array) {
+		return array == null || array.length == 0;
+	}
+
 	public static boolean isEmpty(Object [] array) {
 		return array == null || array.length == 0;
 	}

--
Gitblit v1.9.1