Skip to content

Commit 83a3a29

Browse files
committed
refactor(Tuple): accepting CodeRabit review suggestions
Signed-off-by: kpoorman <kjp@codefriar.com>
1 parent 03a26b7 commit 83a3a29

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/Tuple.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
`APIVERSION: 58`
2+
13
`STATUS: ACTIVE`
24

35
Tuple represents a key-value pair. Kinda. Don't come at me math nerds.
@@ -134,6 +136,8 @@ standard constructor accepting a key and value
134136

135137
### `private void determineTypeAndSetCastedValue(Object value)`
136138

139+
`SUPPRESSWARNINGS`
140+
137141
Method is responsible for determining the type of the value and setting the appropriate field.
138142

139143
#### Parameters

force-app/main/default/classes/Data Structures/Tuple.cls

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* Available primitive datatypes available for use in tuple:
1313
* Boolean, Integer, Long, Decimal, Double, Date, DateTime, and String. Single values and lists are supported for each data type.
1414
*/
15+
@SuppressWarnings('PMD.StdCyclomaticComplexity')
1516
public with sharing class Tuple {
1617
@AuraEnabled
1718
@InvocableVariable
@@ -99,6 +100,7 @@ public with sharing class Tuple {
99100
* @description Method is responsible for determining the type of the value and setting the appropriate field.
100101
* @param value Object the Tuple's Value.
101102
*/
103+
@SuppressWarnings('PMD.CyclomaticComplexity, PMD.StdCyclomaticComplexity')
102104
private void determineTypeAndSetCastedValue(Object value) {
103105
if (value instanceof Boolean) {
104106
this.booleanValue = (Boolean) value;

0 commit comments

Comments
 (0)