Skip to content

Commit 9831f74

Browse files
committed
ST6RI-796 Removed use of FeatureImpl in FeatureUtil.
1 parent effff7b commit 9831f74

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

org.omg.sysml/src/org/omg/sysml/util/FeatureUtil.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
import org.omg.sysml.lang.sysml.SysMLPackage;
5656
import org.omg.sysml.lang.sysml.Type;
5757
import org.omg.sysml.lang.sysml.TypeFeaturing;
58-
import org.omg.sysml.lang.sysml.impl.FeatureImpl;
5958

6059
public class FeatureUtil {
6160

@@ -459,7 +458,7 @@ private static String computeEffectiveName(Feature self, Set<Feature> visited) {
459458
}
460459

461460
visited.add(self);
462-
FeatureImpl namingFeature = (FeatureImpl) self.namingFeature();
461+
Feature namingFeature = self.namingFeature();
463462

464463
if (namingFeature != null && !visited.contains(namingFeature)) {
465464
effectiveName = computeEffectiveName(namingFeature, visited);
@@ -485,7 +484,7 @@ private static String computeEffectiveShortName(Feature self, Set<Feature> visit
485484
}
486485

487486
visited.add(self);
488-
FeatureImpl namingFeature = (FeatureImpl) self.namingFeature();
487+
Feature namingFeature = self.namingFeature();
489488

490489
if (namingFeature != null && !visited.contains(namingFeature)) {
491490
effectiveShortName = computeEffectiveShortName(namingFeature, visited);

0 commit comments

Comments
 (0)