Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce SAT warnings #4339

Merged
merged 2 commits into from
Aug 11, 2024
Merged

Reduce SAT warnings #4339

merged 2 commits into from
Aug 11, 2024

Conversation

holgerfriedrich
Copy link
Member

@holgerfriedrich holgerfriedrich commented Aug 8, 2024

Remove a few SAT warnings.

Signed-off-by: Holger Friedrich <[email protected]>
@holgerfriedrich holgerfriedrich requested a review from a team as a code owner August 8, 2024 21:58
@@ -135,7 +135,7 @@ public void testFileAddedBeforeListeners() throws IOException {
assertThat(firstTypeElements,
containsInAnyOrder(new FirstTypeDTO("First1", "Description1"), new FirstTypeDTO("First2", null)));
assertThat(secondTypeElements1, contains(new SecondTypeDTO("Second1", "Label1")));
assertThat(secondTypeElements1, contains(new SecondTypeDTO("Second1", "Label1")));
Copy link
Member Author

Choose a reason for hiding this comment

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

this looks like a copy-paste issue, secondTypeElements1 was tested twice and secondTypeElements2 was not used

Signed-off-by: Holger Friedrich <[email protected]>
Copy link
Member

@wborn wborn left a comment

Choose a reason for hiding this comment

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

Thanks!

@wborn wborn merged commit fc45488 into openhab:main Aug 11, 2024
5 checks passed
@wborn wborn added this to the 4.3 milestone Aug 11, 2024
@holgerfriedrich holgerfriedrich deleted the pr-warnings branch August 11, 2024 08:06
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