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

Migrate MuzzlePlugin to Java #3017

Merged
merged 1 commit into from
May 18, 2021

Conversation

anuraaga
Copy link
Contributor

No description provided.


private final Collection<String> skipVersions;

AcceptableVersions(Collection<String> skipVersions) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed unused range parameter

}

private static synchronized ClassLoader getOrCreateToolingLoader(Project project) {
if (TOOLING_LOADER == null) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switched to normal volatile since we were synchronized anyways

return TOOLING_LOADER;
}

private static ClassLoader classpathLoader(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extracted method

private static RepositorySystemSession newRepositorySystemSession(
RepositorySystem system, Project project) {
DefaultRepositorySystemSession session = MavenRepositorySystemUtils.newSession();
File muzzleRepo = project.file("build/muzzleRepo");
Copy link
Contributor Author

@anuraaga anuraaga May 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could use a normal temp directory like before but figured it's nice to use user temp directory as little as possible for Gradle builds

Copy link
Member

@mateuszrzeszutek mateuszrzeszutek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@anuraaga anuraaga merged commit f3191d9 into open-telemetry:main May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants