Skip to content

Commit 01fc715

Browse files
authored
chore: Apply suggestions from code review
1 parent f24b5d1 commit 01fc715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compiler/src/dotty/tools/io/Jar.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Jar(file: File) {
5050
def mainClass: Option[String] = manifest.map(_(Name.MAIN_CLASS))
5151
/** The manifest-defined classpath String if available. */
5252
def classPathString: Option[String] =
53-
for (m <- manifest ; cp <- m.attrs.get(Name.CLASS_PATH) if !cp.isBlank()) yield cp
53+
for (m <- manifest ; cp <- m.attrs.get(Name.CLASS_PATH) if !cp.trim().isEmpty()) yield cp
5454
def classPathElements: List[String] = classPathString match {
5555
case Some(s) => s.split("\\s+").toList
5656
case _ => Nil

0 commit comments

Comments
 (0)