Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for getSomeProperty (0.08 sec)

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

    #### Non-calculated values
    
    These are inappropriate uses of lazy types:
    
    ```groovy
    class Example {
        Property<String> getSomeProperty()
    
        Example() {
            getSomeProperty().set("value")
            getSomeProperty().disallowChanges()
        }
    }
    
    class Example2 {
        Provider<String> getSomeProperty() {
            return project.provider(() -> "value")
        }
    }
    ```
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Oct 15 20:00:57 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top