nus-yam/ex-repair huggingface dataset:
Program: 62655
Project: 62655
Buggy source:
public DefaultSyncCache(CacheConfiguration cacheConfiguration,ConversionService<?> conversionService){
  this.cacheConfiguration=cacheConfiguration;
  this.conversionService=conversionService;
  this.cache=buildCache(cacheConfiguration);
}

Fixed version (ground truth):
/** 
 * Construct a sync cache implementation with given configurations.
 * @param cacheConfiguration The cache configurations
 * @param conversionService To convert the value from the cache into given required type
 */
public DefaultSyncCache(CacheConfiguration cacheConfiguration,ConversionService<?> conversionService){
  this.cacheConfiguration=cacheConfiguration;
  this.conversionService=conversionService;
  this.cache=buildCache(cacheConfiguration);
}
Program: 62656
Project: 62656
Buggy source:
protected com.github.benmanes.caffeine.cache.Cache buildCache(CacheConfiguration cacheConfiguration){
  Caffeine<Object,Object> builder=Caffeine.newBuilder();
  cacheConfiguration.getExpireAfterAccess().ifPresent(duration -> builder.expireAfterAccess(duration.toMillis(),TimeUnit.MILLISECONDS));
  cacheConfiguration.getExpireAfterWrite().ifPresent(duration -> builder.expireAfterWrite(duration.toMillis(),TimeUnit.MILLISECONDS));
  cacheConfiguration.getInitialCapacity().ifPresent(builder::initialCapacity);
  cacheConfiguration.getMaximumSize().ifPresent(builder::maximumSize);
  cacheConfiguration.getMaximumWeight().ifPresent(builder::maximumWeight);
  return builder.build();
}

Fixed version (ground truth):
/** 
 * Build a cache from the given configurations.
 * @param cacheConfiguration The cache configurations
 * @return cache
 */
protected com.github.benmanes.caffeine.cache.Cache buildCache(CacheConfiguration cacheConfiguration){
  Caffeine<Object,Object> builder=Caffeine.newBuilder();
  cacheConfiguration.getExpireAfterAccess().ifPresent(duration -> builder.expireAfterAccess(duration.toMillis(),TimeUnit.MILLISECONDS));
  cacheConfiguration.getExpireAfterWrite().ifPresent(duration -> builder.expireAfterWrite(duration.toMillis(),TimeUnit.MILLISECONDS));
  cacheConfiguration.getInitialCapacity().ifPresent(builder::initialCapacity);
  cacheConfiguration.getMaximumSize().ifPresent(builder::maximumSize);
  cacheConfiguration.getMaximumWeight().ifPresent(builder::maximumWeight);
  return builder.build();
}
Program: 62657
Project: 62657
Buggy source:
@Internal void cleanUp(){
  sessions.cleanUp();
}

Fixed version (ground truth):
/** 
 * Performs any pending maintenance operations needed by the cache.
 */
@Internal void cleanUp(){
  sessions.cleanUp();
}
Program: 62658
Project: 62658
Buggy source:
@Override public CompletableFuture<InMemorySession> save(InMemorySession session){
  if (session == null)   throw new IllegalArgumentException("String_Node_Str");
  String id=session.getId();
  session.setNew(false);
  InMemorySession existing=sessions.getIfPresent(id);
  if (session != existing) {
    sessions.put(id,session);
    if (existing == null) {
      eventPublisher.publishEvent(new SessionCreatedEvent(session));
    }
  }
  return CompletableFuture.completedFuture(session);
}

