camel-idea-plugin
camel-idea-plugin copied to clipboard
Plugin does not recognize @Consume endpoints
IntelliJ keeps telling me that my direct endpoint does not exist when using the .to() component.
This will show an error marker "Cannot find endpoint declaration":
@Consume("direct:target")
public void doSomething() {}
public void test() {
from("direct:source").to("direct:target")
}
Do we have a workaround for this or is it the expected behaviour?
Using a variable instead of a string literal removes the error marker.
Ah thanks for reporting - yeah it would be better if the plugin could detect the uri in @Consume
also. The plugin mainly detects in RouteBuilders
and the other DSLs. But for Java code then URIs can be specified in annotations such as @Consume
and @Produce
.
@ammachado you are welcome to look at this too