directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject [1/4] directory-kerby git commit: Remove sun.* exception declaration, it's never thrown
Date Thu, 25 Jun 2015 22:20:45 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/master 895044000 -> 2b7a812b7


Remove sun.* exception declaration, it's never thrown


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

Branch: refs/heads/master
Commit: 89bcbb8e1ac5541b7ad3327d2ede25ad10fcf7fb
Parents: 8950440
Author: Stefan Seelmann <mail@stefan-seelmann.de>
Authored: Fri Jun 26 00:03:42 2015 +0200
Committer: Stefan Seelmann <mail@stefan-seelmann.de>
Committed: Fri Jun 26 00:03:42 2015 +0200

----------------------------------------------------------------------
 .../kerby/kerberos/kdc/identitybackend/LdapIdentityBackend.java | 3 ---
 .../kerberos/kdc/identitybackend/LdapIdentityGetHelper.java     | 5 ++---
 2 files changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/89bcbb8e/kerby-backend/ldap-backend/src/main/java/org/apache/kerby/kerberos/kdc/identitybackend/LdapIdentityBackend.java
----------------------------------------------------------------------
diff --git a/kerby-backend/ldap-backend/src/main/java/org/apache/kerby/kerberos/kdc/identitybackend/LdapIdentityBackend.java
b/kerby-backend/ldap-backend/src/main/java/org/apache/kerby/kerberos/kdc/identitybackend/LdapIdentityBackend.java
index 4fb6c9d..645ed92 100644
--- a/kerby-backend/ldap-backend/src/main/java/org/apache/kerby/kerberos/kdc/identitybackend/LdapIdentityBackend.java
+++ b/kerby-backend/ldap-backend/src/main/java/org/apache/kerby/kerberos/kdc/identitybackend/LdapIdentityBackend.java
@@ -39,7 +39,6 @@ import org.apache.kerby.kerberos.kerb.identity.backend.AbstractIdentityBackend;
 import org.apache.kerby.kerberos.kerb.spec.KerberosTime;
 import org.apache.kerby.kerberos.kerb.spec.base.EncryptionKey;
 import org.apache.kerby.kerberos.kerb.spec.base.EncryptionType;
-import sun.security.krb5.Asn1Exception;
 
 import java.io.IOException;
 import java.text.ParseException;
@@ -195,8 +194,6 @@ public class LdapIdentityBackend extends AbstractIdentityBackend {
             krbIdentity.setLocked(getHelper.getLocked());
         } catch (LdapException e) {
             e.printStackTrace();
-        } catch (Asn1Exception e) {
-            e.printStackTrace();
         } catch (ParseException e) {
             e.printStackTrace();
         } catch (IOException e) {

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/89bcbb8e/kerby-backend/ldap-backend/src/main/java/org/apache/kerby/kerberos/kdc/identitybackend/LdapIdentityGetHelper.java
----------------------------------------------------------------------
diff --git a/kerby-backend/ldap-backend/src/main/java/org/apache/kerby/kerberos/kdc/identitybackend/LdapIdentityGetHelper.java
b/kerby-backend/ldap-backend/src/main/java/org/apache/kerby/kerberos/kdc/identitybackend/LdapIdentityGetHelper.java
index ad50769..cf49800 100644
--- a/kerby-backend/ldap-backend/src/main/java/org/apache/kerby/kerberos/kdc/identitybackend/LdapIdentityGetHelper.java
+++ b/kerby-backend/ldap-backend/src/main/java/org/apache/kerby/kerberos/kdc/identitybackend/LdapIdentityGetHelper.java
@@ -27,7 +27,6 @@ import org.apache.directory.shared.kerberos.KerberosAttribute;
 import org.apache.kerby.kerberos.kerb.spec.KerberosTime;
 import org.apache.kerby.kerberos.kerb.spec.base.EncryptionKey;
 import org.apache.kerby.kerberos.kerb.spec.base.PrincipalName;
-import sun.security.krb5.Asn1Exception;
 
 import java.io.IOException;
 import java.text.ParseException;
@@ -66,13 +65,13 @@ public class LdapIdentityGetHelper {
     }
 
     public KerberosTime getCreatedTime() throws LdapInvalidAttributeValueException,
-            Asn1Exception, ParseException {
+            ParseException {
         String createTime = entry.get("createTimestamp").getString();
         return createKerberosTime(createTime);
     }
 
     public KerberosTime getExpireTime() throws LdapInvalidAttributeValueException,
-            Asn1Exception, ParseException {
+            ParseException {
         String expirationTime = entry.get(KerberosAttribute.KRB5_ACCOUNT_EXPIRATION_TIME_AT).getString();
         return createKerberosTime(expirationTime);
     }


Mime
View raw message