Skip to content

Commit 54573f4

Browse files
Seppli11sonartech
authored andcommitted
SONARPY-4127 Fix sq issues (#1086)
GitOrigin-RevId: 3b0780d9424ae60ab30504a174d674f08873ffcb
1 parent 1c26e0b commit 54573f4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

python-checks/src/main/java/org/sonar/python/checks/PredictableSaltCheck.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private static boolean hasRaisedOnSameSaltAndDerivedKeyMaterial(RegularArgument
161161
return false;
162162
}
163163
var issue = ctx.addIssue(argument, DIFFERENT_SALT_THAN_KEY_MATERIAL_MESSAGE);
164-
usagesInDeriveCall.stream().forEach(arg -> issue.secondary(arg, SALT_IS_USED_HERE_MESSAGE));
164+
usagesInDeriveCall.forEach(arg -> issue.secondary(arg, SALT_IS_USED_HERE_MESSAGE));
165165
return true;
166166
}
167167

python-frontend/src/main/java/org/sonar/python/cfg/ControlFlowGraphBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,13 @@ private PythonCfgBlock build(Statement statement, PythonCfgBlock currentBlock) {
192192
private PythonCfgBlock buildClassDefStatement(ClassDef classDef, PythonCfgBlock currentBlock) {
193193
PythonCfgBlock block = build(classDef.body().statements(), currentBlock);
194194
block.addElement(classDef);
195-
classDef.decorators().stream().forEach(currentBlock::addElement);
195+
classDef.decorators().forEach(currentBlock::addElement);
196196
return block;
197197
}
198198

199199
private static PythonCfgBlock buildFuncDefStatement(FunctionDef functionDef, PythonCfgBlock currentBlock) {
200200
currentBlock.addElement(functionDef);
201-
functionDef.decorators().stream().forEach(currentBlock::addElement);
201+
functionDef.decorators().forEach(currentBlock::addElement);
202202
return currentBlock;
203203
}
204204

0 commit comments

Comments
 (0)