From 81372c2b7dd0368134fe1bbe329b907a80ccfe2e Mon Sep 17 00:00:00 2001 From: Jesse McConnell Date: Fri, 29 Jun 2012 13:55:36 -0500 Subject: [PATCH] cleaner generator toString() --- .../org/eclipse/jetty/websocket/generator/Generator.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jetty-websocket/websocket-core/src/main/java/org/eclipse/jetty/websocket/generator/Generator.java b/jetty-websocket/websocket-core/src/main/java/org/eclipse/jetty/websocket/generator/Generator.java index eaad1c14f9a..43010c764d8 100644 --- a/jetty-websocket/websocket-core/src/main/java/org/eclipse/jetty/websocket/generator/Generator.java +++ b/jetty-websocket/websocket-core/src/main/java/org/eclipse/jetty/websocket/generator/Generator.java @@ -50,4 +50,11 @@ public class Generator { FrameGenerator generator = generators.get(frame.getOpCode()); return generator.generate(buffer,frame); } + + @Override + public String toString() + { + return String.format("Generator {%s registered}",generators.size()); + } + }