Skip to content
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
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ sourceSets {
}
}

java {
withSourcesJar()
withJavadocJar()
}

// The main sourceSet should be compiled at the lowest Java version that is supported by the agent.
compileJava {
sourceCompatibility = JavaVersion.VERSION_1_7
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/newrelic/agent/modules/ClassLoaderUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
package com.newrelic.agent.modules;

/**
* This interface exists to ensure compatibility between the Java < 9
* and Java >= 9 versions of utilities that operate on classloaders.
* This interface exists to ensure compatibility between the Java {@literal <} 9
* and Java {@literal >=} 9 versions of utilities that operate on classloaders.
*
* The Java < 9 implementation is found in this same package.
* The Java >= 9 implementation is found in the java9 source set.
* The Java {@literal <} 9 implementation is found in this same package.
* The Java {@literal >=} 9 implementation is found in the java9 source set.
*
* This package is built using Java's <a href="https://openjdk.java.net/jeps/238">Multi-Release Jar</a>
* functionality introduced in Java 9.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

public class ClassLoaderUtilImpl implements ClassLoaderUtil {
/**
* For Java < 9, the concept of "platform class loader" didn't exist,
* For Java {@literal <} 9, the concept of "platform class loader" didn't exist,
* so we always return null.
*/
@Override
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/newrelic/agent/modules/ModuleUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
public interface ModuleUtil {
/**
* Expands some modules to expose their inner workings to us. The specifics
* can be found in the Java >= 9 implementation of this class.
* can be found in the Java {@literal >=} 9 implementation of this class.
* @param inst The premain {@link Instrumentation} instance
* @param agentClassLoader The classloader which is targeted to load
* agent classes; it is this classloader's unnamed module that will have
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

public class ModuleUtilImpl implements ModuleUtil {
/**
* There is no need to modify "modules" in Java < 9 since they didn't exist,
* There is no need to modify "modules" in Java {@literal <} 9 since they didn't exist,
* so this is a no-op.
*/
@Override
Expand Down