directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plusplusjia...@apache.org
Subject directory-kerby git commit: [DIRKRB-302]-Implementing getIdentities() for MemoryIdentityBackend. Contributed by Yaning.
Date Thu, 18 Jun 2015 05:56:28 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/master dc623d966 -> 1be7fcd48


[DIRKRB-302]-Implementing getIdentities() for MemoryIdentityBackend. Contributed by Yaning.


Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/1be7fcd4
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/1be7fcd4
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/1be7fcd4

Branch: refs/heads/master
Commit: 1be7fcd481311c42e4629dacaf880e1d9fdafd0d
Parents: dc623d9
Author: plusplusjiajia <jiajia.li@intel.com>
Authored: Thu Jun 18 14:01:26 2015 +0800
Committer: plusplusjiajia <jiajia.li@intel.com>
Committed: Thu Jun 18 14:01:26 2015 +0800

----------------------------------------------------------------------
 .../kerberos/kerb/identity/backend/MemoryIdentityBackend.java   | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/1be7fcd4/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/backend/MemoryIdentityBackend.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/backend/MemoryIdentityBackend.java
b/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/backend/MemoryIdentityBackend.java
index 68742ee..2c5b9bb 100644
--- a/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/backend/MemoryIdentityBackend.java
+++ b/kerby-kerb/kerb-identity/src/main/java/org/apache/kerby/kerberos/kerb/identity/backend/MemoryIdentityBackend.java
@@ -56,12 +56,11 @@ public class MemoryIdentityBackend extends AbstractIdentityBackend {
 
     @Override
     public List<String> getIdentities(int start, int limit) {
-        return new ArrayList<>(getCache().keySet());
+        return getIdentities().subList(start, limit);
     }
 
     @Override
     public List<String> getIdentities() {
-        //TODO
-        return null;
+        return new ArrayList<>(getCache().keySet());
     }
 }


Mime
View raw message