diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-05-07 17:57:06 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-05-07 17:57:06 -0400 |
commit | df9dbddd378e6f5adadb3b62279fb80eb92b4a91 (patch) | |
tree | 611b28503262dd38e3432eb1e919d18df61d592f /sangria-core/src/main/java | |
parent | 39684339724ce966332deb846061d12701db99f2 (diff) | |
download | sangria-df9dbddd378e6f5adadb3b62279fb80eb92b4a91.tar.xz |
core: Change Priority.toString() to use more natural language.
Diffstat (limited to 'sangria-core/src/main/java')
-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(); } |