This commit is contained in:
Phillip Webb
2014-05-22 20:32:36 +01:00
parent 94a255074f
commit 1a475102de
43 changed files with 212 additions and 132 deletions

View File

@@ -30,7 +30,7 @@ import java.util.Set;
/**
* A {@link JavaAgentDetector} that detects jars supplied via the {@code -javaagent} JVM
* input argument.
*
*
* @author Andy Wilkinson
* @since 1.1.0
*/
@@ -58,7 +58,7 @@ public class InputArgumentsJavaAgentDetector implements JavaAgentDetector {
});
}
catch (Exception ex) {
return Collections.<String> emptyList();
return Collections.emptyList();
}
}
@@ -89,7 +89,6 @@ public class InputArgumentsJavaAgentDetector implements JavaAgentDetector {
}
return path;
}
return null;
}

View File

@@ -20,9 +20,8 @@ import java.net.URL;
/**
* A strategy for detecting Java agents
*
*
* @author Andy Wilkinson
*
* @since 1.1
*/
public interface JavaAgentDetector {
@@ -30,7 +29,6 @@ public interface JavaAgentDetector {
/**
* Returns {@code true} if {@code url} points to a Java agent jar file, otherwise
* {@code false} is returned.
*
* @param url The url to examine
*/
public boolean isJavaAgentJar(URL url);