<commit_before>package org.kohsuke.stapler;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.Writer;
import java.net.URL;
import java.util.Locale;

import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;

import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import org.kohsuke.stapler.export.Flavor;

import net.sf.json.JsonConfig;

/**
 * A basic wrapper for a StaplerResponse, e.g. in order to override some method.
 * This simply delegates all method calls to the wrapped instance.
 * 
 * @since TODO
 */
@SuppressWarnings("deprecation")
public abstract class StaplerResponseWrapper implements StaplerResponse {
    private final StaplerResponse wrapped;
    
    public StaplerResponseWrapper(StaplerResponse wrapped) {
        this.wrapped = wrapped;
    }
    
    /**
     * Returns the wrapped instance
     */
    public StaplerResponse getWrapped() {
        return wrapped;
    }

    /** {@inheritDoc} */
    @Override
    public ServletOutputStream getOutputStream() throws IOException {
        return getWrapped().getOutputStream();
    }<commit_msg>Add @Nonnull to StaplerResponseWrapper#getWrapped()<commit_after>package org.kohsuke.stapler;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.Writer;
import java.net.URL;
import java.util.Locale;

import javax.annotation.Nonnull;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;

import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import org.kohsuke.stapler.export.Flavor;

import net.sf.json.JsonConfig;

/**
 * A basic wrapper for a StaplerResponse, e.g. in order to override some method.
 * This simply delegates all method calls to the wrapped instance.
 * 
 * @since TODO
 */
@SuppressWarnings("deprecation")
public abstract class StaplerResponseWrapper implements StaplerResponse {
    private final StaplerResponse wrapped;
    
    public StaplerResponseWrapper(StaplerResponse wrapped) {
        this.wrapped = wrapped;
    }
    
    /**
     * Returns the wrapped instance
     */
    @Nonnull
    public StaplerResponse getWrapped() {
        return wrapped;
    }

    /** {@inheritDoc} */
    @Override
    public ServletOutputStream getOutputStream() throws IOException {
        return getWrapped().getOutputStream();
    }
{'fraction_non_alphanumeric': 0.09125188536953242, 'fraction_numerical': 0.0, 'mean_word_length': 4.053333333333334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1463326', 'n_tokens_mistral': 773, 'n_tokens_neox': 744, 'n_words': 188}