Program: 112312
Project: 112312
Buggy source:
@SuppressWarnings("String_Node_Str") @Override protected void initialize() throws ServletException {
  super.initialize();
  myAppCtx=ContextLoaderListener.getCurrentWebApplicationContext();
  String implDesc=getInitParameter("String_Node_Str");
  String fhirVersionParam=getInitParameter("String_Node_Str");
  if (StringUtils.isBlank(fhirVersionParam)) {
    fhirVersionParam="String_Node_Str";
  }
  List<IResourceProvider> beans;
  JpaSystemProviderDstu1 systemProvider;
  IFhirSystemDao systemDao;
  ETagSupportEnum etagSupport;
  String baseUrlProperty;
switch (fhirVersionParam.trim().toUpperCase()) {
case "String_Node_Str":
{
      setFhirContext(FhirContext.forDstu1());
      beans=myAppCtx.getBean("String_Node_Str",List.class);
      systemProvider=myAppCtx.getBean("String_Node_Str",JpaSystemProviderDstu1.class);
      systemDao=myAppCtx.getBean("String_Node_Str",IFhirSystemDao.class);
      etagSupport=ETagSupportEnum.DISABLED;
      JpaConformanceProviderDstu1 confProvider=new JpaConformanceProviderDstu1(this,systemDao);
      confProvider.setImplementationDescription(implDesc);
      setServerConformanceProvider(confProvider);
      baseUrlProperty="String_Node_Str";
      break;
    }
case "String_Node_Str":
{
    setFhirContext(FhirContext.forDstu1());
    beans=myAppCtx.getBean("String_Node_Str",List.class);
    systemProvider=myAppCtx.getBean("String_Node_Str",JpaSystemProviderDstu1.class);
    systemDao=myAppCtx.getBean("String_Node_Str",IFhirSystemDao.class);
    etagSupport=ETagSupportEnum.DISABLED;
    JpaConformanceProviderDstu1 confProvider=new JpaConformanceProviderDstu1(this,systemDao);
    confProvider.setImplementationDescription(implDesc);
    setServerConformanceProvider(confProvider);
    baseUrlProperty="String_Node_Str";
    break;
  }
case "String_Node_Str":
{
  setFhirContext(FhirContext.forDstu2());
  beans=myAppCtx.getBean("String_Node_Str",List.class);
  systemProvider=myAppCtx.getBean("String_Node_Str",JpaSystemProviderDstu1.class);
  systemDao=myAppCtx.getBean("String_Node_Str",IFhirSystemDao.class);
  etagSupport=ETagSupportEnum.ENABLED;
  JpaConformanceProviderDstu2 confProvider=new JpaConformanceProviderDstu2(this,systemDao);
  confProvider.setImplementationDescription(implDesc);
  setServerConformanceProvider(confProvider);
  baseUrlProperty="String_Node_Str";
  break;
}
default :
throw new ServletException("String_Node_Str" + fhirVersionParam);
}
setETagSupport(etagSupport);
FhirContext ctx=getFhirContext();
ctx.setNarrativeGenerator(new DefaultThymeleafNarrativeGenerator());
for (IResourceProvider nextResourceProvider : beans) {
ourLog.info("String_Node_Str",nextResourceProvider.getResourceType().getSimpleName());
}
setResourceProviders(beans);
setPlainProviders(systemProvider);
setUseBrowserFriendlyContentTypes(true);
String baseUrl=System.getProperty(baseUrlProperty);
if (StringUtils.isBlank(baseUrl)) {
baseUrl=System.getProperty("String_Node_Str");
if (StringUtils.isBlank(baseUrl)) {
throw new ServletException("String_Node_Str" + baseUrlProperty);
}
}
setServerAddressStrategy(new MyHardcodedServerAddressStrategy(baseUrl));
setPagingProvider(new FifoMemoryPagingProvider(10));
LoggingInterceptor loggingInterceptor=new LoggingInterceptor();
loggingInterceptor.setLoggerName("String_Node_Str");
loggingInterceptor.setMessageFormat("String_Node_Str");
this.registerInterceptor(loggingInterceptor);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override protected void initialize() throws ServletException {
  super.initialize();
  myAppCtx=ContextLoaderListener.getCurrentWebApplicationContext();
  String implDesc=getInitParameter("String_Node_Str");
  String fhirVersionParam=getInitParameter("String_Node_Str");
  if (StringUtils.isBlank(fhirVersionParam)) {
    fhirVersionParam="String_Node_Str";
  }
  List<IResourceProvider> beans;
  JpaSystemProviderDstu1 systemProviderDstu1=null;
  JpaSystemProviderDstu2 systemProviderDstu2=null;
  IFhirSystemDao systemDao;
  ETagSupportEnum etagSupport;
  String baseUrlProperty;
switch (fhirVersionParam.trim().toUpperCase()) {
case "String_Node_Str":
{
      setFhirContext(FhirContext.forDstu1());
      beans=myAppCtx.getBean("String_Node_Str",List.class);
      systemProviderDstu1=myAppCtx.getBean("String_Node_Str",JpaSystemProviderDstu1.class);
      systemDao=myAppCtx.getBean("String_Node_Str",IFhirSystemDao.class);
      etagSupport=ETagSupportEnum.DISABLED;
      JpaConformanceProviderDstu1 confProvider=new JpaConformanceProviderDstu1(this,systemDao);
      confProvider.setImplementationDescription(implDesc);
      setServerConformanceProvider(confProvider);
      baseUrlProperty="String_Node_Str";
      break;
    }
case "String_Node_Str":
{
    setFhirContext(FhirContext.forDstu1());
    beans=myAppCtx.getBean("String_Node_Str",List.class);
    systemProviderDstu1=myAppCtx.getBean("String_Node_Str",JpaSystemProviderDstu1.class);
    systemDao=myAppCtx.getBean("String_Node_Str",IFhirSystemDao.class);
    etagSupport=ETagSupportEnum.DISABLED;
    JpaConformanceProviderDstu1 confProvider=new JpaConformanceProviderDstu1(this,systemDao);
    confProvider.setImplementationDescription(implDesc);
    setServerConformanceProvider(confProvider);
    baseUrlProperty="String_Node_Str";
    break;
  }
case "String_Node_Str":
{
  setFhirContext(FhirContext.forDstu2());
  beans=myAppCtx.getBean("String_Node_Str",List.class);
  systemProviderDstu2=myAppCtx.getBean("String_Node_Str",JpaSystemProviderDstu2.class);
  systemDao=myAppCtx.getBean("String_Node_Str",IFhirSystemDao.class);
  etagSupport=ETagSupportEnum.ENABLED;
  JpaConformanceProviderDstu2 confProvider=new JpaConformanceProviderDstu2(this,systemDao);
  confProvider.setImplementationDescription(implDesc);
  setServerConformanceProvider(confProvider);
  baseUrlProperty="String_Node_Str";
  break;
}
default :
throw new ServletException("String_Node_Str" + fhirVersionParam);
}
setETagSupport(etagSupport);
FhirContext ctx=getFhirContext();
ctx.setNarrativeGenerator(new DefaultThymeleafNarrativeGenerator());
for (IResourceProvider nextResourceProvider : beans) {
ourLog.info("String_Node_Str",nextResourceProvider.getResourceType().getSimpleName());
}
setResourceProviders(beans);
List provList=new ArrayList();
if (systemProviderDstu1 != null) provList.add(systemProviderDstu1);
if (systemProviderDstu2 != null) provList.add(systemProviderDstu2);
setPlainProviders(provList);
setUseBrowserFriendlyContentTypes(true);
String baseUrl=System.getProperty(baseUrlProperty);
if (StringUtils.isBlank(baseUrl)) {
baseUrl=System.getProperty("String_Node_Str");
if (StringUtils.isBlank(baseUrl)) {
throw new ServletException("String_Node_Str" + baseUrlProperty);
}
}
setServerAddressStrategy(new MyHardcodedServerAddressStrategy(baseUrl));
setPagingProvider(new FifoMemoryPagingProvider(10));
LoggingInterceptor loggingInterceptor=new LoggingInterceptor();
loggingInterceptor.setLoggerName("String_Node_Str");
loggingInterceptor.setMessageFormat("String_Node_Str");
this.registerInterceptor(loggingInterceptor);
}