Skip to content

Commit

Permalink
restyled
Browse files Browse the repository at this point in the history
  • Loading branch information
nicelyjust committed May 20, 2022
1 parent d3697f1 commit b0046f2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/app/server/java/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ static_library("jni") {
sources = [
"AndroidAppServerWrapper.cpp",
"AndroidAppServerWrapper.h",
"CHIPAppServer-JNI.cpp",
"ChipFabricProvider-JNI.cpp",
"ChipFabricProvider-JNI.h",
"CHIPAppServer-JNI.cpp",
"ChipThreadWork.cpp",
"ChipThreadWork.h",
]
Expand Down Expand Up @@ -60,8 +60,8 @@ android_library("java") {

sources = [
"src/chip/appserver/ChipAppServer.java",
"src/chip/appserver/ChipFabricProvider.java",
"src/chip/appserver/ChipAppServerException.java",
"src/chip/appserver/ChipFabricProvider.java",
"src/chip/appserver/Fabric.java",
]

Expand Down
2 changes: 1 addition & 1 deletion src/app/server/java/ChipFabricProvider-JNI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@ JNI_METHOD(jint, getFabricCount)(JNIEnv * env, jobject self)
JNI_METHOD(jobject, getFabricList)(JNIEnv * env, jobject self)
{
return ReadFabricList(env, self);
}
}
2 changes: 1 addition & 1 deletion src/app/server/java/ChipFabricProvider-JNI.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ void AndroidChipFabricProviderJNI_OnUnload(JavaVM * jvm, void * reserved);
// a simplified way to get fabric count,see /src/credentials/FabricTable.h#FabricCount
int GetFabricCount();

jobject ReadFabricList(JNIEnv * env, jobject self);
jobject ReadFabricList(JNIEnv * env, jobject self);
3 changes: 1 addition & 2 deletions src/app/server/java/src/chip/appserver/ChipAppServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ public ChipFabricProvider getFabricProvider() {

if (mChipFabricProvider == null) {
synchronized (this) {
if (mChipFabricProvider == null)
mChipFabricProvider = new ChipFabricProvider();
if (mChipFabricProvider == null) mChipFabricProvider = new ChipFabricProvider();
}
}

Expand Down

0 comments on commit b0046f2

Please sign in to comment.