Skip to content

Commit 1ef3a87

Browse files
committed
Java2Swift: In Jar file mode, don't emit nested classes into Java2Swift.config
We aren't ready to handle nested classes just yet.
1 parent 364a3f3 commit 1ef3a87

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/Java2Swift/JavaToSwift.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,11 @@ struct JavaToSwift: ParsableCommand {
247247
}
248248
}
249249

250+
// TODO: For now, skip all nested classes.
251+
if entry.getName().contains("$") {
252+
continue
253+
}
254+
250255
let javaCanonicalName = String(entry.getName().replacing("/", with: ".")
251256
.dropLast(".class".count))
252257
configuration.classes[javaCanonicalName] =

0 commit comments

Comments
 (0)