Commit 21b28a32 authored by Dongyue Mou's avatar Dongyue Mou
Browse files

fixed bug about miss-replaced ReflectionUtils.pickInstanceof() by EcoreUtils.pickInstanceOf(),

which caused isAtomicComponent() doesn't work anymore
parent a121cd4b
......@@ -54,7 +54,7 @@ import org.fortiss.tooling.kernel.utils.KernelModelElementUtils;
* @author ratiu
* @author $Author: hoelzl $
* @version $Rev: 18709 $
* @ConQAT.Rating GREEN Hash: 5C7219506BC8942CB30AC914DD07E2D3
* @ConQAT.Rating YELLOW Hash: A6B18F03E226C316FBDB57A2AFBF380D
*/
public class ComponentArchitectureUtils {
......@@ -281,7 +281,7 @@ public class ComponentArchitectureUtils {
* otherwise false.
*/
public static boolean isAtomicComponent(Component component) {
return pickInstanceOf(Component.class, component.getContainedElementsList()) == null;
return pickInstanceOf(Component.class, component.getContainedElementsList()).isEmpty();
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment