Skip to content

Commit 578b54f

Browse files
Update param name
1 parent a0be65f commit 578b54f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/RPCGenericTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public void setUp() {
156156

157157
// This method parses the RPC spec xml file and returns a map that has
158158
// keys correspond to the RPCs names and values correspond to the RPCs properties and their params.
159-
private Map<String, RPC> getRPCsMap(String fileName, boolean includeMandatoryOnly) {
159+
private Map<String, RPC> getRPCsMap(String fileName, boolean includeMandatoryParamsOnly) {
160160
Map<String, RPC> rpcParamsMap = new HashMap<>();
161161
try {
162162
InputStream stream = getInstrumentation().getTargetContext().getAssets().open(fileName);
@@ -216,7 +216,7 @@ private Map<String, RPC> getRPCsMap(String fileName, boolean includeMandatoryOnl
216216
javaParamType = null;
217217
skipParam = false;
218218
boolean isMandatory = Boolean.valueOf(myParser.getAttributeValue(null, "mandatory"));
219-
if (isMandatory || !includeMandatoryOnly) {
219+
if (isMandatory || !includeMandatoryParamsOnly) {
220220
String paramName = myParser.getAttributeValue(null, "name");
221221
String paramType = myParser.getAttributeValue(null, "type");
222222
boolean isArray = Boolean.valueOf(myParser.getAttributeValue(null, "array"));

0 commit comments

Comments
 (0)