Program: 25300
Project: 25300
Buggy source:
@SuppressWarnings("String_Node_Str") @Override public synchronized void init(HiveConf hiveConf){
  if (getServiceState() == STATE.NOTINITED) {
    conf=hiveConf;
    conf.addResource("String_Node_Str");
    conf.addResource("String_Node_Str");
    conf.setVar(HiveConf.ConfVars.HIVE_SESSION_IMPL_CLASSNAME,LensSessionImpl.class.getCanonicalName());
    serviceMode=conf.getEnum(LensConfConstants.SERVER_MODE,SERVICE_MODE.valueOf(LensConfConstants.DEFAULT_SERVER_MODE));
    cliService=new CLIService();
    addService(cliService);
    addService(new EventServiceImpl(LensEventService.NAME));
    addService(new MetricsServiceImpl(MetricsService.NAME));
    addService(new StatisticsService(StatisticsService.STATS_SVC_NAME));
    String[] serviceNames=conf.getStrings(LensConfConstants.SERVICE_NAMES);
    for (    String sName : serviceNames) {
      try {
        String serviceClassName=conf.get(LensConfConstants.getServiceImplConfKey(sName));
        if (StringUtils.isBlank(serviceClassName)) {
          LOG.warn("String_Node_Str" + sName + "String_Node_Str"+ serviceClassName);
          continue;
        }
        Class<?> cls=Class.forName(serviceClassName);
        if (LensService.class.isAssignableFrom(cls)) {
          Class<? extends LensService> serviceClass=(Class<? extends LensService>)cls;
          LOG.info("String_Node_Str" + sName + "String_Node_Str"+ serviceClass);
          Constructor<?> constructor=serviceClass.getConstructor(CLIService.class);
          LensService service=(LensService)constructor.newInstance(new Object[]{cliService});
          addService(service);
          lensServices.add(service);
        }
 else         if (Service.class.isAssignableFrom(cls)) {
          Class<? extends Service> serviceClass=(Class<? extends Service>)cls;
          Service svc=serviceClass.newInstance();
          addService(svc);
        }
 else {
          LOG.warn("String_Node_Str" + serviceClassName + "String_Node_Str"+ sName);
        }
      }
 catch (      Exception e) {
        LOG.warn("String_Node_Str" + sName,e);
        throw new RuntimeException("String_Node_Str" + sName,e);
      }
    }
    for (    Service svc : getServices()) {
      services.put(svc.getName(),svc);
    }
    super.init(conf);
    String persistPathStr=conf.get(LensConfConstants.SERVER_STATE_PERSIST_LOCATION,LensConfConstants.DEFAULT_SERVER_STATE_PERSIST_LOCATION);
    persistDir=new Path(persistPathStr);
    try {
      Configuration configuration=new Configuration(conf);
      configuration.setBoolean(FS_AUTOMATIC_CLOSE,false);
      persistenceFS=FileSystem.newInstance(persistDir.toUri(),conf);
      setupPersistedState();
    }
 catch (    Exception e) {
      LOG.error("String_Node_Str",e);
      throw new RuntimeException("String_Node_Str",e);
    }
    snapShotInterval=conf.getLong(LensConfConstants.SERVER_SNAPSHOT_INTERVAL,LensConfConstants.DEFAULT_SERVER_SNAPSHOT_INTERVAL);
    LOG.info("String_Node_Str" + services.keySet().toString());
    UserConfigLoaderFactory.init(conf);
    timer=new Timer("String_Node_Str",true);
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") @Override public synchronized void init(HiveConf hiveConf){
  if (getServiceState() == STATE.NOTINITED) {
    conf=hiveConf;
    conf.addResource("String_Node_Str");
    conf.addResource("String_Node_Str");
    conf.setVar(HiveConf.ConfVars.HIVE_SESSION_IMPL_CLASSNAME,LensSessionImpl.class.getCanonicalName());
    serviceMode=conf.getEnum(LensConfConstants.SERVER_MODE,SERVICE_MODE.valueOf(LensConfConstants.DEFAULT_SERVER_MODE));
    cliService=new CLIService();
    addService(cliService);
    addService(new EventServiceImpl(LensEventService.NAME));
    addService(new MetricsServiceImpl(MetricsService.NAME));
    addService(new StatisticsService(StatisticsService.STATS_SVC_NAME));
    String[] serviceNames=conf.getStrings(LensConfConstants.SERVICE_NAMES);
    for (    String sName : serviceNames) {
      try {
        String serviceClassName=conf.get(LensConfConstants.getServiceImplConfKey(sName));
        if (StringUtils.isBlank(serviceClassName)) {
          LOG.warn("String_Node_Str" + sName + "String_Node_Str"+ serviceClassName);
          continue;
        }
        Class<?> cls=Class.forName(serviceClassName);
        if (LensService.class.isAssignableFrom(cls)) {
          Class<? extends LensService> serviceClass=(Class<? extends LensService>)cls;
          LOG.info("String_Node_Str" + sName + "String_Node_Str"+ serviceClass);
          Constructor<?> constructor=serviceClass.getConstructor(CLIService.class);
          LensService service=(LensService)constructor.newInstance(new Object[]{cliService});
          addService(service);
          lensServices.add(service);
        }
 else         if (Service.class.isAssignableFrom(cls)) {
          Class<? extends Service> serviceClass=(Class<? extends Service>)cls;
          Service svc=serviceClass.newInstance();
          addService(svc);
        }
 else {
          LOG.warn("String_Node_Str" + serviceClassName + "String_Node_Str"+ sName);
        }
      }
 catch (      Exception e) {
        LOG.warn("String_Node_Str" + sName,e);
        throw new RuntimeException("String_Node_Str" + sName,e);
      }
    }
    for (    Service svc : getServices()) {
      services.put(svc.getName(),svc);
    }
    super.init(conf);
    String persistPathStr=conf.get(LensConfConstants.SERVER_STATE_PERSIST_LOCATION,LensConfConstants.DEFAULT_SERVER_STATE_PERSIST_LOCATION);
    persistDir=new Path(persistPathStr);
    try {
      Configuration configuration=new Configuration(conf);
      configuration.setBoolean(FS_AUTOMATIC_CLOSE,false);
      persistenceFS=FileSystem.newInstance(persistDir.toUri(),configuration);
      setupPersistedState();
    }
 catch (    Exception e) {
      LOG.error("String_Node_Str",e);
      throw new RuntimeException("String_Node_Str",e);
    }
    snapShotInterval=conf.getLong(LensConfConstants.SERVER_SNAPSHOT_INTERVAL,LensConfConstants.DEFAULT_SERVER_SNAPSHOT_INTERVAL);
    LOG.info("String_Node_Str" + services.keySet().toString());
    UserConfigLoaderFactory.init(conf);
    timer=new Timer("String_Node_Str",true);
  }
}