ex04: Contract named "left", in function named "e1"

Moderatoren: pmueller, SE - Design and Construction

GS-812
Windoof-User
Windoof-User
Beiträge: 30
Registriert: 25. Apr 2015 12:47

ex04: Contract named "left", in function named "e1"

Beitrag von GS-812 » 23. Nov 2017 16:29

Code: Alles auswählen

 * @param operator
 * @param left
 * @param right
 

Code: Alles auswählen

BinaryExpression.create(BinaryOperator operator, final Expression e1, final Expression e2 )
Contract named "left" and in the function named "e1":
left = e1
right = e2

Is this a deliberate error?

eichberg
Moderator
Moderator
Beiträge: 448
Registriert: 25. Sep 2007 12:12
Kontaktdaten:

Re: ex04: Contract named "left", in function named "e1"

Beitrag von eichberg » 24. Nov 2017 16:41

This is an unfortunate IDE misconfiguration issue...

The parameters should be called left and right or the JavaDoc should be updated to refer to e1 and e2. I.e., the mapping is as specified in your case.

Antworten

Zurück zu „Software Engineering - Design and Construction“