Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for genericThing (0.11 sec)

  1. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/adapter/TypeInspectorTestHelper.java

            Runnable method1();
    
            List<Item1> method2();
    
            Map<Set<Item2>, String> method3();
        }
    
        interface GenericThing {
            Item3[] method1(String p);
            List<Item5>[] method2(String p);
        }
    
        interface Thing extends SuperThing, GenericThing {
            <T extends Item4> List<T> get();
        }
    
        interface Parent {
            Child getFirstChild();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/adapter/TypeInspectorTest.groovy

        def inspector = new TypeInspector()
    
        def "inspects type and caches result"() {
            expect:
            def types = inspector.getReachableTypes(Thing)
            types == [Thing, SuperThing, GenericThing, Item1, Item2, Item3, Item4, Item5, Runnable, List, Map, Set] as Set
    
            def types2 = inspector.getReachableTypes(Thing)
            types2.is(types)
        }
    
        def "inspects cyclic types"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/ModelRuleExtractorTest.groovy

            expect:
            extract(EmptyClass).empty
        }
    
        static class ClassWithNonRuleMethods extends RuleSource {
            static List thing() {
                []
            }
    
            static <T> List<T> genericThing() {
                []
            }
    
            private doStuff() {}
    
            private <T> T selectThing(List<T> list) { null }
        }
    
        def "can have non-rule methods that would be invalid rules"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:45:02 UTC 2024
    - 30.4K bytes
    - Viewed (0)
Back to top