changeset 189:c6ec28d46af3

Don't print "null" with sample report.
author shade
date Fri, 27 Sep 2013 11:04:20 +0400
parents 90631ae36974
children fde33cbb4ced
files jmh-core/src/main/java/org/openjdk/jmh/logic/results/SampleTimePerOp.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/logic/results/SampleTimePerOp.java	Thu Sep 26 21:05:45 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/logic/results/SampleTimePerOp.java	Fri Sep 27 11:04:20 2013 +0400
@@ -129,7 +129,7 @@
         }
 
         StringBuilder sb = new StringBuilder();
-        sb.append("Run result \"").append(label).append("\": \n");
+        sb.append("Run result ").append((label == null) ? "" : "\"" + label + "\"").append(": \n");
         sb.append("  samples = ").append(stats.getN()).append("\n");
 
         if (stats.getN() > 2) {