rewrite-static-analysis icon indicating copy to clipboard operation
rewrite-static-analysis copied to clipboard

UnnecessaryFullyQualifiedName

Open Pankraz76 opened this issue 8 months ago • 1 comments

please fix: https://pmd.github.io/pmd/pmd_rules_java_codestyle.html#unnecessaryfullyqualifiedname

Image
-            Stream.of(DependencyScope.values()).collect(Collectors.toMap(s -> s.id, s -> s)));
+            Stream.of(values()).collect(Collectors.toMap(s -> s.id, s -> s)));

Pankraz76 avatar May 13 '25 16:05 Pankraz76

What problem are you trying to solve?

Describe the solution you'd like

Have you considered any alternatives or workarounds?

Additional context

Are you interested in contributing this feature to OpenRewrite?

Pankraz76 avatar May 13 '25 16:05 Pankraz76

Lacking detail here; why not on Collectors? We already have UseStaticImports. Does that fit the bill here? If DependencyScope is an enum (unclear from context) then this would not be a clear readability improvement, in which case we avoid changes.

Closing this issue for now; please stick to the template for any new issues. I'm going to close when not adhered to, because of the volume of issues coming in. We do not have the time to ask for clarification every time, and triage based on just a screenshot.

timtebeek avatar May 15 '25 20:05 timtebeek

UseStaticImports

yes thx.

template

yes, sry. Dont have time and try to pitch first, give details later on. In this case would have been wasted effort.

Pankraz76 avatar May 16 '25 07:05 Pankraz76