|
27 | 27 | public class ArtifactoryEclipsePluginManager extends DefaultMavenPluginManager { |
28 | 28 |
|
29 | 29 | // Non-virtual handle to the parent's prerequisites-check method, whichever name it |
30 | | - // currently uses. Maven 3.9.12 renamed checkRequiredMavenVersion → checkPrerequisites |
| 30 | + // currently uses. Maven 3.9.12 renamed checkRequiredMavenVersion -> checkPrerequisites |
31 | 31 | // and kept the old name as a deprecated default method on the MavenPluginManager interface |
32 | 32 | // that internally delegates to the new name. We must therefore look up the new name first: |
33 | 33 | // on 3.9.12+ that hits the real implementation directly. Falling through to the old name |
34 | 34 | // is only used on Maven < 3.9.12, where the new name does not exist and the old name is |
35 | | - // a real method on DefaultMavenPluginManager — so the check still runs. |
| 35 | + // a real method on DefaultMavenPluginManager - so the check still runs. |
36 | 36 | // If neither exists, the handle stays null and the override below is a safe no-op. |
37 | 37 | private static final MethodHandle SUPER_PREREQUISITES_CHECK = resolveSuperPrerequisitesCheck(); |
38 | 38 |
|
@@ -65,7 +65,7 @@ public ExtensionRealmCache.CacheRecord setupExtensionsRealm(MavenProject project |
65 | 65 | return super.setupExtensionsRealm(project, plugin, session); |
66 | 66 | } |
67 | 67 |
|
68 | | - // Declared so Class.getDeclaredMethod on this subclass finds it — |
| 68 | + // Declared so Class.getDeclaredMethod on this subclass finds it - |
69 | 69 | // getDeclaredMethod does not walk the superclass chain. Delegates to the parent's |
70 | 70 | // prerequisites-check method via a MethodHandle resolved at class-load time, falling back |
71 | 71 | // to the older name (checkRequiredMavenVersion) on Maven < 3.9.12 so the check still runs. |
|
0 commit comments