Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove some references to groovy #13099

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading