Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 351 - 360 of 1,431 for instanceOf (0.07 seconds)

  1. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultSession.java

                    lookup,
                    runtimeInformation);
        }
    
        @Override
        public ArtifactRepository toArtifactRepository(RemoteRepository repository) {
            if (repository instanceof DefaultRemoteRepository defaultRemoteRepository) {
                org.eclipse.aether.repository.RemoteRepository rr = defaultRemoteRepository.getRepository();
    
                try {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  2. impl/maven-core/src/main/java/org/apache/maven/bridge/MavenRepositorySystem.java

            }
    
            if (releases == null) {
                releases = new ArtifactRepositoryPolicy();
            }
    
            ArtifactRepository repository;
            if (repositoryLayout instanceof ArtifactRepositoryLayout2 artifactRepositoryLayout2) {
                repository = artifactRepositoryLayout2.newMavenArtifactRepository(id, url, snapshots, releases);
            } else {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Feb 07 00:45:02 GMT 2025
    - 33.5K bytes
    - Click Count (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableBiMap.java

        }
    
        @Override
        ImmutableBiMap<K, V> buildJdkBacked() {
          return build();
        }
      }
    
      public static <K, V> ImmutableBiMap<K, V> copyOf(Map<? extends K, ? extends V> map) {
        if (map instanceof ImmutableBiMap) {
          @SuppressWarnings("unchecked") // safe since map is not writable
          ImmutableBiMap<K, V> bimap = (ImmutableBiMap<K, V>) map;
          return bimap;
        }
    
        if (map.isEmpty()) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Aug 06 18:32:41 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  4. compat/maven-compat/src/test/java/org/apache/maven/repository/TestRepositorySystem.java

                        artifacts.put(artifact.getDependencyConflictId(), artifact);
                    }
                }
    
                List<Dependency> dependencies = new ArrayList<>();
                if (request.getArtifact() instanceof ArtifactWithDependencies artifactWithDependencies) {
                    dependencies = artifactWithDependencies.getDependencies();
                } else {
                    Artifact pomArtifact = createProjectArtifact(
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 08:42:00 GMT 2025
    - 12K bytes
    - Click Count (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/JavaPathType.java

            /**
             * {@return whether the given object represents the same type of path as this object}.
             */
            @Override
            public boolean equals(Object obj) {
                if (obj instanceof Modular m) {
                    return rawType() == m.rawType() && moduleName.equals(m.moduleName);
                }
                return false;
            }
    
            /**
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Dec 15 11:13:42 GMT 2025
    - 15.7K bytes
    - Click Count (1)
  6. guava-testlib/src/com/google/common/testing/EqualsTester.java

              item.hashCode(),
              item.hashCode());
          if (!(item instanceof String)) {
            assertTrue(
                item + " must not be Object#equals to its Object#toString representation",
                !item.equals(item.toString()));
          }
        }
      }
    
      /**
       * Class used to test whether equals() correctly handles an instance of an incompatible class.
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/EnumMultiset.java

        checkArgument(type.isEnum());
        this.enumConstants = type.getEnumConstants();
        this.counts = new int[enumConstants.length];
      }
    
      private boolean isActuallyE(@Nullable Object o) {
        if (o instanceof Enum) {
          Enum<?> e = (Enum<?>) o;
          int index = e.ordinal();
          return index < enumConstants.length && enumConstants[index] == e;
        }
        return false;
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  8. samples/guide/src/main/java/okhttp3/recipes/CustomCipherSuites.java

            TrustManagerFactory.getDefaultAlgorithm());
        trustManagerFactory.init((KeyStore) null);
        TrustManager[] trustManagers = trustManagerFactory.getTrustManagers();
        if (trustManagers.length != 1 || !(trustManagers[0] instanceof X509TrustManager)) {
          throw new IllegalStateException("Unexpected default trust managers:"
              + Arrays.toString(trustManagers));
        }
        return (X509TrustManager) trustManagers[0];
      }
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Mar 14 21:57:42 GMT 2019
    - 6.5K bytes
    - Click Count (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java

        Iterator<E> iterator = collection.iterator();
        Object element = iterator.next();
        // If it's an Entry, it may become invalid once it's removed from the Map. Copy it.
        if (element instanceof Entry) {
          Entry<?, ?> entry = (Entry<?, ?>) element;
          element = mapEntry(entry.getKey(), entry.getValue());
        }
        assertTrue(collection.contains(element)); // sanity check
        iterator.remove();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginDescriptorCache.java

                return hashCode;
            }
    
            @Override
            public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
    
                if (obj instanceof CacheKey that) {
                    return Objects.equals(this.artifactId, that.artifactId)
                            && Objects.equals(this.groupId, that.groupId)
                            && Objects.equals(this.version, that.version)
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 5.9K bytes
    - Click Count (0)
Back to Top