Browse Source

Address SonarLint findings in JniMethodTest class

Patrick-Christopher Mattulat 1 year ago
parent
commit
c25f05abf0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      test/cases/core/jni/JniMethodTest.cpp

+ 2 - 2
test/cases/core/jni/JniMethodTest.cpp

@@ -3,7 +3,7 @@
 * Company:         Lynar Studios
 * Company:         Lynar Studios
 * E-Mail:          webmaster@lynarstudios.com
 * E-Mail:          webmaster@lynarstudios.com
 * Created:         2023-04-08
 * Created:         2023-04-08
-* Changed:         2023-04-10
+* Changed:         2023-05-17
 *
 *
 * */
 * */
 
 
@@ -90,7 +90,7 @@ namespace
   TEST_F(JniMethodTest, setMethodId)
   TEST_F(JniMethodTest, setMethodId)
   {
   {
     JniMethod method{"getDay", "()B"};
     JniMethod method{"getDay", "()B"};
-    jmethodID methodId = (jmethodID) make_shared<int>().get();
+    auto methodId = (jmethodID) make_shared<int>().get();
     method.setMethodId(methodId);
     method.setMethodId(methodId);
 
 
     ASSERT_TRUE(method.getMethodId() == methodId);
     ASSERT_TRUE(method.getMethodId() == methodId);