Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 271 - 280 of 1,568 for varray1 (0.07 seconds)

  1. impl/maven-core/src/test/java/org/apache/maven/internal/impl/DefaultChecksumAlgorithmServiceTest.java

     */
    package org.apache.maven.internal.impl;
    
    import java.io.ByteArrayInputStream;
    import java.io.IOException;
    import java.nio.ByteBuffer;
    import java.nio.charset.StandardCharsets;
    import java.util.Arrays;
    import java.util.Collection;
    import java.util.HashMap;
    import java.util.Map;
    
    import org.apache.maven.api.services.ChecksumAlgorithmService;
    import org.apache.maven.impl.DefaultChecksumAlgorithmService;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Mar 26 11:31:00 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  2. guava/src/com/google/common/escape/CharEscaperBuilder.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * Simple helper class to build a "sparse" array of objects based on the indexes that were added to
     * it. The array will be from 0 to the maximum index given. All non-set indexes will contain null
     * (so it's not really a sparse array, just a pseudo sparse array). The builder can also return a
     * CharEscaper based on the generated array.
     *
     * @author Sven Mawson
     * @since 15.0
     */
    @GwtCompatible
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/core/collection/ArrayUtilTest.java

            assertThat(ArrayUtil.addAll(emptyArray, array), is(sameInstance(array)));
            assertThat(ArrayUtil.addAll(array, emptyArray), is(sameInstance(array)));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testAdd_int() throws Exception {
            final int[] array = new int[] { 1 };
            final int[] newArray = ArrayUtil.add(array, 2);
            assertThat(newArray.length, is(2));
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Fri Jun 20 13:40:57 GMT 2025
    - 10.6K bytes
    - Click Count (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/LegacyRepositorySystemTest.java

            ArtifactRepository repository =
                    repositorySystem.createArtifactRepository("repository", "http://foo", null, null, null);
            repositorySystem.injectAuthentication(Arrays.asList(repository), Arrays.asList(server));
            Authentication authentication = repository.getAuthentication();
            assertNotNull(authentication);
            assertEquals("jason", authentication.getUsername());
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  5. impl/maven-core/src/test/java/org/apache/maven/lifecycle/mapping/LifecyclePhaseTest.java

            LifecycleMojo mojo1 = new LifecycleMojo();
            mojo1.setGoal("jar:jar");
            phase.setMojos(Arrays.asList(mojo1));
            assertEquals("jar:jar", phase.toString());
    
            LifecycleMojo mojo2 = new LifecycleMojo();
            mojo2.setGoal("war:war");
            phase.setMojos(Arrays.asList(mojo1, mojo2));
            assertEquals("jar:jar,war:war", phase.toString());
        }
    
        @Test
        void testSet() {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 2.3K bytes
    - Click Count (0)
  6. android/guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

        int len = string.length();
        int size = len * count;
        char[] array = new char[size];
        string.getChars(0, len, array, 0);
        int n;
        for (n = len; n < size - n; n <<= 1) {
          System.arraycopy(array, 0, array, n, n);
        }
        System.arraycopy(array, 0, array, n, size - n);
        return new String(array);
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  7. src/main/java/jcifs/util/Encdec.java

                }
            }
    
            return di - start;
        }
    
        /**
         * Decodes a UTF-8 encoded string from a byte array.
         *
         * @param src the source byte array
         * @param si the starting index in the source array
         * @param slim the limit index in the source array
         * @return the decoded String
         * @throws IOException if a decoding error occurs
         */
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 17.4K bytes
    - Click Count (0)
  8. src/test/java/jcifs/pac/PacCredentialTypeTest.java

        /**
         * Tests the constructor with a valid byte array.
         */
        @Test
        void testConstructorWithValidData() {
            // A byte array with a length less than 32 should be considered valid.
            byte[] validData = new byte[31];
            assertDoesNotThrow(() -> new PacCredentialType(validData));
        }
    
        /**
         * Tests the constructor with a null byte array, which should throw an exception.
         */
        @Test
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/core/collection/SLinkedList.java

        /**
         * Converts the list to an array.
         *
         * @param array the array to store the elements. A new array of the same runtime type is allocated if the array is not large enough.
         * @return the array
         */
        @SuppressWarnings("unchecked")
        public E[] toArray(E[] array) {
            if (array.length < size) {
                array = (E[]) Array.newInstance(array.getClass().getComponentType(), size);
            }
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  10. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/BaseParserTest.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.cling.invoker;
    
    import java.nio.file.Path;
    import java.util.Arrays;
    
    import org.apache.commons.cli.ParseException;
    import org.apache.maven.api.cli.InvokerRequest;
    import org.apache.maven.api.cli.Options;
    import org.apache.maven.api.cli.ParserRequest;
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 4.2K bytes
    - Click Count (0)
Back to Top