Skip to content
Snippets Groups Projects
Commit a86e5236 authored by Simon Barner's avatar Simon Barner
Browse files

Avoid empty catch

parent e603e721
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ import org.fortiss.tooling.base.model.element.IModelElement;
* @author barner
* @author $Author$
* @version $Rev$
* @ConQAT.Rating GREEN Hash: 6CDDBEDED2A34C65AF1C5FD5315651A9
* @ConQAT.Rating YELLOW Hash: 66AEDAE9850DC4A70B474DD380C21D9F
*/
public class EStructuralFeatureDescriptor {
/**
......@@ -149,6 +149,9 @@ public class EStructuralFeatureDescriptor {
* @param specification
* Specification for which the set of available objects is computed.
*
* @return {@code true} iff an object is available to be selected for an {@link EReference}
* structural feature of an annotation.
*
*/
public boolean isAvailableObject(EObject obj, IAnnotatedSpecification specification,
EObject modelElement) {
......@@ -160,13 +163,11 @@ public class EStructuralFeatureDescriptor {
* {@link EStructuralFeatureDescriptor}.
*/
public EClassifier getEType(IAnnotatedSpecification specification) {
EClassifier eType = null;
try {
eType = getEStructuralFeature(specification).getEType();
return getEStructuralFeature(specification).getEType();
} catch(Exception e) {
// Ignore
return null;
}
return eType;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment