Skip to content

Commit 439d016

Browse files
committed
Update comments
1 parent f7da845 commit 439d016

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/main/java/scalive/Classpath.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ private static Method getAddURL() {
2323
//--------------------------------------------------------------------------
2424

2525
/**
26-
* @param jarpath Directory containing the jar
26+
* @param jarpaths Directories to search for the JAR
2727
*
28-
* @param jarbase Ex: "scalive-agent", not "scalive-agent-1.0.jar"
28+
* @param jarbase JAR file name prefix; Ex: "scalive-agent" will match "scalive-agent-xxx.jar"
2929
*/
3030
public static String findJar(String[] jarpaths, String jarbase) throws Exception {
3131
for (String jarpath: jarpaths) {
@@ -54,6 +54,10 @@ public static void findAndAddJar(URLClassLoader cl, String[] jarpaths, String ja
5454
addPath(cl, jar);
5555
}
5656

57+
/**
58+
* Similar to findAndAddJar, but only add the JAR to classpath if the
59+
* representativeClass has not been loaded.
60+
*/
5761
public static void addJarToURLClassLoader(
5862
URLClassLoader cl, String[] jarpaths, String jarbase, String representativeClass
5963
) throws Exception {

src/main/java/scalive/Repl.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
import scala.tools.nsc.interpreter.ILoop;
1111
import scala.tools.nsc.Settings;
1212

13-
// This must be split to a separate JAR (scalive-repl.jar), different from
14-
// the JAR file that contains the agent (scalive-agent.jar). Otherwise the agent
15-
// can't load this Repl class.
1613
public class Repl {
1714
public static void run(ClassLoader cl, String classpath, InputStream in, OutputStream out) {
1815
// Without the below settings, there will be error:

0 commit comments

Comments
 (0)