Skip to content

Commit 96a6295

Browse files
committed
fix
1 parent 23c1eb8 commit 96a6295

File tree

2 files changed

+6
-4
lines changed
  • instrumentation/jaxrs
    • jaxrs-2.0/jaxrs-2.0-common/testing/src/main/java/io/opentelemetry/instrumentation/jaxrs/v2_0/test
    • jaxrs-3.0/jaxrs-3.0-common/testing/src/main/java/io/opentelemetry/instrumentation/jaxrs/v3_0/test

2 files changed

+6
-4
lines changed

instrumentation/jaxrs/jaxrs-2.0/jaxrs-2.0-common/testing/src/main/java/io/opentelemetry/instrumentation/jaxrs/v2_0/test/Resource.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,21 @@
1515
@Path("/ignored")
1616
public interface Resource {
1717
@Path("ignored")
18+
@Produces(TEXT_PLAIN)
1819
String hello(String name);
1920

2021
@Path("/test")
2122
interface SubResource extends Cloneable, Resource {
2223
@Override
2324
@POST
2425
@Path("/hello/{name}")
26+
@Produces(TEXT_PLAIN)
2527
String hello(@PathParam("name") String name);
2628
}
2729

30+
@Path("/test")
2831
class Test1 implements SubResource {
2932
@Override
30-
@Produces(TEXT_PLAIN)
3133
public String hello(String name) {
3234
return "Test1 " + name + "!";
3335
}
@@ -36,7 +38,6 @@ public String hello(String name) {
3638
@Path("/test2")
3739
class Test2 implements SubResource {
3840
@Override
39-
@Produces(TEXT_PLAIN)
4041
public String hello(String name) {
4142
return "Test2 " + name + "!";
4243
}

instrumentation/jaxrs/jaxrs-3.0/jaxrs-3.0-common/testing/src/main/java/io/opentelemetry/instrumentation/jaxrs/v3_0/test/Resource.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,21 @@
1515
@Path("/ignored")
1616
public interface Resource {
1717
@Path("ignored")
18+
@Produces(TEXT_PLAIN)
1819
String hello(String name);
1920

2021
@Path("/test")
2122
interface SubResource extends Cloneable, Resource {
2223
@Override
2324
@POST
2425
@Path("/hello/{name}")
26+
@Produces(TEXT_PLAIN)
2527
String hello(@PathParam("name") String name);
2628
}
2729

30+
@Path("/test")
2831
class Test1 implements SubResource {
2932
@Override
30-
@Produces(TEXT_PLAIN)
3133
public String hello(String name) {
3234
return "Test1 " + name + "!";
3335
}
@@ -36,7 +38,6 @@ public String hello(String name) {
3638
@Path("/test2")
3739
class Test2 implements SubResource {
3840
@Override
39-
@Produces(TEXT_PLAIN)
4041
public String hello(String name) {
4142
return "Test2 " + name + "!";
4243
}

0 commit comments

Comments
 (0)