Skip to content

Rename equals methods to avoid collision issues#190

Merged
sebinside merged 2 commits intomainfrom
equal-collision-fix
Jul 24, 2024
Merged

Rename equals methods to avoid collision issues#190
sebinside merged 2 commits intomainfrom
equal-collision-fix

Conversation

@Entenwilli
Copy link
Member

This PR renames the equals Methods of PCM Elements to equivalentInContext to assure collision free lists of pcm vertices

@Entenwilli Entenwilli added bug Something isn't working enhancement New feature or request core Related to the core DFD/PCM data flow analysis labels Jul 24, 2024
@Entenwilli Entenwilli added this to the 3.0.0 milestone Jul 24, 2024
@Entenwilli Entenwilli self-assigned this Jul 24, 2024
Copy link
Member

@sebinside sebinside left a comment

Choose a reason for hiding this comment

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

Two minor points:

  • Should a method that returns a boolean begin with is, thus isEquivalentInContext?
  • Maybe some minor javadoc stating what we discussed yesterday, i.e., same ID + same calling and why this implies the same context?

@Entenwilli
Copy link
Member Author

Addressed in c88fbf8:
Looking at a PCM Vertex in that context (so the context of PCM vertices, that is where context comes from here) we determine whether the element is equivalent.
Equivalence here is the correct choice of wording, as it makes sense for the actual functionality and makes sure to outline that matching elements are similar, but not equal

@Entenwilli Entenwilli requested a review from sebinside July 24, 2024 07:53
Copy link
Member

@sebinside sebinside left a comment

Choose a reason for hiding this comment

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

Feedback perfectly realized :)

@sebinside sebinside merged commit fcc8481 into main Jul 24, 2024
@sebinside sebinside deleted the equal-collision-fix branch July 24, 2024 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core Related to the core DFD/PCM data flow analysis enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants