Merge "[Thread] add a script for make-pretty" into main

This commit is contained in:
Kangping Dong 2023-11-07 06:15:40 +00:00 • committed by Gerrit Code Review
commit 289ec28259
2 changed files with 8 additions and 1 deletions

View file

@ -31,7 +31,7 @@ import java.lang.annotation.RetentionPolicy;
* Provides the primary API for controlling all aspects of a Thread network.
*
* @hide
*/
*/
@FlaggedApi(ThreadNetworkFlags.FLAG_THREAD_ENABLED)
@SystemApi
public final class ThreadNetworkController {

7
thread/scripts/make-pretty.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
GOOGLE_JAVA_FORMAT=$SCRIPT_DIR/../../../../../prebuilts/tools/common/google-java-format/google-java-format
$GOOGLE_JAVA_FORMAT --aosp -i $(find $SCRIPT_DIR/../ -name "*.java")