From 6b498c30038d92c5dd8970656258894e30566104 Mon Sep 17 00:00:00 2001 From: mpociecha Date: Fri, 28 Nov 2014 17:51:56 +0100 Subject: Use new asClassPathString method and create FileUtils for classpath The method asClasspathString is now deprecated. Moreover it's moved to ClassFileLookup in the case someone was using it in some project (an alternative classpath also will support it - just in the case). All its usages existing in Scala sources are changed to asClassPathString method. The only difference is the name. Some operations on files or their names are moved from ClassPath to the newly created FileUtils dedicated to classpath. It will be possible to reuse them when implementing an alternative classpath representation. Moreover such allocation-free extension methods like the one added in this commit will improve the readability. --- src/scalap/scala/tools/scalap/Main.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scalap/scala') diff --git a/src/scalap/scala/tools/scalap/Main.scala b/src/scalap/scala/tools/scalap/Main.scala index 1faa855444..edad3bfc09 100644 --- a/src/scalap/scala/tools/scalap/Main.scala +++ b/src/scalap/scala/tools/scalap/Main.scala @@ -135,7 +135,7 @@ class Main { */ def name = "" def asURLs = Nil - def asClasspathString = "" + def asClassPathString = "" val context = DefaultJavaContext val classes = IndexedSeq() -- cgit v1.2.3