(String name, String value)
| 417 | |
| 418 | |
| 419 | private void setAttributeInternal(String name, String value) { |
| 420 | if (attributes == null) { |
| 421 | if (value == null) { |
| 422 | return; |
| 423 | } else { |
| 424 | // Case-insensitive keys but retain case used |
| 425 | attributes = new TreeMap<>(String.CASE_INSENSITIVE_ORDER); |
| 426 | } |
| 427 | } |
| 428 | |
| 429 | if (value == null) { |
| 430 | attributes.remove(name); |
| 431 | } else { |
| 432 | attributes.put(name, value); |
| 433 | } |
| 434 | } |
| 435 | |
| 436 | |
| 437 | /** |
no test coverage detected