Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 711 - 720 of 1,946 for instanceof (0.07 seconds)

  1. src/test/java/jcifs/smb1/smb1/TestLockingTest.java

        @DisplayName("TestLocking can be instantiated")
        void testInstantiation() {
            TestLocking t = new TestLocking();
            assertNotNull(t, "TestLocking instance should not be null");
        }
    
        @Test
        @DisplayName("Field values are independent across instances")
        void testIndependentInstances() {
            TestLocking t1 = new TestLocking();
            TestLocking t2 = new TestLocking();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  2. api/maven-api-xml/src/main/java/org/apache/maven/api/xml/ImmutableCollections.java

            return collection == null ? List.of() : List.copyOf(collection);
        }
    
        static <K, V> Map<K, V> copy(Map<K, V> map) {
            if (map == null) {
                return emptyMap();
            } else if (map instanceof AbstractImmutableMap) {
                return map;
            } else {
                switch (map.size()) {
                    case 0:
                        return emptyMap();
                    case 1:
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Jul 07 11:47:42 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/graph/ImmutableValueGraph.java

      }
    
      /** Returns an immutable copy of {@code graph}. */
      public static <N, V> ImmutableValueGraph<N, V> copyOf(ValueGraph<N, V> graph) {
        return (graph instanceof ImmutableValueGraph)
            ? (ImmutableValueGraph<N, V>) graph
            : new ImmutableValueGraph<N, V>(graph);
      }
    
      /**
       * Simply returns its argument.
       *
       * @deprecated no need to use this
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 7.8K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/ImmutableCollection.java

        }
    
        @CanIgnoreReturnValue
        @Override
        public Builder<E> addAll(Iterable<? extends E> elements) {
          if (elements instanceof Collection) {
            Collection<?> collection = (Collection<?>) elements;
            ensureRoomFor(collection.size());
            if (collection instanceof ImmutableCollection) {
              ImmutableCollection<?> immutableCollection = (ImmutableCollection<?>) collection;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 21.4K bytes
    - Click Count (0)
  5. 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 Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Feb 07 00:45:02 GMT 2025
    - 33.5K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/io/CharSource.java

       * returned {@code CharSource} and any {@code Reader} instances created by it is unspecified if
       * the {@code charSequence} is mutated while it is being read, so don't do that.
       *
       * @since 15.0 (since 14.0 as {@code CharStreams.asCharSource(String)})
       */
      public static CharSource wrap(CharSequence charSequence) {
        return charSequence instanceof String
            ? new StringCharSource((String) charSequence)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 25.7K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/base/EnumsTest.java

        assertFalse(bar.isAnnotationPresent(ExampleAnnotation.class));
      }
    
      @J2ktIncompatible
      private URL[] getClassPathUrls() {
        ClassLoader classLoader = getClass().getClassLoader();
        return classLoader instanceof URLClassLoader
            ? ((URLClassLoader) classLoader).getURLs()
            : parseJavaClassPath().toArray(new URL[0]);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 01:05:11 GMT 2026
    - 8.4K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/job/ExecJobTest.java

                fail("Should throw IORuntimeException");
            } catch (IORuntimeException e) {
                assertNotNull(e.getCause());
                assertTrue(e.getCause() instanceof IOException);
            }
        }
    
        // Test getLogName method
        @Test
        public void test_getLogName() {
            // Test without suffix
            execJob.logSuffix = "";
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 24.8K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/TreeConnectResponseTest.java

                // Verify the actual cause is SMBProtocolDecodingException
                assertTrue(exception instanceof java.lang.reflect.InvocationTargetException, "Should be wrapped in InvocationTargetException");
                Throwable cause = exception.getCause();
                assertTrue(cause instanceof SMBProtocolDecodingException, "Actual cause should be SMBProtocolDecodingException");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 24.9K bytes
    - Click Count (0)
  10. src/main/java/jcifs/util/SecureKeyManager.java

            // Wipe the raw key bytes
            if (rawKey != null) {
                Arrays.fill(rawKey, (byte) 0);
            }
    
            // Destroy the SecretKey if possible
            if (secretKey instanceof Destroyable) {
                try {
                    ((Destroyable) secretKey).destroy();
                } catch (DestroyFailedException e) {
                    log.warn("Failed to destroy SecretKey: {}", e.getMessage());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 21.5K bytes
    - Click Count (0)
Back to Top