From 4ac7038143507ab4811978934476272426949958 Mon Sep 17 00:00:00 2001 From: Vincent Aravantinos <aravantinos@fortiss.org> Date: Fri, 15 Apr 2016 14:56:32 +0000 Subject: [PATCH] changes the way "NoTransformationFound" is thrown refs 2352 --- .../tooling/kernel/utils/TransformationUtils.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/utils/TransformationUtils.java b/org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/utils/TransformationUtils.java index c1b3300e4..61f2b3967 100644 --- a/org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/utils/TransformationUtils.java +++ b/org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/utils/TransformationUtils.java @@ -31,7 +31,7 @@ import org.fortiss.tooling.kernel.service.ITransformationService; * @author hoelzl * @author $Author$ * @version $Rev$ - * @ConQAT.Rating GREEN Hash: DE39D75CF0CFE6FCE886FFCFFF3B5046 + * @ConQAT.Rating YELLOW Hash: E1D7973CB847D9073FA00F6530407BC5 */ public final class TransformationUtils { @@ -62,9 +62,9 @@ public final class TransformationUtils { Object executableObject = null; for(TransformationProviderChain chain : chainList) { try { - // for the moment, we use the first chain - // alternatives need an interpretation of the context, which - // we do not use at the moment + // For the moment, we use the first chain. + // Alternatives need an interpretation of the context, which + // we do not use at the moment. executableObject = chain.transform(sourceElement, context); e = null; break; @@ -77,9 +77,6 @@ public final class TransformationUtils { return (T)executableObject; } } - if(e != null) { - throw new ChainTransformationFailedException(null, null, null, e); - } throw new NoTransformationChainFound(sourceElement, targetClass); } @@ -115,7 +112,6 @@ public final class TransformationUtils { public Class<?> getTargetClass() { return targetClass; } - } /** -- GitLab