Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for javaDeserialized (0.12 sec)

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

        }
    
        protected Object populateClass(Class<?> originalClass) {
            return javaDeserialized(originalClass, serializedValue);
        }
    
        private static Object javaDeserialized(Class<?> originalClass, byte[] serializedValue) {
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 12:37:11 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/AbstractValueProcessor.java

            }
            return outputStream.toByteArray();
        }
    
        private static <T> T javaSerialization(Object value, ValueVisitor<T> visitor) {
            return visitor.javaSerialized(value, javaSerialized(value));
        }
    
        private static byte[] javaSerialized(Object value) {
            ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
            try (ObjectOutputStream oos = new ObjectOutputStream(outputStream)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 19:08:37 UTC 2024
    - 10K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/JavaObjectSerializationCodecTest.kt

            verify(javaSerializationRoundtripOf(factory()))
            verify(configurationCacheRoundtripOf(factory()))
        }
    
        private
        fun <T : Any> javaSerializationRoundtripOf(bean: T): T =
            javaDeserialize(javaSerialize(bean)).uncheckedCast()
    
        private
        fun <T : Any> javaSerialize(bean: T): ByteArray =
            ByteArrayOutputStream().let { bytes ->
                ObjectOutputStream(bytes).useToRun {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/DefaultValueSnapshotter.java

                return new GradleSerializedValueSnapshot(classLoaderHasher.getClassLoaderHash(value.getClass().getClassLoader()), serializedValue);
            }
    
            @Override
            public ValueSnapshot javaSerialized(Object value, byte[] serializedValue) {
                return new JavaSerializedValueSnapshot(classLoaderHasher.getClassLoaderHash(value.getClass().getClassLoader()), serializedValue);
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 20:22:01 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/DefaultIsolatableFactory.java

                throw new UnsupportedOperationException("Isolating values of type '" + value.getClass().getSimpleName() + "' is not supported");
            }
    
            @Override
            public Isolatable<?> javaSerialized(Object value, byte[] serializedValue) {
                return new IsolatedJavaSerializedValueSnapshot(classLoaderHashOf(value), serializedValue, value.getClass());
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 22:53:34 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top