mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-03 20:39:18 +00:00
jetty-9 - Better toString().
This commit is contained in:
parent
9355e06603
commit
776aea91d4
@ -131,9 +131,12 @@ public class HttpExchange
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return String.format("%s@%x status=%s",
|
||||
String padding = "0000";
|
||||
String status = Integer.toBinaryString(complete.get());
|
||||
return String.format("%s@%x status=%s%s",
|
||||
HttpExchange.class.getSimpleName(),
|
||||
hashCode(),
|
||||
Integer.toBinaryString(complete.get()));
|
||||
padding.substring(status.length()),
|
||||
status);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user