Fixed version (ground truth):
@Override public CompletableFuture<InMemorySession> save(InMemorySession session){
  if (session == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  String id=session.getId();
  session.setNew(false);
  InMemorySession existing=sessions.getIfPresent(id);
  if (session != existing) {
    sessions.put(id,session);
    if (existing == null) {
      eventPublisher.publishEvent(new SessionCreatedEvent(session));
    }
  }
  return CompletableFuture.completedFuture(session);
}
Program: 62659
Project: 62659
Buggy source:
public InMemorySessionStore(SessionIdGenerator sessionIdGenerator,SessionConfiguration sessionConfiguration,ApplicationEventPublisher eventPublisher){
  this.sessionIdGenerator=sessionIdGenerator;
  this.eventPublisher=eventPublisher;
  this.sessionConfiguration=sessionConfiguration;
  this.sessions=newSessionCache(sessionConfiguration);
}

Fixed version (ground truth):
/** 
 * Constructor.
 * @param sessionIdGenerator The session id generator
 * @param sessionConfiguration The sessions configuration
 * @param eventPublisher The application event publisher
 */
public InMemorySessionStore(SessionIdGenerator sessionIdGenerator,SessionConfiguration sessionConfiguration,ApplicationEventPublisher eventPublisher){
  this.sessionIdGenerator=sessionIdGenerator;
  this.eventPublisher=eventPublisher;
  this.sessionConfiguration=sessionConfiguration;
  this.sessions=newSessionCache(sessionConfiguration);
}
Program: 62660
Project: 62660
Buggy source:
protected Cache<String,InMemorySession> newSessionCache(SessionConfiguration configuration){
  Caffeine<String,InMemorySession> builder=Caffeine.newBuilder().removalListener(newRemovalListener()).expireAfter(newExpiry());
  configuration.getMaxActiveSessions().ifPresent(builder::maximumSize);
  return builder.build();
}

Fixed version (ground truth):
/** 
 * Creates a new session cache.
 * @param configuration The session configuration
 * @return The new cache
 */
protected Cache<String,InMemorySession> newSessionCache(SessionConfiguration configuration){
  Caffeine<String,InMemorySession> builder=Caffeine.newBuilder().removalListener(newRemovalListener()).expireAfter(newExpiry());
  configuration.getMaxActiveSessions().ifPresent(builder::maximumSize);
  return builder.build();
}
Program: 62661
Project: 62661
Buggy source:
private RemovalListener<String,Session> newRemovalListener(){
  return (key,value,cause) -> {
switch (cause) {
case REPLACED:
      eventPublisher.publishEvent(new SessionDestroyedEvent(value));
    break;
case SIZE:
case EXPIRED:
  eventPublisher.publishEvent(new SessionExpiredEvent(value));
break;
case EXPLICIT:
eventPublisher.publishEvent(new SessionDeletedEvent(value));
break;
case COLLECTED:
throw new IllegalStateException("String_Node_Str");
}
}
;
}

Fixed version (ground truth):
private RemovalListener<String,Session> newRemovalListener(){
  return (key,value,cause) -> {
switch (cause) {
case REPLACED:
      eventPublisher.publishEvent(new SessionDestroyedEvent(value));
    break;
case SIZE:
case EXPIRED:
  eventPublisher.publishEvent(new SessionExpiredEvent(value));
break;
case EXPLICIT:
eventPublisher.publishEvent(new SessionDeletedEvent(value));
break;
default :
throw new IllegalStateException("String_Node_Str");
}
}
;
}
Program: 62662
Project: 62662
Buggy source:
public HttpCall(HttpClient httpClient,URI endpoint,boolean compressionEnabled,List<byte[]> encodedSpans){
  this.httpClient=httpClient;
  this.endpoint=endpoint;
  this.compressionEnabled=compressionEnabled;
  this.encodedSpans=encodedSpans;
}

Fixed version (ground truth):
HttpCall(HttpClient httpClient,URI endpoint,boolean compressionEnabled,List<byte[]> encodedSpans){
  this.httpClient=httpClient;
  this.endpoint=endpoint;
  this.compressionEnabled=compressionEnabled;
  this.encodedSpans=encodedSpans;
}
Program: 62663
Project: 62663
Buggy source:
public Builder(HttpClientConfiguration clientConfiguration){
  this.clientConfiguration=clientConfiguration;
}

Fixed version (ground truth):
/** 
 * Initialize the builder with HTTP client configurations.
 * @param clientConfiguration The HTTP client configuration
 */
public Builder(HttpClientConfiguration clientConfiguration){
  this.clientConfiguration=clientConfiguration;
}
Program: 62664
Project: 62664
Buggy source:
HttpHeadersTextMap(HttpHeaders headers){
  this.headers=headers;
}

Fixed version (ground truth):
/** 
 * Initialize headers.
 * @param headers The HTTP headers
 */
HttpHeadersTextMap(HttpHeaders headers){
  this.headers=headers;
}
Program: 62665
Project: 62665
Buggy source:
public OpenTracingClientFilter(Tracer tracer){
  super(tracer);
}

Fixed version (ground truth):
/** 
 * Initialize the open tracing client filter with tracer.
 * @param tracer The tracer for span creation and configuring across arbitrary transports
 */
public OpenTracingClientFilter(Tracer tracer){
  super(tracer);
}
Program: 62666
Project: 62666
Buggy source:
@Inject public TracingHystrixConcurrentStrategy(Tracer tracer,@Nullable HystrixConcurrencyStrategy hystrixConcurrencyStrategy){
  this.delegate=hystrixConcurrencyStrategy != null ? hystrixConcurrencyStrategy : HystrixConcurrencyStrategyDefault.getInstance();
  this.tracer=tracer;
}

Fixed version (ground truth):
/** 
 * Creates enhanced   {@link HystrixConcurrencyStrategy} for tracing.
 * @param tracer For span creation and propagation across arbitrary transports
 * @param hystrixConcurrencyStrategy Different behavior or implementations for concurrency related aspects of the system with default implementations
 */
@Inject public TracingHystrixConcurrentStrategy(Tracer tracer,@Nullable HystrixConcurrencyStrategy hystrixConcurrencyStrategy){
  this.delegate=hystrixConcurrencyStrategy != null ? hystrixConcurrencyStrategy : HystrixConcurrencyStrategyDefault.getInstance();
  this.tracer=tracer;
}
Program: 62667
Project: 62667
Buggy source:
@PostConstruct void init(TracingRunnableInstrumenter instrumenter){
  if (instrumenter != null) {
    Function<? super Runnable,? extends Runnable> existing=RxJavaPlugins.getScheduleHandler();
    if (existing != null && !(existing instanceof TracingRunnableInstrumenter)) {
      RxJavaPlugins.setScheduleHandler(runnable -> instrumenter.apply(existing.apply(runnable)));
    }
 else {
      RxJavaPlugins.setScheduleHandler(instrumenter::apply);
    }
  }
}

Fixed version (ground truth):
/** 
 * Initialize RxJava2 instrumentation.
 * @param instrumenter A function that instruments an existing Runnable with {@link io.micronaut.tracing.instrument.util.TracingRunnable}
 */
@PostConstruct void init(TracingRunnableInstrumenter instrumenter){
  if (instrumenter != null) {
    Function<? super Runnable,? extends Runnable> existing=RxJavaPlugins.getScheduleHandler();
    if (existing != null && !(existing instanceof TracingRunnableInstrumenter)) {
      RxJavaPlugins.setScheduleHandler(runnable -> instrumenter.apply(existing.apply(runnable)));
    }
 else {
      RxJavaPlugins.setScheduleHandler(instrumenter::apply);
    }
  }
}
Program: 62668
Project: 62668
Buggy source:
public OpenTracingServerFilter(Tracer tracer){
  super(tracer);
}

Fixed version (ground truth):
/** 
 * Creates an HTTP server instrumentation filter.
 * @param tracer For span creation and propagation across transport
 */
public OpenTracingServerFilter(Tracer tracer){
  super(tracer);
}
Program: 62669
Project: 62669
Buggy source:
@Override public void visitSetterInjectionPoint(Object declaringType,io.micronaut.inject.annotation.AnnotationValue qualifierType,boolean requiresReflection,Object fieldType,String fieldName,String setterName,Map<String,Object> genericTypes){
  deferredInjectionPoints.add(() -> proxyBeanDefinitionWriter.visitSetterInjectionPoint(declaringType,qualifierType,requiresReflection,fieldType,fieldName,setterName,genericTypes));
}

Fixed version (ground truth):
@Override public void visitSetterInjectionPoint(Object declaringType,AnnotationMetadata fieldMetadata,boolean requiresReflection,Object fieldType,String fieldName,String setterName,Map<String,Object> genericTypes){
  deferredInjectionPoints.add(() -> proxyBeanDefinitionWriter.visitSetterInjectionPoint(declaringType,fieldMetadata,requiresReflection,fieldType,fieldName,setterName,genericTypes));
}
Program: 62670
Project: 62670
Buggy source:
/** 
 * Intercepts an execution from a declared   {@link Around} advice. The implementation can either call {@link InvocationContext#proceed()} to return the original value or provide a replacement value
 * @param context The interception context
 */
R intercept(InvocationContext<T,R> context);

Fixed version (ground truth):
/** 
 * Intercepts an execution from a declared   {@link Around} advice. The implementation can either call {@link InvocationContext#proceed()} to return the original value or provide a replacement value
 * @param context The interception context
 * @return result type
 */
R intercept(InvocationContext<T,R> context);
Program: 62671
Project: 62671
Buggy source:
/** 
 * Proceeds with the invocation using the given interceptor as a position to start from. Mainly useful for   {@link Introduction} advise where you want toinvoke the target multiple times or where you want to repeat the entire chain.
 * @param from The interceptor to start from (note: will not be included in the execution)
 * @return The return value of the method
 */
R proceed(Interceptor from) throws RuntimeException ;

Fixed version (ground truth):
/** 
 * Proceeds with the invocation using the given interceptor as a position to start from. Mainly useful for   {@link Introduction} advise where you want toinvoke the target multiple times or where you want to repeat the entire chain.
 * @param from The interceptor to start from (note: will not be included in the execution)
 * @return The return value of the method
 * @throws RuntimeException chain may throw RTE
 */
R proceed(Interceptor from) throws RuntimeException ;
Program: 62672
Project: 62672
Buggy source:
public CompletedFileUpload(io.netty.handler.codec.http.multipart.FileUpload fileUpload){
  this.fileUpload=fileUpload;
}

Fixed version (ground truth):
public CompletedFileUpload(FileUpload fileUpload){
  this.fileUpload=fileUpload;
  fileUpload.retain();
}
Program: 62673
Project: 62673
Buggy source:
@Override public ByteBuffer getByteBuffer() throws IOException {
  return fileUpload.getByteBuf().nioBuffer();
}

Fixed version (ground truth):
@Override public ByteBuffer getByteBuffer() throws IOException {
  ByteBuf byteBuf=fileUpload.getByteBuf();
  try {
    return byteBuf.nioBuffer();
  }
  finally {
    byteBuf.release();
  }
}
Program: 62674
Project: 62674
Buggy source:
@Override public InputStream getInputStream() throws IOException {
  return new ByteBufInputStream((fileUpload.getByteBuf()));
}

Fixed version (ground truth):
@Override public InputStream getInputStream() throws IOException {
  return new ByteBufInputStream(fileUpload.getByteBuf(),true);
}
Program: 62675
Project: 62675
Buggy source:
@Override public byte[] getBytes() throws IOException {
  return fileUpload.getByteBuf().array();
}

Fixed version (ground truth):
@Override public byte[] getBytes() throws IOException {
  ByteBuf byteBuf=fileUpload.getByteBuf();
  try {
    return ByteBufUtil.getBytes(byteBuf);
  }
  finally {
    byteBuf.release();
  }
}
Program: 62676
Project: 62676
Buggy source:
@Override protected void doOnComplete(){
  if (!isComplete()) {
    super.doOnComplete();
  }
}

Fixed version (ground truth):
@Override protected void doOnComplete(){
  super.doOnComplete();
}
Program: 62677
Project: 62677
Buggy source:
@Override public InputStream getInputStream() throws IOException {
  return new ByteBufInputStream(fileUpload.getByteBuf());
}

Fixed version (ground truth):
@Override public InputStream getInputStream() throws IOException {
  return new ByteBufInputStream(fileUpload.getByteBuf(),true);
}
Program: 62678
Project: 62678
Buggy source:
/** 
 * Gets the content of this part as an <tt>InputStream</tt>
 * @return The content of this part as an <tt>InputStream</tt>
 * @throws IOException If an error occurs in retrieving the contetas an <tt>InputStream</tt>
 */
InputStream getInputStream() throws IOException ;

Fixed version (ground truth):
/** 
 * Gets the content of this part as an <tt>InputStream</tt>
 * @return The content of this part as an <tt>InputStream</tt>
 * @throws IOException If an error occurs in retrieving the contentas an <tt>InputStream</tt>
 */
InputStream getInputStream() throws IOException ;
Program: 62679
Project: 62679
Buggy source:
/** 
 * Deletes the underlying storage for a file item, including deleting any associated temporary disk file.
 */
Publisher<Boolean> delete();

Fixed version (ground truth):
/** 
 * Deletes the underlying storage for a file item, including deleting any associated temporary disk file.
 * @return A {@link Publisher} that outputs whether the delete was successful
 */
Publisher<Boolean> delete();
Program: 62681
Project: 62681
Buggy source:
/** 
 * Obtains a resource URL
 * @param path The path
 * @return An optional resource
 */
Optional<URL> getResource(String path);

Fixed version (ground truth):
default Optional<URL> getResource(String path){
  URL resource=getClassLoader().getResource(path);
  if (resource != null) {
    return Optional.of(resource);
  }
  return Optional.empty();
}
Program: 62682
Project: 62682
Buggy source:
/** 
 * Obtains a stream of resource URLs
 * @param path The path
 * @return A resource stream
 */
Stream<URL> getResources(String path);

Fixed version (ground truth):
default Stream<URL> getResources(String fileName){
  Enumeration<URL> all;
  try {
    all=getClassLoader().getResources(fileName);
  }
 catch (  IOException e) {
    return Stream.empty();
  }
  Stream.Builder<URL> builder=Stream.builder();
  while (all.hasMoreElements()) {
    URL url=all.nextElement();
    builder.accept(url);
  }
  return builder.build();
}
Program: 62683
Project: 62683
Buggy source:
public NodeEntry getNode(){
  return node;
}

Fixed version (ground truth):
/** 
 * @return The node for this health entry
 */
public NodeEntry getNode(){
  return node;
}
Program: 62684
Project: 62684
Buggy source:
@Get public List<Book> index(){
  return Arrays.asList(new Book("String_Node_Str"),new Book("String_Node_Str"));
}

Fixed version (ground truth):
@Get @Cacheable("String_Node_Str") public List<Book> index(){
  return Arrays.asList(new Book("String_Node_Str"),new Book("String_Node_Str"));
}
Program: 62686
Project: 62686
Buggy source:
@Override public Object visitVariable(VariableElement variable,Object o){
  if (modelUtils.isStatic(variable)) {
    return null;
  }
  if (variable.getKind() != FIELD)   return null;
  boolean isInjected=annotationUtils.hasStereotype(variable,Inject.class);
  boolean isValue=!isInjected && (annotationUtils.hasStereotype(variable,Value.class));
  if (isInjected || isValue) {
    BeanDefinitionVisitor writer=beanDefinitionWriters.get(this.concreteClass.getQualifiedName());
    Object qualifierRef=annotationUtils.resolveQualifier(variable);
    boolean isPrivate=modelUtils.isPrivate(variable);
    boolean requiresReflection=isPrivate;
    if (!writer.isValidated() && annotationUtils.hasStereotype(variable,"String_Node_Str")) {
      writer.setValidated(true);
    }
    Name fieldName=variable.getSimpleName();
    TypeMirror type=variable.asType();
    Object fieldType=modelUtils.resolveTypeReference(type);
    TypeElement declaringClass=modelUtils.classElementFor(variable);
    if (isValue) {
      writer.visitFieldValue(declaringClass.getQualifiedName().toString(),qualifierRef,requiresReflection,fieldType,fieldName.toString(),isConfigurationPropertiesType);
    }
 else {
      writer.visitFieldInjectionPoint(declaringClass.getQualifiedName().toString(),qualifierRef,requiresReflection,fieldType,fieldName.toString());
    }
  }
  return null;
}

Fixed version (ground truth):
@Override public Object visitVariable(VariableElement variable,Object o){
  if (modelUtils.isStatic(variable)) {
    return null;
  }
  if (variable.getKind() != FIELD)   return null;
  boolean isInjected=annotationUtils.hasStereotype(variable,Inject.class);
  boolean isValue=!isInjected && (annotationUtils.hasStereotype(variable,Value.class));
  if (isInjected || isValue) {
    BeanDefinitionVisitor writer=beanDefinitionWriters.get(this.concreteClass.getQualifiedName());
    TypeElement declaringClass=modelUtils.classElementFor(variable);
    Object qualifierRef=annotationUtils.resolveQualifier(variable);
    boolean isPrivate=modelUtils.isPrivate(variable);
    boolean requiresReflection=isPrivate || modelUtils.isInheritedAndNotPublic(this.concreteClass,declaringClass,variable);
    if (!writer.isValidated() && annotationUtils.hasStereotype(variable,"String_Node_Str")) {
      writer.setValidated(true);
    }
    Name fieldName=variable.getSimpleName();
    TypeMirror type=variable.asType();
    Object fieldType=modelUtils.resolveTypeReference(type);
    if (isValue) {
      writer.visitFieldValue(declaringClass.getQualifiedName().toString(),qualifierRef,requiresReflection,fieldType,fieldName.toString(),isConfigurationPropertiesType);
    }
 else {
      writer.visitFieldInjectionPoint(declaringClass.getQualifiedName().toString(),qualifierRef,requiresReflection,fieldType,fieldName.toString());
    }
  }
  return null;
}
Program: 62687
Project: 62687
Buggy source:
private ExecutableElement findOverriddenMethod(ExecutableElement executableElement){
  ExecutableElement overridden=null;
  Element enclosingElement=executableElement.getEnclosingElement();
  if (enclosingElement instanceof TypeElement) {
    TypeElement thisType=(TypeElement)enclosingElement;
    TypeMirror superMirror=thisType.getSuperclass();
    TypeElement supertype=superMirror instanceof TypeElement ? (TypeElement)superMirror : null;
    while (supertype != null && !supertype.toString().equals(Object.class.getName())) {
      Optional<ExecutableElement> result=findOverridden(executableElement,supertype);
      if (result.isPresent()) {
        overridden=result.get();
        break;
      }
      supertype=(TypeElement)supertype.getSuperclass();
    }
    if (overridden == null) {
      overridden=findOverriddenInterfaceMethod(executableElement,thisType);
    }
  }
  return overridden;
}

Fixed version (ground truth):
private ExecutableElement findOverriddenMethod(ExecutableElement executableElement){
  ExecutableElement overridden=null;
  Element enclosingElement=executableElement.getEnclosingElement();
  if (enclosingElement instanceof TypeElement) {
    TypeElement thisType=(TypeElement)enclosingElement;
    TypeMirror superMirror=thisType.getSuperclass();
    TypeElement supertype=superMirror instanceof TypeElement ? (TypeElement)superMirror : null;
    while (supertype != null && !supertype.toString().equals(Object.class.getName())) {
      Optional<ExecutableElement> result=findOverridden(executableElement,supertype);
      if (result.isPresent()) {
        overridden=result.get();
        break;
      }
 else {
        overridden=findOverriddenInterfaceMethod(executableElement,supertype);
      }
      supertype=(TypeElement)supertype.getSuperclass();
    }
    if (overridden == null) {
      overridden=findOverriddenInterfaceMethod(executableElement,thisType);
    }
  }
  return overridden;
}
Program: 62688
Project: 62688
Buggy source:
private ExecutableElement findOverriddenInterfaceMethod(ExecutableElement executableElement,TypeElement thisType){
  ExecutableElement overridden=null;
  TypeElement supertype=thisType;
  while (supertype != null && !supertype.toString().equals(Object.class.getName())) {
    List<? extends TypeMirror> interfaces=supertype.getInterfaces();
    for (    TypeMirror anInterface : interfaces) {
      if (anInterface instanceof DeclaredType) {
        DeclaredType iElement=(DeclaredType)anInterface;
        Optional<ExecutableElement> result=findOverridden(executableElement,(TypeElement)iElement.asElement());
        if (result.isPresent()) {
          overridden=result.get();
          break;
        }
 else {
          overridden=findOverriddenInterfaceMethod(executableElement,(TypeElement)iElement.asElement());
          if (overridden != null)           break;
        }
      }
    }
    TypeMirror superMirror=supertype.getSuperclass();
    if (superMirror instanceof TypeElement) {
      supertype=(TypeElement)superMirror;
    }
 else {
      break;
    }
  }
  return overridden;
}

Fixed version (ground truth):
private ExecutableElement findOverriddenInterfaceMethod(ExecutableElement executableElement,TypeElement thisType){
  ExecutableElement overridden=null;
  TypeElement supertype=thisType;
  while (supertype != null && !supertype.toString().equals(Object.class.getName())) {
    List<? extends TypeMirror> interfaces=supertype.getInterfaces();
    for (    TypeMirror anInterface : interfaces) {
      if (anInterface instanceof DeclaredType) {
        DeclaredType iElement=(DeclaredType)anInterface;
        Optional<ExecutableElement> result=findOverridden(executableElement,(TypeElement)iElement.asElement());
        if (result.isPresent()) {
          overridden=result.get();
          break;
        }
 else {
          overridden=findOverriddenInterfaceMethod(executableElement,(TypeElement)iElement.asElement());
          if (overridden != null)           break;
        }
      }
    }
    TypeMirror superMirror=supertype.getSuperclass();
    if (superMirror instanceof DeclaredType) {
      supertype=(TypeElement)((DeclaredType)superMirror).asElement();
    }
 else {
      break;
    }
  }
  return overridden;
}
Program: 62689
Project: 62689
Buggy source:
/** 
 * Finds an annotation for the given class element and stereotype. A stereotype is a meta annotation on another annotation.
 * @param element    The element to search
 * @param stereotype The stereotype to look for
 * @return An array of matching {@link AnnotationMirror}
 */
Optional<AnnotationMirror> findAnnotation(Element element,String stereotype){
  List<? extends AnnotationMirror> annotationMirrors=elementUtils.getAllAnnotationMirrors(element);
  for (  AnnotationMirror ann : annotationMirrors) {
    DeclaredType annotationType=ann.getAnnotationType();
    if (stereotype.equals(annotationType.toString())) {
      return Optional.of(ann);
    }
 else     if (!Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str").contains(annotationType.asElement().getSimpleName().toString())) {
      Optional<AnnotationMirror> found=findAnnotation(annotationType.asElement(),stereotype);
      if (found.isPresent()) {
        return found;
      }
    }
  }
  return Optional.empty();
}

Fixed version (ground truth):
/** 
 * Finds an annotation for the given class element and stereotype. A stereotype is a meta annotation on another annotation.
 * @param element    The element to search
 * @param stereotype The stereotype to look for
 * @return An array of matching {@link AnnotationMirror}
 */
Optional<AnnotationMirror> findAnnotation(Element element,String stereotype){
  Set<? extends AnnotationMirror> annotationMirrors=getAllAnnotationMirrors(element);
  for (  AnnotationMirror ann : annotationMirrors) {
    DeclaredType annotationType=ann.getAnnotationType();
    if (stereotype.equals(annotationType.toString())) {
      return Optional.of(ann);
    }
 else     if (!Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str").contains(annotationType.asElement().getSimpleName().toString())) {
      Optional<AnnotationMirror> found=findAnnotation(annotationType.asElement(),stereotype);
      if (found.isPresent()) {
        return found;
      }
    }
  }
  return Optional.empty();
}
Program: 62691
Project: 62691
Buggy source:
/** 
 * Finds an annotation for the given class element and stereotype. A stereotype is a meta annotation on another annotation.
 * @param element    The element to search
 * @param stereotype The stereotype to look for
 * @return An array of matching {@link AnnotationMirror}
 */
Optional<AnnotationMirror> findAnnotationWithStereotype(Element element,String stereotype){
  List<? extends AnnotationMirror> annotationMirrors=elementUtils.getAllAnnotationMirrors(element);
  for (  AnnotationMirror ann : annotationMirrors) {
    DeclaredType annotationType=ann.getAnnotationType();
    if (stereotype.equals(annotationType.toString())) {
      return Optional.of(ann);
    }
 else     if (!Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str").contains(annotationType.asElement().getSimpleName().toString())) {
      if (findAnnotationWithStereotype(annotationType.asElement(),stereotype).isPresent()) {
        return Optional.of(ann);
      }
    }
  }
  return Optional.empty();
}

Fixed version (ground truth):
/** 
 * Finds an annotation for the given class element and stereotype. A stereotype is a meta annotation on another annotation.
 * @param element    The element to search
 * @param stereotype The stereotype to look for
 * @return An array of matching {@link AnnotationMirror}
 */
Optional<AnnotationMirror> findAnnotationWithStereotype(Element element,String stereotype){
  Set<? extends AnnotationMirror> annotationMirrors=getAllAnnotationMirrors(element);
  for (  AnnotationMirror ann : annotationMirrors) {
    DeclaredType annotationType=ann.getAnnotationType();
    if (stereotype.equals(annotationType.toString())) {
      return Optional.of(ann);
    }
 else     if (!Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str").contains(annotationType.asElement().getSimpleName().toString())) {
      if (findAnnotationWithStereotype(annotationType.asElement(),stereotype).isPresent()) {
        return Optional.of(ann);
      }
    }
  }
  return Optional.empty();
}
Program: 62692
Project: 62692
Buggy source:
boolean hasStereotype(Element element,List<String> stereotypes){
  if (element == null) {
    return false;
  }
  if (stereotypes.contains(element.toString())) {
    return true;
  }
  List<? extends AnnotationMirror> annotationMirrors=elementUtils.getAllAnnotationMirrors(element);
  for (  AnnotationMirror ann : annotationMirrors) {
    DeclaredType annotationType=ann.getAnnotationType();
    String annotationTypeString=annotationType.toString();
    if (stereotypes.contains(annotationTypeString)) {
      return true;
    }
 else     if (!IGNORED_ANNOTATIONS.contains(annotationType.asElement().getSimpleName().toString())) {
      if (hasStereotype(annotationType.asElement(),stereotypes)) {
        return true;
      }
    }
  }
  if (element instanceof ExecutableElement) {
    ExecutableElement executableElement=(ExecutableElement)element;
    if (findAnnotation(element,Override.class) != null) {
      ExecutableElement overridden=findOverriddenMethod(executableElement);
      if (overridden != null) {
        return hasStereotype(overridden,stereotypes);
      }
    }
  }
  return false;
}

Fixed version (ground truth):
boolean hasStereotype(Element element,List<String> stereotypes){
  if (element == null) {
    return false;
  }
  if (stereotypes.contains(element.toString())) {
    return true;
  }
  Set<? extends AnnotationMirror> annotationMirrors=getAllAnnotationMirrors(element);
  for (  AnnotationMirror ann : annotationMirrors) {
    DeclaredType annotationType=ann.getAnnotationType();
    String annotationTypeString=annotationType.toString();
    if (stereotypes.contains(annotationTypeString)) {
      return true;
    }
 else     if (!IGNORED_ANNOTATIONS.contains(annotationType.asElement().getSimpleName().toString())) {
      Element annotationTypeElement=annotationType.asElement();
      if (hasStereotype(annotationTypeElement,stereotypes)) {
        return true;
      }
    }
  }
  if (element instanceof ExecutableElement) {
    ExecutableElement executableElement=(ExecutableElement)element;
    if (findAnnotation(element,Override.class) != null) {
      ExecutableElement overridden=findOverriddenMethod(executableElement);
      if (overridden != null) {
        return hasStereotype(overridden,stereotypes);
      }
    }
  }
  return false;
}
Program: 62693
Project: 62693
Buggy source:
@Executable public String showPrimitive(long id){
  return "String_Node_Str";
}

Fixed version (ground truth):
@Executable public String showPrimitive(long id){
  return String.format("String_Node_Str",id);
}
Program: 62694
Project: 62694
Buggy source:
@Executable public String showPrimitiveArray(long[] id){
  return "String_Node_Str";
}

Fixed version (ground truth):
@Executable public String showPrimitiveArray(long[] id){
  return String.format("String_Node_Str",id[0]);
}
Program: 62695
Project: 62695
Buggy source:
@Executable public String show(Long id){
  return "String_Node_Str";
}

Fixed version (ground truth):
@Executable public String show(Long id){
  return String.format("String_Node_Str",id);
}
Program: 62696
Project: 62696
Buggy source:
@Executable public String showArray(Long[] id){
  return "String_Node_Str";
}

Fixed version (ground truth):
@Executable public String showArray(Long[] id){
  return String.format("String_Node_Str",id[0]);
}
Program: 62697
Project: 62697
Buggy source:
@Override public boolean process(Set<? extends TypeElement> annotations,RoundEnvironment roundEnv){
  for (  final Element element : roundEnv.getElementsAnnotatedWith(Configuration.class)) {
    if (element.getSimpleName().contentEquals("String_Node_Str")) {
      try {
        BeanConfigurationWriter writer=new BeanConfigurationWriter();
        String configurationName=writer.writeConfiguration(element.getEnclosingElement().toString(),new File(element.getEnclosingElement().toString()));
        ServiceDescriptorGenerator generator=new ServiceDescriptorGenerator();
        File targetDirectory=new File(element.getEnclosingElement().toString());
        if (targetDirectory != null) {
          generator.generate(targetDirectory,configurationName,BeanConfiguration.class);
        }
      }
 catch (      Throwable e) {
        new Exception("String_Node_Str");
      }
    }
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean process(Set<? extends TypeElement> annotations,RoundEnvironment roundEnv){
  for (  final Element element : roundEnv.getElementsAnnotatedWith(Configuration.class)) {
    if (element.getSimpleName().contentEquals("String_Node_Str")) {
      try {
        BeanConfigurationWriter writer=new BeanConfigurationWriter(element.getEnclosedElements().toString());
        writer.writeTo(new File(element.getEnclosingElement().toString()));
        ServiceDescriptorGenerator generator=new ServiceDescriptorGenerator();
        File targetDirectory=new File(element.getEnclosingElement().toString());
        if (targetDirectory != null) {
        }
      }
 catch (      Throwable e) {
        new Exception("String_Node_Str");
      }
    }
  }
  return true;
}
Program: 62699
Project: 62699
Buggy source:
/** 
 * 将评论改变为发布状态
 * @param commentId commentId
 * @param status status
 * @return string
 */
@GetMapping("String_Node_Str") public String moveToPublish(@PathParam("String_Node_Str") Long commentId,@PathParam("String_Node_Str") Integer status,HttpSession session){
  Comment comment=commentService.updateCommentStatus(commentId,0);
  Pattern patternEmail=Pattern.compile("String_Node_Str");
  Matcher matcher=patternEmail.matcher(comment.getCommentAuthorEmail());
  if ("String_Node_Str".equals(HaloConst.OPTIONS.get("String_Node_Str"))) {
    try {
      if (status == 1 && matcher.find()) {
        Map<String,Object> map=new HashMap<>();
        map.put("String_Node_Str",comment.getPost().getPostUrl());
        map.put("String_Node_Str",comment.getPost().getPostTitle());
        map.put("String_Node_Str",comment.getCommentContent());
        map.put("String_Node_Str",HaloConst.OPTIONS.get("String_Node_Str"));
        map.put("String_Node_Str",HaloConst.OPTIONS.get("String_Node_Str"));
        map.put("String_Node_Str",userService.findAllUser().get(0).getUserDisplayName());
        mailService.sendTemplateMail(comment.getCommentAuthorEmail(),"String_Node_Str" + HaloConst.OPTIONS.get("String_Node_Str") + "String_Node_Str",map,"String_Node_Str");
      }
    }
 catch (    Exception e) {
      log.error("String_Node_Str" + e.getMessage());
    }
  }
  this.getNewComments(session);
  return "String_Node_Str" + status;
}

Fixed version (ground truth):
/** 
 * 将评论改变为发布状态
 * @param commentId commentId
 * @param status status
 * @return string
 */
@GetMapping("String_Node_Str") public String moveToPublish(@PathParam("String_Node_Str") Long commentId,@PathParam("String_Node_Str") Integer status,HttpSession session){
  Comment comment=commentService.updateCommentStatus(commentId,0);
  Pattern patternEmail=Pattern.compile("String_Node_Str");
  Matcher matcher=patternEmail.matcher(comment.getCommentAuthorEmail());
  if ("String_Node_Str".equals(HaloConst.OPTIONS.get("String_Node_Str")) && "String_Node_Str".equals(HaloConst.OPTIONS.get("String_Node_Str"))) {
    try {
      if (status == 1 && matcher.find()) {
        Map<String,Object> map=new HashMap<>();
        map.put("String_Node_Str",comment.getPost().getPostUrl());
        map.put("String_Node_Str",comment.getPost().getPostTitle());
        map.put("String_Node_Str",comment.getCommentContent());
        map.put("String_Node_Str",HaloConst.OPTIONS.get("String_Node_Str"));
        map.put("String_Node_Str",HaloConst.OPTIONS.get("String_Node_Str"));
        map.put("String_Node_Str",userService.findAllUser().get(0).getUserDisplayName());
        mailService.sendTemplateMail(comment.getCommentAuthorEmail(),"String_Node_Str" + HaloConst.OPTIONS.get("String_Node_Str") + "String_Node_Str",map,"String_Node_Str");
      }
    }
 catch (    Exception e) {
      log.error("String_Node_Str" + e.getMessage());
    }
  }
  this.getNewComments(session);
  return "String_Node_Str" + status;
}
Program: 62700
Project: 62700
Buggy source:
@Override @Transactional(propagation=Propagation.REQUIRED,readOnly=false) public void updateUserProfile(User user){
  user.setUsername(null);
  user.setPassword(null);
  this.updateNotNull(user);
}

Fixed version (ground truth):
@Override @Transactional(propagation=Propagation.REQUIRED,readOnly=false) public void updateUserProfile(User user){
  user.setUsername(null);
  user.setPassword(null);
  if (user.getDeptId() == null)   user.setDeptId(0l);
  this.updateNotNull(user);
}
Program: 62701
Project: 62701
Buggy source:
@Log("String_Node_Str") @RequiresPermissions("String_Node_Str") @RequestMapping("String_Node_Str") @ResponseBody public ResponseBo updateUser(User user,Long[] roles){
  try {
    if ("String_Node_Str".equalsIgnoreCase(user.getStatus()))     user.setStatus("String_Node_Str");
 else     user.setStatus("String_Node_Str");
    this.userService.updateUser(user,roles);
    return ResponseBo.ok("String_Node_Str");
  }
 catch (  Exception e) {
    e.printStackTrace();
    return ResponseBo.error("String_Node_Str");
  }
}

Fixed version (ground truth):
@Log("String_Node_Str") @RequiresPermissions("String_Node_Str") @RequestMapping("String_Node_Str") @ResponseBody public ResponseBo updateUser(User user,Long[] rolesSelect){
  try {
    if ("String_Node_Str".equalsIgnoreCase(user.getStatus()))     user.setStatus("String_Node_Str");
 else     user.setStatus("String_Node_Str");
    this.userService.updateUser(user,rolesSelect);
    return ResponseBo.ok("String_Node_Str");
  }
 catch (  Exception e) {
    e.printStackTrace();
    return ResponseBo.error("String_Node_Str");
  }
}
Program: 62702
Project: 62702
Buggy source:
private void saveLog(ProceedingJoinPoint joinPoint,long time){
  User user=(User)SecurityUtils.getSubject().getPrincipal();
  MethodSignature signature=(MethodSignature)joinPoint.getSignature();
  Method method=signature.getMethod();
  SysLog log=new SysLog();
  Log logAnnotation=method.getAnnotation(Log.class);
  if (logAnnotation != null) {
    log.setOperation(logAnnotation.value());
  }
  String className=joinPoint.getTarget().getClass().getName();
  String methodName=signature.getName();
  log.setMethod(className + "String_Node_Str" + methodName+ "String_Node_Str");
  Object[] args=joinPoint.getArgs();
  LocalVariableTableParameterNameDiscoverer u=new LocalVariableTableParameterNameDiscoverer();
  String[] paramNames=u.getParameterNames(method);
  if (args != null && paramNames != null) {
    String params="String_Node_Str";
    for (int i=0; i < args.length; i++) {
      params+="String_Node_Str" + paramNames[i] + "String_Node_Str"+ args[i];
    }
    log.setParams(params);
  }
  HttpServletRequest request=HttpContextUtils.getHttpServletRequest();
  log.setIp(IPUtils.getIpAddr(request));
  log.setUsername(user.getUsername());
  log.setTime(time);
  log.setCreateTime(new Date());
  log.setLocation(AddressUtils.getRealAddressByIP(log.getIp()));
  this.logService.save(log);
}

Fixed version (ground truth):
private void saveLog(ProceedingJoinPoint joinPoint,long time){
  User user=(User)SecurityUtils.getSubject().getPrincipal();
  MethodSignature signature=(MethodSignature)joinPoint.getSignature();
  Method method=signature.getMethod();
  SysLog log=new SysLog();
  Log logAnnotation=method.getAnnotation(Log.class);
  if (logAnnotation != null) {
    log.setOperation(logAnnotation.value());
  }
  String className=joinPoint.getTarget().getClass().getName();
  String methodName=signature.getName();
  log.setMethod(className + "String_Node_Str" + methodName+ "String_Node_Str");
  Object[] args=joinPoint.getArgs();
  LocalVariableTableParameterNameDiscoverer u=new LocalVariableTableParameterNameDiscoverer();
  String[] paramNames=u.getParameterNames(method);
  if (args != null && paramNames != null) {
    String params="String_Node_Str";
    for (int i=0; i < args.length; i++) {
      params+="String_Node_Str" + paramNames[i] + "String_Node_Str"+ args[i];
    }
    log.setParams(params);
  }
  HttpServletRequest request=HttpContextUtils.getHttpServletRequest();
  log.setIp(IPUtils.getIpAddr(request));
  log.setUsername(user.getUsername());
  log.setTime(time);
  log.setCreateTime(new Date());
  log.setLocation(AddressUtils.getRealAddressByIP(log.getIp()));
  log.setId(this.logService.getSequence(SysLog.SEQ));
  this.logService.save(log);
}
Program: 62703
Project: 62703
Buggy source:
@Override public boolean shouldFilter(){
  HttpServletRequest request=RequestContext.getCurrentContext().getRequest();
  if (StrUtil.equals(request.getMethod(),HttpMethod.GET.name()) || StrUtil.containsIgnoreCase(request.getRequestURI(),TOKEN)) {
    isPreview=false;
  }
  return isPreview;
}

Fixed version (ground truth):
@Override public boolean shouldFilter(){
  HttpServletRequest request=RequestContext.getCurrentContext().getRequest();
  if (StrUtil.equalsIgnoreCase(request.getMethod(),HttpMethod.GET.name()) || StrUtil.containsIgnoreCase(request.getRequestURI(),TOKEN)) {
    return false;
  }
  return isPreview;
}
Program: 62704
Project: 62704
Buggy source:
/** 
 * @param e spring security内部异常
 * @return 经过处理的异常信息
 * @throws Exception 通用异常
 */
@Override public ResponseEntity<OAuth2Exception> translate(Exception e) throws Exception {
  OAuth2Exception oAuth2Exception;
  if (e instanceof InvalidGrantException && StringUtils.equals("String_Node_Str",e.getMessage())) {
    oAuth2Exception=new InvalidGrantException("String_Node_Str",e);
  }
 else   if (e instanceof InternalAuthenticationServiceException) {
    oAuth2Exception=new InvalidGrantException("String_Node_Str",e);
  }
 else {
    oAuth2Exception=(OAuth2Exception)e;
  }
  return super.translate(oAuth2Exception);
}

Fixed version (ground truth):
/** 
 * @param e spring security内部异常
 * @return 经过处理的异常信息
 * @throws Exception 通用异常
 */
@Override public ResponseEntity<OAuth2Exception> translate(Exception e) throws Exception {
  OAuth2Exception oAuth2Exception;
  if (e instanceof InvalidGrantException && StringUtils.equals(BAD_MSG,e.getMessage())) {
    oAuth2Exception=new InvalidGrantException("String_Node_Str",e);
  }
 else   if (e instanceof InternalAuthenticationServiceException) {
    oAuth2Exception=new InvalidGrantException("String_Node_Str",e);
  }
 else {
    oAuth2Exception=new UnsupportedResponseTypeException("String_Node_Str",e);
  }
  return super.translate(oAuth2Exception);
}
Program: 62705
Project: 62705
Buggy source:
/** 
 * 删除用户信息
 * @param id ID
 * @return R
 */
@DeleteMapping("String_Node_Str") public R<Boolean> userDel(@PathVariable Integer id){
  SysUser sysUser=userService.selectById(id);
  return new R<>(userService.deleteUserById(sysUser));
}

Fixed version (ground truth):
/** 
 * 删除用户信息
 * @param id ID
 * @return R
 */
@ApiOperation(value="String_Node_Str",notes="String_Node_Str") @ApiImplicitParam(name="String_Node_Str",value="String_Node_Str",required=true,dataType="String_Node_Str") @DeleteMapping("String_Node_Str") public R<Boolean> userDel(@PathVariable Integer id){
  SysUser sysUser=userService.selectById(id);
  return new R<>(userService.deleteUserById(sysUser));
}
Program: 62706
Project: 62706
Buggy source:
/** 
 * 修改个人信息
 * @param userDto userDto
 * @return success/false
 */
@PutMapping("String_Node_Str") public Boolean editInfo(@RequestBody UserDto userDto){
  String username=UserUtils.getUserName();
  UserVo userVo=userService.findUserByUsername(username);
  if (!ENCODER.matches(userDto.getPassword(),userVo.getPassword())) {
    return Boolean.FALSE;
  }
  SysUser sysUser=new SysUser();
  sysUser.setUserId(userVo.getUserId());
  sysUser.setPassword(ENCODER.encode(userDto.getNewpassword1()));
  sysUser.setAvatar(userDto.getAvatar());
  return userService.updateById(sysUser);
}

Fixed version (ground truth):
/** 
 * 修改个人信息
 * @param userDto userDto
 * @return success/false
 */
@PutMapping("String_Node_Str") public Boolean editInfo(@RequestBody UserDto userDto){
  String username=UserUtils.getUserName();
  UserVo userVo=userService.findUserByUsername(username);
  if (!ENCODER.matches(userDto.getPassword(),userVo.getPassword())) {
    return Boolean.FALSE;
  }
  SysUser sysUser=new SysUser();
  sysUser.setUserId(userVo.getUserId());
  sysUser.setPassword(ENCODER.encode(userDto.getNewpassword1()));
  sysUser.setAvatar(userDto.getAvatar());
  userService.clearCache(UserUtils.getUserName());
  return userService.updateById(sysUser);
}
Program: 62707
Project: 62707
Buggy source:
/** 
 * 更新用户信息
 * @param userDto 用户信息
 * @return boolean
 */
@PutMapping public Boolean userUpdate(@RequestBody UserDto userDto){
  SysUser sysUser=new SysUser();
  BeanUtils.copyProperties(userDto,sysUser);
  sysUser.setUpdateTime(new Date());
  userService.updateById(sysUser);
  SysUserRole condition=new SysUserRole();
  condition.setUserId(userDto.getUserId());
  SysUserRole sysUserRole=sysUserRoleService.selectOne(new EntityWrapper<>(condition));
  sysUserRole.setRoleId(userDto.getRole());
  return sysUserRoleService.update(sysUserRole,new EntityWrapper<>(condition));
}

Fixed version (ground truth):
/** 
 * 更新用户信息
 * @param userDto 用户信息
 * @return boolean
 */
@PutMapping public Boolean userUpdate(@RequestBody UserDto userDto){
  SysUser sysUser=new SysUser();
  BeanUtils.copyProperties(userDto,sysUser);
  sysUser.setUpdateTime(new Date());
  userService.updateById(sysUser);
  SysUserRole condition=new SysUserRole();
  condition.setUserId(userDto.getUserId());
  SysUserRole sysUserRole=sysUserRoleService.selectOne(new EntityWrapper<>(condition));
  sysUserRole.setRoleId(userDto.getRole());
  userService.clearCache(UserUtils.getUserName());
  return sysUserRoleService.update(sysUserRole,new EntityWrapper<>(condition));
}
Program: 62708
Project: 62708
Buggy source:
/** 
 * 删除用户信息
 * @param id ID
 * @return boolean
 */
@DeleteMapping("String_Node_Str") public Boolean userDel(@PathVariable Integer id){
  boolean delUserRole=sysUserRoleService.deleteByUserId(id);
  if (delUserRole) {
    boolean delUserInfo=userService.deleteById(id);
    if (delUserInfo) {
      return Boolean.TRUE;
    }
 else {
      return Boolean.FALSE;
    }
  }
 else {
    return Boolean.FALSE;
  }
}

Fixed version (ground truth):
/** 
 * 删除用户信息
 * @param id ID
 * @return boolean
 */
@DeleteMapping("String_Node_Str") public Boolean userDel(@PathVariable Integer id){
  boolean delUserRole=sysUserRoleService.deleteByUserId(id);
  if (delUserRole) {
    boolean delUserInfo=userService.deleteById(id);
    if (delUserInfo) {
      userService.clearCache(UserUtils.getUserName());
      return Boolean.TRUE;
    }
 else {
      return Boolean.FALSE;
    }
  }
 else {
    return Boolean.FALSE;
  }
}
Program: 62709
Project: 62709
Buggy source:
@Override public void send(){
  rabbitTemplate.convertAndSend(CommonConstant.LOG_QUEUE,"String_Node_Str");
}

Fixed version (ground truth):
@Override public void send(){
  try {
    rabbitTemplate.convertAndSend(CommonConstant.LOG_QUEUE,"String_Node_Str");
  }
 catch (  Exception connectException) {
    logger.error("String_Node_Str",connectException);
  }
}
Program: 62710
Project: 62710
Buggy source:
public static Set<String> getArkContainerJarMarkers(){
  return Collections.unmodifiableSet(new HashSet<String>(Arrays.asList(AKR_CONTAINER_JAR)));
}

Fixed version (ground truth):
public static Set<String> getArkContainerJarMarkers(){
  return Collections.unmodifiableSet(new HashSet<>(Arrays.asList(AKR_CONTAINER_JAR)));
}