Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 16 for emptyArray (1.25 seconds)

  1. src/test/java/org/codelibs/core/collection/ArrayUtilTest.java

            final String[] emptyArray = new String[0];
            assertThat(ArrayUtil.addAll((Object[]) null, (Object[]) null), is(nullValue()));
            assertThat(ArrayUtil.addAll(null, emptyArray).length, is(0));
            assertThat(ArrayUtil.addAll(emptyArray, null), is(sameInstance(emptyArray)));
            assertThat(ArrayUtil.addAll(emptyArray, null), is(sameInstance(emptyArray)));
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Fri Jun 20 13:40:57 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java

                byte[] emptyArray = new byte[0];
    
                // When & Then - should handle gracefully
                Method writeParams = SmbComNtCancel.class.getDeclaredMethod("writeParameterWordsWireFormat", byte[].class, int.class);
                writeParams.setAccessible(true);
                assertEquals(0, writeParams.invoke(cancel, emptyArray, 0));
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/crawler/transformer/FessTransformerTest.java

            Map<String, Object> dataMap = new HashMap<>();
    
            transformer.putResultDataBody(dataMap, "empty", "value1");
    
            String[] emptyArray = new String[] {};
            transformer.putResultDataBody(dataMap, "empty", emptyArray);
    
            Object result = dataMap.get("empty");
            assertTrue(result instanceof Object[]);
            Object[] resultArray = (Object[]) result;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 10.8K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/core/io/SerializeUtilTest.java

         *
         * @throws Exception
         */
        public void testFromBinaryToObject_EmptyArray() throws Exception {
            final String[] emptyArray = new String[0];
            final byte[] binary = SerializeUtil.fromObjectToBinary(emptyArray);
            final String[] result = (String[]) SerializeUtil.fromBinaryToObject(binary);
            assertEquals(0, result.length);
        }
    
        /**
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 7.6K bytes
    - Click Count (0)
  5. src/test/java/jcifs/MsrpcDfsRootEnumTest.java

            // Create empty DfsEnumArray200
            netdfs.DfsEnumArray200 emptyArray = new netdfs.DfsEnumArray200();
            emptyArray.count = 0;
            emptyArray.s = new netdfs.DfsInfo200[0];
    
            // Replace the info.e field with our empty array
            setDfsEnumArray(dfsRootEnum, emptyArray);
    
            // Test getEntries returns empty array
            FileEntry[] entries = dfsRootEnum.getEntries();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.9K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        final Ordering<T> ordering;
        final List<T> strictlyOrderedList;
        final T[] emptyArray;
    
        Scenario(Ordering<T> ordering, List<T> strictlyOrderedList, T[] emptyArray) {
          this.ordering = ordering;
          this.strictlyOrderedList = strictlyOrderedList;
          this.emptyArray = emptyArray;
        }
    
        void testCompareTo() {
          testComparator(ordering, strictlyOrderedList);
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 43.2K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/collect/OrderingTest.java

        final Ordering<T> ordering;
        final List<T> strictlyOrderedList;
        final T[] emptyArray;
    
        Scenario(Ordering<T> ordering, List<T> strictlyOrderedList, T[] emptyArray) {
          this.ordering = ordering;
          this.strictlyOrderedList = strictlyOrderedList;
          this.emptyArray = emptyArray;
        }
    
        void testCompareTo() {
          testComparator(ordering, strictlyOrderedList);
        }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 43.2K bytes
    - Click Count (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Headers.kt

        operator fun get(name: String): String? = commonGet(name)
    
        fun build(): Headers = commonBuild()
      }
    
      companion object {
        /** Empty headers. */
        @JvmField
        val EMPTY = Headers(emptyArray())
    
        /**
         * Returns headers for the alternating header names and values. There must be an even number of
         * arguments, and they must alternate between header names and values.
         */
        @JvmStatic
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  9. okhttp-tls/src/main/kotlin/okhttp3/tls/HandshakeCertificates.kt

            throw KeyStoreException("unable to support unencodable private key")
          }
    
          val keyManager = newKeyManager(null, heldCertificate, *(intermediates ?: emptyArray()))
          val trustManager = newTrustManager(null, trustedCertificates, immutableInsecureHosts)
          return HandshakeCertificates(keyManager, trustManager)
        }
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat May 10 11:15:14 GMT 2025
    - 8.4K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/RegularImmutableSet.java

    @SuppressWarnings("serial") // uses writeReplace(), not default serialization
    final class RegularImmutableSet<E> extends ImmutableSet<E> {
      private static final Object[] EMPTY_ARRAY = new Object[0];
      static final RegularImmutableSet<Object> EMPTY =
          new RegularImmutableSet<>(EMPTY_ARRAY, 0, EMPTY_ARRAY, 0, 0);
    
      // The first `size` elements are non-null.
      @VisibleForTesting final transient @Nullable Object[] elements;
      private final transient int hashCode;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 3.6K bytes
    - Click Count (0)
Back to Top