Skip to content

Conversation

@tubadzin
Copy link
Contributor

No description provided.

}

public void compareBound() {
if (this.solution == null) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can we outsource this check to BoundWithInfo or ComparisonDto? It would be nice if we would have an indicator by a method call from the class which signalizes that the bound may not be set - isBoundSet() for instance?

import edu.kit.provideq.toolbox.BoundWithInfo;
import edu.kit.provideq.toolbox.Solution;

public record ComparisonDto(float comparison, BoundWithInfo bound, Solution<?> solution) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It would be nice if you included an JavaDoc for this class

@tubadzin tubadzin self-assigned this May 27, 2025
zaibod and others added 3 commits June 30, 2025 18:05
Introduced a hasBound() method in ComparisonDto to check for the presence of a bound. Updated Problem to use hasBound() instead of directly checking for null
@sonarqubecloud
Copy link

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.

3 participants