Skip to content

Commit

Permalink
Remove some references to groovy (#13099)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit authored Jan 24, 2025
1 parent 9e70f93 commit 3620bab
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import javax.jws.WebService;

// This is pure java to not have any groovy generated public method surprises
@WebService
public class WebServiceClass {
public void doSomethingPublic() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
package io.opentelemetry.javaagent.instrumentation.spring.batch.v3_0.jsr;

import javax.batch.api.chunk.ItemProcessor;
import org.codehaus.groovy.runtime.DefaultGroovyMethods;

class TestItemProcessor implements ItemProcessor {
@Override
public Object processItem(Object item) {
return Integer.parseInt(DefaultGroovyMethods.asType(item, String.class));
return Integer.parseInt((String) item);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import java.util.ArrayList;
import java.util.List;
import javax.batch.api.chunk.ItemWriter;
import org.codehaus.groovy.runtime.DefaultGroovyMethods;

class TestItemWriter implements ItemWriter {
private final List<Integer> items = new ArrayList<>();
Expand All @@ -23,7 +22,7 @@ public void close() {}
@Override
public void writeItems(List<Object> items) {
for (Object item : items) {
this.items.add(DefaultGroovyMethods.asType(item, Integer.class));
this.items.add((Integer) item);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import org.springframework.web.reactive.function.server.RouterFunction;
import org.springframework.web.reactive.function.server.ServerResponse;

// Need to keep this in Java because groovy creates crazy proxies around lambdas
@Component
public class RedirectComponent {
@Bean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ tasks {
named("test") {
enabled = false
}
named("compileTestGroovy") {
enabled = false
}
}

named("latestDepTest") {
Expand Down

0 comments on commit 3620bab

Please sign in to comment.