Buggy code:
public void addEncodedArgument ( String name , String value , String metaData , String contentEncoding ) { } public void addEncodedArgument ( String name , String value , String metaData ) { } public void addNonEncodedArgument ( String name , String value , String metadata ) { } public void addArgument ( String name , String value ) { } public void addArgument ( String name , String value , String metadata ) { } public boolean hasArguments ( ) { } @ Override public void addTestElement ( TestElement el ) { } @ Override public void clearTestElementChildren ( ) { } public void setPort ( int value ) { } public static int getDefaultPort ( String protocol , int port ) { } public int getPortIfSpecified ( ) { } public boolean isProtocolDefaultPort ( ) { } public int getPort ( ) { } public void setDomain ( String value ) { } public String getDomain ( ) { } public void setConnectTimeout ( String value ) { } public int getConnectTimeout ( ) { } public void setResponseTimeout ( String value ) { } public int getResponseTimeout ( ) { } public String getProxyHost ( ) { } public int getProxyPortInt ( ) { } public String getProxyUser ( ) { } public String getProxyPass ( ) { } public void setArguments ( Arguments value ) { } public Arguments getArguments ( ) { } public void setPostBodyRaw ( boolean value ) { } public boolean getPostBodyRaw ( ) { } public void setAuthManager ( AuthManager value ) { } public AuthManager getAuthManager ( ) { } public void setHeaderManager ( HeaderManager value ) { } public HeaderManager getHeaderManager ( ) { } public void setCookieManager ( CookieManager value ) { } public CookieManager getCookieManager ( ) { } public void setCacheManager ( CacheManager value ) { } public CacheManager getCacheManager ( ) { } public boolean isImageParser ( ) { } public void setImageParser ( boolean parseImages ) { } public String getEmbeddedUrlRE ( ) { } public void setEmbeddedUrlRE ( String regex ) { } protected HTTPSampleResult errorResult ( Throwable e , HTTPSampleResult res ) { } private static final String HTTP_PREFIX = ( PROTOCOL_HTTP ) + ":////" ; private static final String HTTPS_PREFIX = ( PROTOCOL_HTTPS ) + ":////" ; private static final boolean SEPARATE_CONTAINER = JMeterUtils . getPropDefault ( "httpsampler.separate.container" , true ) ; public java . net . URL getUrl ( ) throws MalformedURLException { } public String getQueryString ( ) { } public String getQueryString ( String contentEncoding ) { } public void parseArguments ( String queryString , String contentEncoding ) { } public void parseArguments ( String queryString ) { } @ Override public String toString ( ) { } public SampleResult sample ( Entry e ) { } public SampleResult sample ( ) { } protected abstract HTTPSampleResult sample ( java . net . URL u , String method , boolean areFollowingRedirect , int depth ) { } protected HTTPSampleResult downloadPageResources ( HTTPSampleResult res , HTTPSampleResult container , int frameDepth ) { } private String getParserClass ( HTTPSampleResult res ) { } protected String encodeSpaces ( String path ) { } public void testEnded ( ) { } public void testEnded ( String host ) { } public void testIterationStart ( LoopIterationEvent event ) { } protected void notifySSLContextWasReset ( ) { } public void testStarted ( ) { } public void testStarted ( String host ) { } @ Override public Object clone ( ) { } protected HTTPSampleResult followRedirects ( HTTPSampleResult res , int frameDepth ) { } protected HTTPSampleResult resultProcessing ( boolean areFollowingRedirect , int frameDepth , HTTPSampleResult res ) { } protected boolean isSuccessCode ( int code ) { } protected static String encodeBackSlashes ( String value ) { } private void setHTTPFileArgs ( HTTPFileArgs value ) { } private HTTPFileArgs getHTTPFileArgs ( ) { } public HTTPFileArg [ ] getHTTPFiles ( ) { } public int getHTTPFileCount ( ) { } public void setHTTPFiles ( HTTPFileArg [ ] files ) { } public static String [ ] getValidMethodsAsArray ( ) { <START_BUG> return HTTPSamplerBase . METHODLIST . toArray ( new String [ 0 ] ) ; <END_BUG> } public static boolean isSecure ( String protocol ) { } public static boolean isSecure ( java . net . URL url ) { } public void threadStarted ( ) { } public void threadFinished ( ) { } public byte [ ] readResponse ( SampleResult sampleResult , InputStream in , int length ) throws IOException { } void mergeFileProperties ( ) { } public void setIpSource ( String value ) { } public String getIpSource ( ) { } public boolean isConcurrentDwn ( ) { } public void setConcurrentDwn ( boolean concurrentDwn ) { } public String getConcurrentPool ( ) { } public void setConcurrentPool ( String poolSize ) { } private static class ASyncSample implements Callable < HTTPSamplerBase . AsynSamplerResultHolder > { private final java . net . URL url ; private final String method ; private final boolean areFollowingRedirect ; private final int depth ; private final HTTPSamplerBase sampler ; private final JMeterContext jmeterContextOfParentThread ; ASyncSample ( java . net . URL url , String method , boolean areFollowingRedirect , int depth , CookieManager cookieManager , HTTPSamplerBase base ) { } public HTTPSamplerBase . AsynSamplerResultHolder call ( ) { } } private static class CleanerThread extends Thread { private List < HTTPSamplerBase > samplersToNotify = new ArrayList < HTTPSamplerBase > ( ) ; public CleanerThread ( Runnable runnable ) { } public void notifyThreadEnd ( ) { } public void registerSamplerForEndNotification ( HTTPSamplerBase sampler ) { } } private static class AsynSamplerResultHolder { private HTTPSampleResult result ; private CollectionProperty cookies ; public AsynSamplerResultHolder ( HTTPSampleResult result , CollectionProperty cookies ) { } public HTTPSampleResult getResult ( ) { } public CollectionProperty getCookies ( ) { } } @ Override public List < String > getSearchableTokens ( ) throws Exception { } }

Fix:
return HTTPSamplerBase . METHODLIST . toArray ( new String [ HTTPSamplerBase . METHODLIST . size ( ) ] ) ;