/src/main/java/org/htmlunit/MockWebConnection.java
final List<NameValuePair> compiledHeaders = new Set <>( ) ;
final List<NameValuePair> compiledHeaders = new ArrayList<> ( ) ;
stringContent_ = stringContent; statusCode_ = statusCode; statusMessage_ = statusMessage; headers_ = compileHeaders(headers, contentType); } private static List<NameValuePair> compileHeaders(final List<NameValuePair> headers, final String contentType) { <extra_id_0> if (headers != null) { compiledHeaders.addAll(headers); } if (contentType != null) { compiledHeaders.add(new NameValuePair(HttpHeader.CONTENT_TYPE, contentType)); }