mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-04 04:49:12 +00:00
Issue #4057 - Clean up identified by PR review
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
parent
91d3ddced6
commit
2b1fe8c38d
@ -38,13 +38,9 @@ public class HttpField
|
||||
{
|
||||
_header = header;
|
||||
if (_header != null && name == null)
|
||||
{
|
||||
_name = _header.asString();
|
||||
}
|
||||
else
|
||||
{
|
||||
_name = Objects.requireNonNull(name);
|
||||
}
|
||||
_value = value;
|
||||
}
|
||||
|
||||
|
@ -688,7 +688,6 @@ public class HttpFieldsTest
|
||||
fields.add("Host", "localhost");
|
||||
HttpField namelessField = new HttpField(HttpHeader.CONNECTION, null, "bogus");
|
||||
fields.put(namelessField);
|
||||
System.out.println(fields);
|
||||
|
||||
assertFalse(fields.containsKey(keyName), "containsKey('" + keyName + "')");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user