Buggy code:
public List < BroadcasterListener > broadcasterListeners = Collections . synchronizedList ( new ArrayList < BroadcasterListener > ( ) ) ; protected String webSocketProcessorClassName = DefaultWebSocketProcessor . class . getName ( ) ; protected boolean webSocketProtocolInitialized = false ; protected EndpointMapper < AtmosphereFramework . AtmosphereHandlerWrapper > endpointMapper = new org . atmosphere . util . DefaultEndpointMapper < AtmosphereFramework . AtmosphereHandlerWrapper > ( ) ; protected String libPath = AtmosphereFramework . DEFAULT_LIB_PATH ; protected boolean isInit ; protected boolean sharedThreadPools = true ; protected final List < String > packages = new ArrayList < String > ( ) ; protected final LinkedList < String > annotationPackages = new LinkedList < String > ( ) ; protected boolean allowAllClassesScan = true ; protected boolean annotationFound = false ; protected boolean executeFirstSet = false ; protected AtmosphereObjectFactory < ? > objectFactory = new AtmosphereFramework . DefaultAtmosphereObjectFactory ( ) ; protected final AtomicBoolean isDestroyed = new AtomicBoolean ( ) ; protected boolean externalizeDestroy = false ; protected AnnotationProcessor annotationProcessor = null ; protected final List < String > excludedInterceptors = new ArrayList < String > ( ) ; protected final LinkedList < BroadcasterCacheListener > broadcasterCacheListeners = new LinkedList < BroadcasterCacheListener > ( ) ; protected final List < BroadcasterConfig . FilterManipulator > filterManipulators = new ArrayList < BroadcasterConfig . FilterManipulator > ( ) ; protected AtmosphereResourceFactory arFactory ; protected MetaBroadcaster metaBroadcaster ; protected AtmosphereResourceSessionFactory sessionFactory ; protected String defaultSerializerClassName ; protected Class < Serializer > defaultSerializerClass ; protected final List < AtmosphereFrameworkListener > frameworkListeners = new LinkedList < AtmosphereFrameworkListener > ( ) ; private UUIDProvider uuidProvider = new DefaultUUIDProvider ( ) ; public static final List < Class < ? extends AtmosphereInterceptor > > DEFAULT_ATMOSPHERE_INTERCEPTORS = new LinkedList ( ) { } ; public static final AtmosphereHandler REFLECTOR_ATMOSPHEREHANDLER = new AbstractReflectorAtmosphereHandler ( ) { @ Override public void onRequest ( AtmosphereResource resource ) throws IOException { } @ Override public void destroy ( ) { } } ; public void setAndConfigureAtmosphereResourceFactory ( AtmosphereResourceFactory arFactory ) { } public static final class AtmosphereHandlerWrapper { public final AtmosphereHandler atmosphereHandler ; public Broadcaster broadcaster ; public String mapping ; public final LinkedList < AtmosphereInterceptor > interceptors = new LinkedList < AtmosphereInterceptor > ( ) ; public boolean create ; public AtmosphereHandlerWrapper ( BroadcasterFactory broadcasterFactory , AtmosphereHandler atmosphereHandler , String mapping ) { } public AtmosphereHandlerWrapper ( AtmosphereHandler atmosphereHandler , Broadcaster broadcaster ) { } @ Override public String toString ( ) { } } public static enum MetaServiceAction { INSTALL ( new AtmosphereFramework . MetaServiceAction . InstallMetaServiceProcedure ( ) ) , EXCLUDE ( new AtmosphereFramework . MetaServiceAction . ExcludeMetaServiceProcedure ( ) ) ; private AtmosphereFramework . MetaServiceAction . MetaServiceProcedure procedure ; private MetaServiceAction ( final AtmosphereFramework . MetaServiceAction . MetaServiceProcedure p ) { } public void apply ( final AtmosphereFramework fwk , final Class < ? > clazz ) throws Exception { } private static interface MetaServiceProcedure { void apply ( final AtmosphereFramework fwk , final Class < ? > clazz ) throws Exception { } } private static class InstallMetaServiceProcedure implements AtmosphereFramework . MetaServiceAction . MetaServiceProcedure { @ Override public void apply ( final AtmosphereFramework fwk , final Class c ) throws Exception { } } private static class ExcludeMetaServiceProcedure implements AtmosphereFramework . MetaServiceAction . MetaServiceProcedure { @ Override public void apply ( final AtmosphereFramework fwk , final Class < ? > c ) { } } } public static class DefaultAtmosphereObjectFactory implements AtmosphereObjectFactory < Object > { public String toString ( ) { } @ Override public void configure ( AtmosphereConfig config ) { } @ Override public < T , U extends T > U newClassInstance ( Class < T > classType , Class < U > defaultType ) throws IllegalAccessException , InstantiationException { } @ Override public AtmosphereObjectFactory allowInjectionOf ( Object o ) { } } public AtmosphereFramework ( ) { } public AtmosphereFramework ( ServletConfig sc ) throws ServletException { } public AtmosphereFramework ( boolean isFilter , boolean autoDetectHandlers ) { } protected AtmosphereConfig newAtmosphereConfig ( ) { } private void populateBroadcasterType ( ) { } private void populateObjectFactoryType ( ) { } public AtmosphereFramework addAtmosphereHandler ( String mapping , AtmosphereHandler h , List < AtmosphereInterceptor > l ) { } public AtmosphereFramework addAtmosphereHandler ( String mapping , AtmosphereHandler h , Broadcaster broadcaster , List < AtmosphereInterceptor > l ) { } public AtmosphereFramework addAtmosphereHandler ( String mapping , AtmosphereHandler h , String broadcasterId , List < AtmosphereInterceptor > l ) { } protected AtmosphereFramework . AtmosphereHandlerWrapper createWrapperAndConfigureHandler ( AtmosphereHandler h , String mapping , List < AtmosphereInterceptor > l ) { } public AtmosphereFramework addAtmosphereHandler ( String mapping , AtmosphereHandler h ) { } private AtmosphereFramework addMapping ( String path , AtmosphereFramework . AtmosphereHandlerWrapper w ) { } public AtmosphereFramework addAtmosphereHandler ( String mapping , AtmosphereHandler h , String broadcasterId ) { } private void initServletProcessor ( AtmosphereHandler h ) { } public AtmosphereFramework addAtmosphereHandler ( String mapping , AtmosphereHandler h , Broadcaster broadcaster ) { } public AtmosphereFramework removeAtmosphereHandler ( String mapping ) { } public AtmosphereFramework removeAllAtmosphereHandler ( ) { } public AtmosphereFramework removeAllInitParams ( ) { } public AtmosphereFramework addInitParameter ( String name , String value ) { } protected void readSystemProperties ( ) { } public void patchContainer ( ) { } public AtmosphereFramework init ( ) { } public AtmosphereFramework init ( final ServletConfig sc ) throws ServletException { } protected void preventOOM ( ) { } public AtmosphereFramework init ( final ServletConfig sc , boolean wrap ) throws ServletException { } protected ServletConfig servletConfig ( final ServletConfig sc , boolean wrap ) { } public void reconfigureInitParams ( boolean reconfigureInitParams ) { } private void info ( ) { } protected void universe ( ) { } private void configureAnnotationPackages ( ) { } protected void analytics ( ) { if ( ! ( config . getInitParameter ( ANALYTICS , true ) ) ) return ; final String container = getServletContext ( ) . getServerInfo ( ) ; if ( allowAllClassesScan ) { Thread t = new Thread ( ) { public void run ( ) { try { AtmosphereFramework . logger . debug ( "Retrieving<seq2seq4repair_space>Atmosphere's<seq2seq4repair_space>latest<seq2seq4repair_space>version<seq2seq4repair_space>from<seq2seq4repair_space>http:////async-io.org//version.html" ) ; HttpURLConnection urlConnection = ( ( HttpURLConnection ) ( URI . create ( "http:////async-io.org//version.html" ) . toURL ( ) . openConnection ( ) ) ) ; urlConnection . setRequestProperty ( "User-Agent" , "Mozilla//5.0" ) ; urlConnection . setRequestProperty ( "Connection" , "keep-alive" ) ; urlConnection . setRequestProperty ( "Cache-Control" , "max-age=0" ) ; urlConnection . setRequestProperty ( "Accept" , "text//html,application//xhtml+xml,application//xml;q=0.9,*//*;q=0.8" ) ; urlConnection . setRequestProperty ( "Accept-Language" , "en-US,en;q=0.8" ) ; urlConnection . setRequestProperty ( "Accept-Charset" , "ISO-8859-1,utf-8;q=0.7,*;q=0.3" ) ; urlConnection . setRequestProperty ( "If-Modified-Since" , "ISO-8859-1,utf-8;q=0.7,*;q=0.3" ) ; urlConnection . setInstanceFollowRedirects ( true ) ; BufferedReader in = new BufferedReader ( new InputStreamReader ( urlConnection . getInputStream ( ) ) ) ; String inputLine ; String newVersion = Version . getRawVersion ( ) ; String clientVersion = "2.2.11" ; <START_BUG> String nextMajorRelease = "2.4.0" ; <END_BUG>

Fix:
String nextMajorRelease = null ;