/src/main/java/org/htmlunit/MockWebConnection.java
compiledHeaders.addAll( headers) ; if ( headers != null) {final List<NameValuePair> compiledHeaders = new ArrayList<>( ) ;
final List<NameValuePair> compiledHeaders = new ArrayList<> ( ) ; if ( headers != null ) { compiledHeaders.addAll ( headers ) ;
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 (contentType != null) { compiledHeaders.add(new NameValuePair(HttpHeader.CONTENT_TYPE, contentType)); } return compiledHeaders; }