Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Struckmann2014-10-22 13:37:39 +0000
committerSebastian Struckmann2014-10-22 13:37:39 +0000
commit7178327a54d30434886acadf8e12ac6cf06408f8 (patch)
tree5acd182222980f269b0a3691780956e87141a276 /org.eclipse.jubula.toolkit.api.gen
parent352b6cdf7c203aced033c8b6dee2becc5495b03d (diff)
downloadorg.eclipse.jubula.core-7178327a54d30434886acadf8e12ac6cf06408f8.tar.gz
org.eclipse.jubula.core-7178327a54d30434886acadf8e12ac6cf06408f8.tar.xz
org.eclipse.jubula.core-7178327a54d30434886acadf8e12ac6cf06408f8.zip
Sprint task - Java API - Added NonNull-annotation to component identifier of generated classes, added throws declaration to generated methods
Diffstat (limited to 'org.eclipse.jubula.toolkit.api.gen')
-rw-r--r--org.eclipse.jubula.toolkit.api.gen/templates/ClassGenerator.javajet4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jubula.toolkit.api.gen/templates/ClassGenerator.javajet b/org.eclipse.jubula.toolkit.api.gen/templates/ClassGenerator.javajet
index d5116c463..16b1b47ab 100644
--- a/org.eclipse.jubula.toolkit.api.gen/templates/ClassGenerator.javajet
+++ b/org.eclipse.jubula.toolkit.api.gen/templates/ClassGenerator.javajet
@@ -116,7 +116,7 @@ public <%if (genInterface) {%>interface<%} else {%>class<%}%> <%=className%>
public <%=className%>() {
super();
}<%} else {%>
- protected IComponentIdentifier m_componentIdentifier;
+ @NonNull protected IComponentIdentifier m_componentIdentifier;
public <%=className%>(@NonNull ComponentIdentifier componentIdentifier) {
super();
Validate.isTrue(componentIdentifier instanceof IComponentIdentifier);
@@ -168,7 +168,7 @@ public <%if (genInterface) {%>interface<%} else {%>class<%}%> <%=className%>
%>
@NonNull <%=paramType%> <%=paramName%><%if(paramIterator.hasNext()){%>,<%}%>
<%}%>
- ) <%if (genInterface) {%>;<%} else {%>{
+ ) throws IllegalArgumentException<%if (genInterface) {%>;<%} else {%> {
MessageCap messageCap = new MessageCap();
messageCap.setMethod("<%=action.getMethod()%>"); //$NON-NLS-1$
messageCap.sethasDefaultMapping(<%=hasDefaultMapping%>);

Back to the top