| Summary: | [Xtend] Incomplete return statement | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Serano Colameo <serano.colameo> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sebastian.zarnekow, sven.efftinge |
| Version: | 2.0.1 | Flags: | sven.efftinge:
indigo+
|
| Target Milestone: | SR2 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
A validation rule is missing here. pushed to master Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
Build Identifier: Xtext 2.0.1 Xtend2: def dispatch EObject getField(Iterable<EObject> features, String fName) { ==> if (!features.nullOrEmpty) return val fields = getFeatures(features.filter(typeof(Attribute)).filter(typeof(EObject)), fName) if (!fields.nullOrEmpty) return fields.head val map = getMap(features.filter(typeof(Mapping)), fName) if (map != null) map.type } Java: protected EObject _getField(final Iterable<EObject> features, final String fName) { EObject _xblockexpression = null; { boolean _isNullOrEmpty = IterableExtensions.isNullOrEmpty(features); boolean _operator_not = BooleanExtensions.operator_not(_isNullOrEmpty); if (_operator_not) { bug ==> return; } Iterable<Attribute> _filter = IterableExtensions.<Attribute>filter(features, com.csg.cs.tools.mdgen.icm.icmDsl.Attribute.class); Reproducible: Always Steps to Reproduce: 1.see details 2. 3.