Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getDeclaredField (0.09 sec)

  1. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/DefaultArtifactDescriptorReaderTest.java

            ArgumentCaptor<RepositoryEvent> event = ArgumentCaptor.forClass(RepositoryEvent.class);
    
            Field field = DefaultArtifactDescriptorReader.class.getDeclaredField("repositoryEventDispatcher");
            field.setAccessible(true);
            field.set(reader, eventDispatcher);
    
            ArtifactDescriptorRequest request = new ArtifactDescriptorRequest();
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/project/ProjectClasspathTestType.java

            DefaultArtifactDescriptorReader pomReader =
                    (DefaultArtifactDescriptorReader) getContainer().lookup(ArtifactDescriptorReader.class);
            Field field = DefaultArtifactDescriptorReader.class.getDeclaredField("artifactResolver");
            field.setAccessible(true);
            field.set(pomReader, resolver);
    
            projectBuilder = getContainer().lookup(ProjectBuilder.class, "classpath");
        }
    
        @Test
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/impl/SisuDiBridgeModule.java

                try {
                    if ("org.eclipse.sisu.inject.LazyBeanEntry"
                            .equals(entry.getClass().getName())) {
                        Field f = entry.getClass().getDeclaredField("binding");
                        f.setAccessible(true);
                        Object b = f.get(entry);
                        return !(b instanceof ProviderInstanceBinding<?> pib)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

                        org.apache.maven.api.model.InputSource v4src = loc != null ? loc.getSource() : null;
                        if (v4src != null) {
                            Field field = InputSource.class.getDeclaredField("modelId");
                            field.setAccessible(true);
                            field.set(v4src, ModelProblemUtils.toId(model));
                        }
                    } catch (Throwable t) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 83.6K bytes
    - Viewed (0)
Back to top