WIP: add Message-Components handling/registry #21

Draft
tueem wants to merge 18 commits from feat/message-components into dev
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 8495659364 - Show all commits

View File

@ -80,7 +80,7 @@ public class InteractionIdentifier {
return false;
if (!name().equals(ident.name()))
return false;
return Objects.equals(ident, obj);
return Objects.equals(parent(), ident.parent());
}
@Override

View File

@ -36,7 +36,7 @@ public class InteractionEntry {
public InteractionEntry addMethod(InteractionMethod method) {
InteractionIdentifier identifier = method.identifier();
if (this.identifier().equals(identifier))
if (!this.identifier().equals(identifier))
throw new IllegalArgumentException("Method's identifier did not equal the entry's identifier");
this.methods.add(method);