changeset 1300:3b136c4c1ae3

minor
author Devel 1
date Thu, 17 Sep 2020 14:38:03 +0200
parents c662aced580e
children 822c8165c65b
files stress-tester-benchmark/src/main/java/com/passus/serializer/SerializationTest.java
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/stress-tester-benchmark/src/main/java/com/passus/serializer/SerializationTest.java	Thu Aug 20 14:42:42 2020 +0200
+++ b/stress-tester-benchmark/src/main/java/com/passus/serializer/SerializationTest.java	Thu Sep 17 14:38:03 2020 +0200
@@ -1,6 +1,5 @@
 package com.passus.serializer;
 
-import avro.records.RequestMethod;
 import com.esotericsoftware.kryo.Kryo;
 import com.esotericsoftware.kryo.io.Output;
 import com.mongodb.BasicDBObject;
@@ -41,7 +40,7 @@
 @BenchmarkMode(Mode.AverageTime)
 @OutputTimeUnit(TimeUnit.NANOSECONDS)
 public class SerializationTest {
-    
+
     static {
         org.apache.http.entity.ContentType ct;
     }
@@ -105,7 +104,7 @@
     @Benchmark
     public byte[] testAvroSpecific() throws IOException {
         HttpBean.Request request = bean.getRequest();
-        avro.records.RequestMethod method = RequestMethod.valueOf(request.getMethod().name());
+        avro.records.RequestMethod method = avro.records.RequestMethod.valueOf(request.getMethod().name());
         avro.records.Request avroRequest = new avro.records.Request(method, request.getUrl(), request.getVersion());
         avro.records.HttpBean avroBean = new avro.records.HttpBean();
         avroBean.setFields((Map) bean.getFields());
@@ -196,7 +195,7 @@
         printEntry("externalizable:", test.testExternalizable());
         printEntry("TCP payload:   ", PAYLOAD);
     }
-    
+
     private static void printEntry(String name, byte[] value) {
         System.out.println(name + value.length/* + " " + new String(value)*/);
     }
@@ -240,7 +239,7 @@
             }
         }
     }
-    
+
     static byte[] getPayload() {
         return PAYLOAD;
     }