Issue 13463: ActionActivation::isSourceFor does not initialize a local variable (fuml-ftf) Source: Model Driven Solutions (Mr. Ed Seidewitz, ed-s(at)modeldriven.com) Nature: Uncategorized Issue Severity: Summary: Specification: Semantics of a Foundation Subset for Executable UML Models, FTF – Beta 1 (ptc/08-11-03) Section: 8.6.2.2.1 ActionActivation Summary: The operation ActionActivation::isSourceFor does not initialize the local variable isSource, as required by the conventions of Annex A. Proposed Resolution: Replace the body of isSourceFor with: // If this action has an outgoing fork node, check that the fork node is the source of the given edge instance. boolean isSource = false; if (this.outgoingEdges.size() > 0) { isSource = this.outgoingEdges.getValue(0).target.isSourceFor(edgeInstance); } return isSource; Resolution: Change the code as proposed. Revised Text: Replace the body of ActionActivation::isSourceFor with: // If this action has an outgoing fork node, check that the fork node is the source // of the given edge instance. boolean isSource = false; if (this.outgoingEdges.size() > 0) { isSource = this.outgoingEdges.getValue(0).target.isSourceFor(edgeInstance); } return isSource; Actions taken: February 7, 2009: received issue July 23, 2010: closed issue Discussion: End of Annotations:===== ubject: ActionActivation::isSourceFor does not initialize a local variable Date: Sat, 7 Feb 2009 11:42:24 -0500 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ActionActivation::isSourceFor does not initialize a local variable thread-index: AcmJQw2RGX/vehZBQHWlgf7Z3aGYyg== From: "Ed Seidewitz" To: Specification: Semantics of a Foundation Subset for Executable UML Models, FTF . Beta 1 (ptc/08-11-03) Section: 8.6.2.2.1 ActionActivation Summary: The operation ActionActivation::isSourceFor does not initialize the local variable isSource, as required by the conventions of Annex A. Proposed Resolution: Replace the body of isSourceFor with: // If this action has an outgoing fork node, check that the fork node is the source of the given edge instance. boolean isSource = false; if (this.outgoingEdges.size() > 0) { isSource = this.outgoingEdges.getValue(0).target.isSourceFor(edgeInstance); } return isSource;