diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-02-03 19:39:57 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-02-03 19:40:46 +0100 |
commit | 4e41765624292d8d5069f52bce0493e48725a05a (patch) | |
tree | 15aeb9a620b42d32c8961853e4e44bedfd8241bf /microbenchmark-template | |
parent | b3c696c01ca143928624af180c2672779ce0d076 (diff) | |
download | sonarqube-4e41765624292d8d5069f52bce0493e48725a05a.tar.gz sonarqube-4e41765624292d8d5069f52bce0493e48725a05a.zip |
Improve micro-benchmark of Externalizable
Diffstat (limited to 'microbenchmark-template')
-rw-r--r-- | microbenchmark-template/src/main/java/org/sonar/microbenchmark/SerializationBenchmark.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/microbenchmark-template/src/main/java/org/sonar/microbenchmark/SerializationBenchmark.java b/microbenchmark-template/src/main/java/org/sonar/microbenchmark/SerializationBenchmark.java index c392d7cf841..6957fa1f403 100644 --- a/microbenchmark-template/src/main/java/org/sonar/microbenchmark/SerializationBenchmark.java +++ b/microbenchmark-template/src/main/java/org/sonar/microbenchmark/SerializationBenchmark.java @@ -147,10 +147,10 @@ public class SerializationBenchmark { @Override public void writeExternal(ObjectOutput out) throws IOException { - out.writeObject(uuid); - out.writeObject(severity); - out.writeObject(message); - out.writeObject(author); + out.writeBytes(uuid); + out.writeBytes(severity); + out.writeBytes(message); + out.writeBytes(author); out.writeInt(line); } |