From 64b6f382d35e1fea0172b222277dae0312f274e4 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Mon, 25 Feb 2013 09:41:49 -0500 Subject: [PATCH] Merged LDAP user/team pre-fetching and synchronization enhancement from mschaefers --- src/com/gitblit/ConfigUserService.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/gitblit/ConfigUserService.java b/src/com/gitblit/ConfigUserService.java index 67ad053..7aa0998 100644 --- a/src/com/gitblit/ConfigUserService.java +++ b/src/com/gitblit/ConfigUserService.java @@ -20,6 +20,7 @@ import java.text.MessageFormat; import java.util.ArrayList; import java.util.Arrays; +import java.util.Collection; import java.util.Collections; import java.util.HashSet; import java.util.List; @@ -286,7 +287,7 @@ * @since 1.2.0 */ @Override - public boolean updateUserModels(List<UserModel> models) { + public boolean updateUserModels(Collection<UserModel> models) { try { read(); for (UserModel model : models) { @@ -566,7 +567,7 @@ * @since 1.2.0 */ @Override - public boolean updateTeamModels(List<TeamModel> models) { + public boolean updateTeamModels(Collection<TeamModel> models) { try { read(); for (TeamModel team : models) { @@ -808,7 +809,6 @@ /** * Writes the properties file. * - * @param properties * @throws IOException */ private synchronized void write() throws IOException { -- Gitblit v1.9.1