Skip to content

Commit 7d4149b

Browse files
Remove enum exceptional cases from RPCGenericTests
1 parent ef4840e commit 7d4149b

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -409,16 +409,6 @@ private Map<String, RPC> getRPCsMap(String fileName, boolean includeMandatoryPar
409409
skipElement = false;
410410
String elementName = myParser.getAttributeValue(null, "name");
411411

412-
// -------------- Exceptional cases because of mismatch between the RPC spec and the Android code --------------
413-
// Add "_" to the beginning if the names starts with a digit
414-
if (Character.isDigit(elementName.charAt(0))) {
415-
elementName = "_" + elementName;
416-
}
417-
418-
// Replace "-" with "_"
419-
elementName = elementName.replace('-', '_');
420-
// -------------------------------------------------------------------------------------------------------------
421-
422412
Element element = new Element()
423413
.setRPCName(rpcName)
424414
.setName(elementName)

0 commit comments

Comments
 (0)