All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.opentelemetry.javaagent.tooling.field.NoopVirtualFieldImplementationInstaller Maven / Gradle / Ivy

There is a newer version: 2.12.0-alpha
Show newest version
/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package io.opentelemetry.javaagent.tooling.field;

import com.google.errorprone.annotations.CanIgnoreReturnValue;
import net.bytebuddy.agent.builder.AgentBuilder.Identified.Extendable;

final class NoopVirtualFieldImplementationInstaller implements VirtualFieldImplementationInstaller {

  static final NoopVirtualFieldImplementationInstaller INSTANCE =
      new NoopVirtualFieldImplementationInstaller();

  private NoopVirtualFieldImplementationInstaller() {}

  @Override
  @CanIgnoreReturnValue
  public Extendable rewriteVirtualFieldsCalls(Extendable builder) {
    return builder;
  }

  @Override
  @CanIgnoreReturnValue
  public Extendable injectHelperClasses(Extendable builder) {
    return builder;
  }

  @Override
  @CanIgnoreReturnValue
  public Extendable injectFields(Extendable builder) {
    return builder;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy