summaryrefslogtreecommitdiffstats
path: root/sangria-core/src/main/java/com
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-05-07 17:57:06 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-05-07 17:57:06 -0400
commitdf9dbddd378e6f5adadb3b62279fb80eb92b4a91 (patch)
tree611b28503262dd38e3432eb1e919d18df61d592f /sangria-core/src/main/java/com
parent39684339724ce966332deb846061d12701db99f2 (diff)
downloadsangria-df9dbddd378e6f5adadb3b62279fb80eb92b4a91.tar.xz
core: Change Priority.toString() to use more natural language.
Diffstat (limited to 'sangria-core/src/main/java/com')
-rw-r--r--sangria-core/src/main/java/com/tavianator/sangria/core/Priority.java13
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();
}