@ -43,13 +43,19 @@ public final class JAXRSContract extends Contract.BaseContract {
@@ -43,13 +43,19 @@ public final class JAXRSContract extends Contract.BaseContract {
staticfinalStringACCEPT="Accept";
staticfinalStringCONTENT_TYPE="Content-Type";
// Protected so unittest can call us
// XXX: Should parseAndValidateMetadata(Class, Method) be public instead? The old deprecated parseAndValidateMetadata(Method) was public..
checkState(pathValue!=null,"Path.value() was empty on type %s",targetType.getName());
checkState(pathValue!=null,"Path.value() was empty on type %s",clz.getName());
if(!pathValue.startsWith("/")){
pathValue="/"+pathValue;
}
@ -57,9 +63,8 @@ public final class JAXRSContract extends Contract.BaseContract {
@@ -57,9 +63,8 @@ public final class JAXRSContract extends Contract.BaseContract {
// Strip off any trailing slashes, since the template has already had slashes appropriately added