diff options
Diffstat (limited to 'sangria-core/src/main')
-rw-r--r-- | sangria-core/src/main/java/com/tavianator/sangria/core/Priority.java | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sangria-core/src/main/java/com/tavianator/sangria/core/Priority.java b/sangria-core/src/main/java/com/tavianator/sangria/core/Priority.java index 6e6a2ea..a833883 100644 --- a/sangria-core/src/main/java/com/tavianator/sangria/core/Priority.java +++ b/sangria-core/src/main/java/com/tavianator/sangria/core/Priority.java @@ -126,23 +126,22 @@ public class Priority implements Comparable<Priority> { @Override public String toString() { - StringBuilder builder = new StringBuilder("Priority."); + StringBuilder builder = new StringBuilder(); if (weights.length == 0) { - builder.append("getDefault()"); + builder.append("default priority"); } else { - builder.append("create("); + builder.append("priority ["); for (int i = 0; i < weights.length; ++i) { if (i != 0) { builder.append(", "); } builder.append(weights[i]); } - builder.append(")"); + builder.append("]"); } if (seq != 0) { - builder.append(".next(") - .append(seq) - .append(")"); + builder.append(" + ") + .append(seq); } return builder.toString(); } |