summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/interface-java-jaxrs/src/main/java/org
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2010-04-27 21:43:01 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2010-04-27 21:43:01 +0000
commit3f0c8d9c3553f5f49e79c35f0c269983db9adeb8 (patch)
tree4d2855b7614831e8e5dadec58f65a076ac43b465 /sca-java-2.x/trunk/modules/interface-java-jaxrs/src/main/java/org
parent887ca99f532ab748efe575af4396ef26b82bb6f7 (diff)
Fixing key used as flag to JAX-RS related operations
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@938686 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/interface-java-jaxrs/src/main/java/org')
-rw-r--r--sca-java-2.x/trunk/modules/interface-java-jaxrs/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxrs/JAXRSJavaInterfaceProcessor.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/sca-java-2.x/trunk/modules/interface-java-jaxrs/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxrs/JAXRSJavaInterfaceProcessor.java b/sca-java-2.x/trunk/modules/interface-java-jaxrs/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxrs/JAXRSJavaInterfaceProcessor.java
index 563be43a6b..ff3229771d 100644
--- a/sca-java-2.x/trunk/modules/interface-java-jaxrs/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxrs/JAXRSJavaInterfaceProcessor.java
+++ b/sca-java-2.x/trunk/modules/interface-java-jaxrs/src/main/java/org/apache/tuscany/sca/interfacedef/java/jaxrs/JAXRSJavaInterfaceProcessor.java
@@ -55,46 +55,46 @@ public class JAXRSJavaInterfaceProcessor implements JavaInterfaceVisitor {
GET get = method.getAnnotation(GET.class);
if(get != null) {
hasJAXRSAnnotarions = true;
- operation.getAttributes().put(GET.class.getClass(), true);
+ operation.getAttributes().put(GET.class, true);
getOperations.add(operation);
}
if(! getOperations.isEmpty()) {
- contract.getAttributes().put(GET.class.getClass(), getOperations);
+ contract.getAttributes().put(GET.class, getOperations);
}
PUT put = method.getAnnotation(PUT.class);
if(put != null) {
hasJAXRSAnnotarions = true;
- operation.getAttributes().put(PUT.class.getClass(), true);
+ operation.getAttributes().put(PUT.class, true);
putOperations.add(operation);
}
if(! putOperations.isEmpty()) {
- contract.getAttributes().put(PUT.class.getClass(), putOperations);
+ contract.getAttributes().put(PUT.class, putOperations);
}
POST post = method.getAnnotation(POST.class);
if(post != null) {
hasJAXRSAnnotarions = true;
- operation.getAttributes().put(POST.class.getClass(), true);
+ operation.getAttributes().put(POST.class, true);
postOperations.add(operation);
}
if(! postOperations.isEmpty()) {
- contract.getAttributes().put(POST.class.getClass(), postOperations);
+ contract.getAttributes().put(POST.class, postOperations);
}
DELETE delete = method.getAnnotation(DELETE.class);
if(delete != null) {
hasJAXRSAnnotarions = true;
- operation.getAttributes().put(DELETE.class.getClass(), true);
+ operation.getAttributes().put(DELETE.class, true);
deleteOperations.add(operation);
}
if(! deleteOperations.isEmpty()) {
- contract.getAttributes().put(GET.class.getClass(), deleteOperations);
+ contract.getAttributes().put(GET.class, deleteOperations);
}
}