removed unreachable code in android JNI
authorjihwan.seo <jihwan.seo@samsung.com>
Tue, 13 Dec 2016 04:49:57 +0000 (13:49 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Wed, 14 Dec 2016 08:22:36 +0000 (08:22 +0000)
Change-Id: Ie193980b00bbab996357c9011d15e9f612fd32b0
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15543
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
java/jni/JniProvisionResultListner.cpp
java/jni/JniUtils.h

index a25f015..d0c2d8e 100644 (file)
@@ -146,7 +146,6 @@ void JniProvisionResultListner::ProvisionResultCallback(PMResultList_t *result,
             }
             return;
         }
-        return;
     }
 
     jmethodID midL = env->GetMethodID(clsL, calledFunc.c_str(), "(Ljava/util/List;I)V");
index 74e48e6..13858d9 100644 (file)
@@ -56,7 +56,7 @@ public:
             default:
                 ThrowOcException(OC_STACK_INVALID_PARAM, "Unexpected service type");
                 return OC::ServiceType::OutOfProc;
-        };
+        }
     }
 
     static OC::ModeType getModeType(JNIEnv *env, int type)
@@ -74,7 +74,7 @@ public:
             default:
                 ThrowOcException(OC_STACK_INVALID_PARAM, "Unexpected mode type");
                 return OC::ModeType::Both;
-        };
+        }
     }
 
     static OC::QualityOfService getQOS(JNIEnv *env, int type)
@@ -92,7 +92,7 @@ public:
             default:
                 ThrowOcException(OC_STACK_INVALID_PARAM, "Unexpected quality of service");
                 return OC::QualityOfService::NaQos;
-        };
+        }
     }
 
     static OC::ObserveType getObserveType(JNIEnv *env, int type)
@@ -106,7 +106,7 @@ public:
             default:
                 ThrowOcException(OC_STACK_INVALID_PARAM, "Unexpected observe type");
                 return OC::ObserveType::ObserveAll;
-        };
+        }
     }
 
     static OCEntityHandlerResult getOCEntityHandlerResult(JNIEnv *env, int type)
@@ -130,7 +130,7 @@ public:
             default:
                 ThrowOcException(OC_STACK_INVALID_PARAM, "Unexpected OCEntityHandlerResult");
                 return OCEntityHandlerResult::OC_EH_ERROR;
-        };
+        }
     }
 
     static std::string stackResultToStr(const int result)