[Thread] add a script for make-pretty
This make-pretty.sh can be called from any where and it formats only java code under packages/modules/Connectivity/thread/ Test: ./thread/scripts/make-pretty.sh Change-Id: I1b24025cf0267c81a7b133d1e8a08f77cc7ddc0e
This commit is contained in:
parent
f92d211c71
commit
7dffade561
2 changed files with 8 additions and 1 deletions
|
|
@ -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
7
thread/scripts/make-pretty.sh
Executable 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")
|
||||
Loading…
Reference in a new issue