Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for NestedType (0.06 seconds)

  1. architecture/standards/0006-use-of-provider-apis-in-gradle.md

    #### Nested values
    
    This is an inappropriate use of lazy types:
    
    ```groovy
    interface NestedType {
        Property<String> getSomeProperty()
    }
    class Example {
        Property<NestedType> getNestedProperty()
    }
    ```
    
    This is unnecessary because users will have trouble creating instances of `NestedType` and merging different instances of `NestedType`. It's also more awkward for users to access the properties in the nested property.
    
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Mar 05 12:39:41 GMT 2026
    - 10K bytes
    - Click Count (0)
Back to Top