directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plusplusjia...@apache.org
Subject [10/26] directory-kerby git commit: Minor merge to benchmark
Date Mon, 10 Aug 2015 05:15:51 GMT
Minor merge to benchmark


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

Branch: refs/heads/pkinit-support
Commit: 87af55d7086189acec1085f461894c096c379731
Parents: 3863cb5
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Wed Aug 5 17:01:12 2015 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Wed Aug 5 17:01:12 2015 +0100

----------------------------------------------------------------------
 benchmark/pom.xml                                         | 10 +++++-----
 .../org/apache/kerby/benchmark/KrbCodecBenchmark.java     |  3 ---
 2 files changed, 5 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/87af55d7/benchmark/pom.xml
----------------------------------------------------------------------
diff --git a/benchmark/pom.xml b/benchmark/pom.xml
index 1e10c1b..8b2fa00 100644
--- a/benchmark/pom.xml
+++ b/benchmark/pom.xml
@@ -17,12 +17,12 @@
   <parent>
     <artifactId>kerby-all</artifactId>
     <groupId>org.apache.kerby</groupId>
-    <version>1.0-SNAPSHOT</version>
+    <version>${project.version}</version>
   </parent>
 
   <groupId>org.apache.kerby</groupId>
   <artifactId>benchmark</artifactId>
-  <version>1.10.2</version>
+  <version>1.0-SNAPSHOT</version>
   <packaging>jar</packaging>
 
   <name>Kerby benchmark</name>
@@ -55,17 +55,17 @@
     <dependency>
       <groupId>org.apache.kerby</groupId>
       <artifactId>kerby-asn1</artifactId>
-      <version>1.0-SNAPSHOT</version>
+      <version>${project.version}</version>
     </dependency>
     <dependency>
       <groupId>org.apache.kerby</groupId>
       <artifactId>kerb-client-api-all</artifactId>
-      <version>1.0-SNAPSHOT</version>
+      <version>${project.version}</version>
     </dependency>
     <dependency>
       <groupId>org.apache.kerby</groupId>
       <artifactId>kerb-server-api-all</artifactId>
-      <version>1.0-SNAPSHOT</version>
+      <version>${project.version}</version>
     </dependency>
     <dependency>
       <groupId>org.apache.directory.server</groupId>

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/87af55d7/benchmark/src/main/java/org/apache/kerby/benchmark/KrbCodecBenchmark.java
----------------------------------------------------------------------
diff --git a/benchmark/src/main/java/org/apache/kerby/benchmark/KrbCodecBenchmark.java b/benchmark/src/main/java/org/apache/kerby/benchmark/KrbCodecBenchmark.java
index 811713b..fda9b0e 100644
--- a/benchmark/src/main/java/org/apache/kerby/benchmark/KrbCodecBenchmark.java
+++ b/benchmark/src/main/java/org/apache/kerby/benchmark/KrbCodecBenchmark.java
@@ -55,9 +55,6 @@ public class KrbCodecBenchmark {
     public void decodeWithKerby() throws Exception {
         ApReq apReq = new ApReq();
         apReq.decode(apreqToken.duplicate());
-        if (apReq == null) {
-            throw new RuntimeException("Decoding failed");
-        }
         String serverName = apReq.getTicket().getSname().toString();
         if (serverName == null) {
             throw new RuntimeException("Decoding test failed");


Mime
View raw message