gitnexus 1.6.6-rc.97 → 1.6.6-rc.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -627,12 +627,19 @@ export const JAVA_HTTP_PLUGIN = {
|
|
|
627
627
|
confidence: 0.8,
|
|
628
628
|
});
|
|
629
629
|
}
|
|
630
|
-
// Native OpenFeign `@RequestLine("METHOD /path")`. Method-level only
|
|
631
|
-
//
|
|
632
|
-
//
|
|
630
|
+
// Native OpenFeign `@RequestLine("METHOD /path")`. Method-level only and
|
|
631
|
+
// always declared on an interface (Feign builds a proxy from the interface).
|
|
632
|
+
// We do NOT require an enclosing `@FeignClient`: `@RequestLine` is a core
|
|
633
|
+
// `feign.*` annotation used with `Feign.builder()`, whereas `@FeignClient`
|
|
634
|
+
// is the Spring Cloud variant that uses Spring MVC annotations instead — the
|
|
635
|
+
// two are effectively mutually exclusive, so requiring `@FeignClient` here
|
|
636
|
+
// would miss the annotation's primary use. The `RequestLine` name is itself
|
|
637
|
+
// a strong, framework-specific signal, so a structural interface check is
|
|
638
|
+
// enough to keep false positives away. A `@FeignClient(path=...)` prefix is
|
|
639
|
+
// still applied when present (rare, but harmless).
|
|
633
640
|
for (const requestLine of requestLines) {
|
|
634
641
|
const enclosingInterface = findEnclosingInterface(requestLine.methodNode);
|
|
635
|
-
if (!enclosingInterface
|
|
642
|
+
if (!enclosingInterface)
|
|
636
643
|
continue;
|
|
637
644
|
const prefix = feignPrefixByInterfaceId.get(enclosingInterface.id) ?? '';
|
|
638
645
|
out.push({
|
package/package.json
CHANGED