Skip to content

Gurudevtest patch 17#33

Open
gurudevtest wants to merge 2 commits intomasterfrom
gurudevtest-patch-17
Open

Gurudevtest patch 17#33
gurudevtest wants to merge 2 commits intomasterfrom
gurudevtest-patch-17

Conversation

@gurudevtest
Copy link
Contributor

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Override
public void run() {
AmazonSNS sns = AwsToolkitCore.getClientFactory().getSNSClient();
ListTopicsResult topicsResult = sns.listTopics();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommendation generated by Amazon CodeGuru Reviewer. Leave feedback on this recommendation by replying to the comment or by reacting to the comment using emoji.

This code might not produce accurate results if the operation returns paginated results instead of all results. Consider adding another call to check for additional results.

AmazonCloudFormation cf = getCloudFormationClient();
validateTemplateResult = cf.validateTemplate(rq);

if ( wizard.getDataModel().getMode() == Mode.Update && wizard.getDataModel().getStackName() != LOADING_STACKS ) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommendation generated by Amazon CodeGuru Reviewer. Leave feedback on this recommendation by replying to the comment or by reacting to the comment using emoji.

Problem: An equality operator (== or !=) is used to compare strings, which matches strings based on address.

Fix: Do content comparison using the equals() method to compare the values of the strings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants