Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for disallowChanges (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

    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")
        }
    }
    ```
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Mar 05 12:39:41 GMT 2026
    - 10K bytes
    - Click Count (0)
  2. build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/GitInfoPlugin.java

            gitInfo = objectFactory.property(GitInfo.class).value(factory.provider(() ->
                GitInfo.gitInfo(rootDir)
            ));
            gitInfo.disallowChanges();
            gitInfo.finalizeValueOnRead();
    
            revision = gitInfo.map(info -> info.getRevision() == null ? info.getRevision() : "master");
        }
    
        public Property<GitInfo> getGitInfo() {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 1.9K bytes
    - Click Count (0)
Back to Top