Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for clone (0.49 sec)

  1. maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptor.java

            List<ComponentDescriptor<?>> clones = null;
            if (mojos != null) {
                clones = new ArrayList<>(mojos.size());
                for (MojoDescriptor mojo : mojos) {
                    MojoDescriptor clone = mojo.clone();
                    clone.setPluginDescriptor(pluginDescriptor);
                    clones.add(clone);
                }
            }
            return clones;
        }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Sun Apr 14 17:14:22 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/execution/MavenSession.java

        @Override
        public MavenSession clone() {
            try {
                MavenSession clone = (MavenSession) super.clone();
                // the default must become the current project of the thread that clones this
                MavenProject current = getCurrentProject();
                // we replace the thread local of the clone to prevent write through and enforce the new default value
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Mar 25 10:50:01 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class Helpers {
      // Clone of Objects.equal
      static boolean equal(@Nullable Object a, @Nullable Object b) {
        return a == b || (a != null && a.equals(b));
      }
    
      // Clone of Lists.newArrayList
      public static <E extends @Nullable Object> List<E> copyToList(Iterable<? extends E> elements) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  4. maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/MojoDescriptor.java

            return v4Api;
        }
    
        /**
         * Creates a shallow copy of this mojo descriptor.
         */
        @Override
        public MojoDescriptor clone() {
            try {
                return (MojoDescriptor) super.clone();
            } catch (CloneNotSupportedException e) {
                throw new UnsupportedOperationException(e);
            }
        }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

        assertTrue(source.wasStreamOpened());
        assertFalse(source.wasStreamClosed());
    
        ByteArrayOutputStream out = new ByteArrayOutputStream();
        ByteStreams.copy(in, out);
        in.close();
        out.close();
    
        assertTrue(source.wasStreamClosed());
        assertArrayEquals(bytes, out.toByteArray());
      }
    
      public void testSize() throws IOException {
        assertEquals(bytes.length, source.size());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  6. maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionRangeResolver.java

            if (remoteRepository == null) {
                return versioning;
            }
    
            Versioning filteredVersions = versioning.clone();
    
            for (String version : versioning.getVersions()) {
                if (!remoteRepository
                        .getPolicy(DefaultModelVersionParser.checkSnapshot(version))
                        .isEnabled()) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Apr 12 10:50:18 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

          oos.writeObject(o);
          oos.flush();
          oos.close();
          ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(bos.toByteArray()));
          T clone = (T) ois.readObject();
          assertSame(o.getClass(), clone.getClass());
          return clone;
        } catch (Throwable t) {
          threadUnexpectedException(t);
          return null;
        }
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/Helpers.java

    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    public class Helpers {
      // Clone of Objects.equal
      static boolean equal(@Nullable Object a, @Nullable Object b) {
        return a == b || (a != null && a.equals(b));
      }
    
      // Clone of Lists.newArrayList
      public static <E extends @Nullable Object> List<E> copyToList(Iterable<? extends E> elements) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/RegularImmutableMap.java

              // entryArray) in the Kotlin translation.
              Entry<K, V>[] originalEntries = entries;
              entries = originalEntries.clone();
            }
          }
          entries[entryIndex] = effectiveEntry;
        }
        if (duplicates != null) {
          // Explicit type parameters needed here to avoid a problem with nullness inference.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableSortedSet.java

       * @since 3.0
       */
      public static <E extends Comparable<? super E>> ImmutableSortedSet<E> copyOf(E[] elements) {
        return construct(Ordering.natural(), elements.length, elements.clone());
      }
    
      /**
       * Returns an immutable sorted set containing the given elements sorted by their natural ordering.
       * When multiple elements are equivalent according to {@code compareTo()}, only the first one
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 38.5K bytes
    - Viewed (0)
Back to top