Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ArrayValueSnapshot (0.17 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/SnapshotSerializer.java

                    write(encoder, entry.getKey());
                    write(encoder, entry.getValue());
                }
            } else if (snapshot instanceof ArrayValueSnapshot) {
                ArrayValueSnapshot arraySnapshot = (ArrayValueSnapshot) snapshot;
                if (arraySnapshot.getElements().isEmpty()) {
                    encoder.writeSmallInt(EMPTY_ARRAY_SNAPSHOT);
                } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 20:22:01 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/DefaultValueSnapshotterTest.groovy

        }
    
        def "creates snapshot for array"() {
            expect:
            def snapshot1 = snapshotter.snapshot([] as String[])
            snapshot1 instanceof ArrayValueSnapshot
            snapshot1 == snapshotter.snapshot([] as String[])
            snapshot1 == snapshotter.snapshot([] as Object[])
            snapshot1 == snapshotter.snapshot([] as Integer[])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 29.5K bytes
    - Viewed (0)
Back to top