private void visitSubResourceLocator(ResourceMethod locator) { checkParameters(locator); checkValueProviders(locator); final Invocable invocable = locator.getInvocable(); if (void.class == invocable.getRawResponseType()) { Errors.fatal(locator, LocalizationMessages.SUBRES_LOC_RETURNS_VOID(invocable.getHandlingMethod())); } // Prevent PARAM_ANNOTATION_SET annotations on a resource locator if (invocable.getHandlingMethod().getAnnotation(Path.class) != null) { checkUnexpectedAnnotations(locator); } }
private void visitSubResourceLocator(ResourceMethod locator) { checkParameters(locator); checkValueProviders(locator); final Invocable invocable = locator.getInvocable(); if (void.class == invocable.getRawResponseType()) { Errors.fatal(locator, LocalizationMessages.SUBRES_LOC_RETURNS_VOID(invocable.getHandlingMethod())); } // Prevent PARAM_ANNOTATION_SET annotations on a resource locator if (invocable.getHandlingMethod().getAnnotation(Path.class) != null) { checkUnexpectedAnnotations(locator); } }
private void visitSubResourceLocator(ResourceMethod locator) { checkParameters(locator); checkValueProviders(locator); final Invocable invocable = locator.getInvocable(); if (void.class == invocable.getRawResponseType()) { Errors.fatal(locator, LocalizationMessages.SUBRES_LOC_RETURNS_VOID(invocable.getHandlingMethod())); } // Prevent PARAM_ANNOTATION_SET annotations on a resource locator if (invocable.getHandlingMethod().getAnnotation(Path.class) != null) { checkUnexpectedAnnotations(locator); } }
private void visitSubResourceLocator(ResourceMethod locator) { checkParameters(locator); checkValueProviders(locator); final Invocable invocable = locator.getInvocable(); if (void.class == invocable.getRawResponseType()) { Errors.fatal(locator, LocalizationMessages.SUBRES_LOC_RETURNS_VOID(invocable.getHandlingMethod())); } // Prevent PARAM_ANNOTATION_SET annotations on a resource locator if (invocable.getHandlingMethod().getAnnotation(Path.class) != null) { checkUnexpectedAnnotations(locator); } }