From: David ‘Bombe’ Roden Date: Sun, 18 Mar 2012 01:13:30 +0000 (+0100) Subject: Override toString() to allow simple display in a JList. X-Git-Tag: 0.10-rc1~5 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=7d276e5fb9dcd62b6be651f572964788fac8131a;p=jSite.git Override toString() to allow simple display in a JList. --- diff --git a/src/de/todesbaum/util/freenet/fcp2/PriorityClass.java b/src/de/todesbaum/util/freenet/fcp2/PriorityClass.java index 729acc1..623bc5b 100644 --- a/src/de/todesbaum/util/freenet/fcp2/PriorityClass.java +++ b/src/de/todesbaum/util/freenet/fcp2/PriorityClass.java @@ -110,4 +110,16 @@ public final class PriorityClass { return null; } + // + // OBJECT METHODS + // + + /** + * {@inheritDoc} + */ + @Override + public String toString() { + return name; + } + }