commit | 7b832a974e6f13c8a8773cfd5eae3378ac1e7944 | [log] [tgz] |
---|---|---|
author | Jaewan Kim <jaewan@google.com> | Tue Mar 11 00:03:01 2025 -0700 |
committer | Jaewan Kim <jaewan@google.com> | Tue Mar 11 00:03:01 2025 -0700 |
tree | 26f3ecaa3f86aa6610d6fc892ac5de0a92a96b29 | |
parent | c8a28850eae0ae859aa87a34ee2752b86e5657f9 [diff] |
VirtualMachine: Fix Javadoc for restarting VM `virtmgr` expects start() is called only when `VmState` is `NotStarted`, and returns error for `Dead` or `Failed`. Fix the Javadoc to follow the actual behavior. Change-Id: I2f4e4ad6ae3bc296558195cc83c00f0a9991b7da
diff --git a/libs/framework-virtualization/src/android/system/virtualmachine/VirtualMachine.java b/libs/framework-virtualization/src/android/system/virtualmachine/VirtualMachine.java index 40050c0..ad63206 100644 --- a/libs/framework-virtualization/src/android/system/virtualmachine/VirtualMachine.java +++ b/libs/framework-virtualization/src/android/system/virtualmachine/VirtualMachine.java
@@ -1807,7 +1807,7 @@ * {@linkplain #connectToVsockServer binder request}, and wait for {@link * VirtualMachineCallback#onPayloadFinished} to be called. * - * <p>A stopped virtual machine can be re-started by calling {@link #run()}. + * <p>A stopped virtual machine cannot be re-started. * * <p>NOTE: This method may block and should not be called on the main thread. *