You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d235f9a
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: navigation/navigation-safe-args-generator/src/main/kotlin/androidx/navigation/safe/args/generator/java/JavaNavWriter.kt
+39-54Lines changed: 39 additions & 54 deletions
Original file line number
Diff line number
Diff line change
@@ -198,8 +198,7 @@ class JavaNavWriter(private val useAndroidX: Boolean = true) : NavWriter<JavaCod
198
198
?:throwIllegalStateException("Destination with arguments must have name")
199
199
val className =ClassName.get(destName.packageName(), "${destName.simpleName()}Args")
200
200
val args = destination.args
201
-
val specs =
202
-
ClassWithArgsSpecs(args, annotations)
201
+
val specs =ClassWithArgsSpecs(args, annotations)
203
202
204
203
val fromBundleMethod =MethodSpec.methodBuilder("fromBundle").apply {
205
204
addAnnotation(annotations.NONNULL_CLASSNAME)
@@ -216,34 +215,9 @@ class JavaNavWriter(private val useAndroidX: Boolean = true) : NavWriter<JavaCod
216
215
addStatement("$T$N = new $T()", className, result, className)
0 commit comments