From 6e9cf5bfa22b6a14dd9c3cfc8e428f3770346237 Mon Sep 17 00:00:00 2001 From: Hansong Zhang Date: Wed, 27 May 2026 15:58:21 -0700 Subject: [PATCH] Fix `TrainingModule` class declaration formatting Summary: Reformat `TrainingModule` class declaration to place `private constructor` on the same line as the class name, with `Closeable` wrapping to the next line. This follows the standard Kotlin formatting convention. Differential Revision: D106574405 --- .../java/org/pytorch/executorch/training/TrainingModule.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/android/executorch_android/src/main/java/org/pytorch/executorch/training/TrainingModule.kt b/extension/android/executorch_android/src/main/java/org/pytorch/executorch/training/TrainingModule.kt index 4caa4635fdd..5556b0c16c4 100644 --- a/extension/android/executorch_android/src/main/java/org/pytorch/executorch/training/TrainingModule.kt +++ b/extension/android/executorch_android/src/main/java/org/pytorch/executorch/training/TrainingModule.kt @@ -25,8 +25,8 @@ import org.pytorch.executorch.annotations.Experimental * Warning: These APIs are experimental and subject to change without notice */ @Experimental -class TrainingModule -private constructor(moduleAbsolutePath: String, dataAbsolutePath: String) : Closeable { +class TrainingModule private constructor(moduleAbsolutePath: String, dataAbsolutePath: String) : + Closeable { private val mHybridData: HybridData = initHybrid(moduleAbsolutePath, dataAbsolutePath) private val mLock = ReentrantLock()