Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for newInstance (0.09 sec)

  1. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            SmbRandomAccessFile raf = newInstance("r", false, false, false);
            byte[] buf = new byte[4];
            assertEquals(0, raf.read(buf, 0, 0));
        }
    
        @Test
        @DisplayName("read(): returns -1 when underlying read reports EOF")
        void read_returnsMinusOne_onEOF() throws Exception {
            SmbRandomAccessFile raf = spy(newInstance("r", false, false, false));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtCancelTest.java

                Constructor<SmbComNtCancel> constructor = SmbComNtCancel.class.getDeclaredConstructor(Configuration.class, int.class);
                constructor.setAccessible(true);
                SmbComNtCancel cancel = constructor.newInstance(mockConfig, testMid);
    
                // Then
                assertNotNull(cancel);
                assertEquals(testMid, cancel.getMid());
    
                // Verify command is set correctly
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java

            assertNotNull(exception1);
            assertEquals(message1, exception1.getMessage());
            assertNull(exception1.getCause());
    
            // Test with suppression disabled and writable stack trace
            String message2 = "Test with suppression disabled";
            CrawlerSystemException exception2 = constructor.newInstance(message2, false, true);
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 20K bytes
    - Viewed (0)
  4. src/test/java/jcifs/spnego/SpnegoConstantsTest.java

        }
    
        @Test
        @DisplayName("Interface cannot be instantiated")
        @SuppressWarnings("deprecation") // Using Class#newInstance for explicit InstantiationException
        void cannotInstantiateInterface() {
            assertThrows(InstantiationException.class, () -> SpnegoConstants.class.newInstance(), "Interfaces cannot be instantiated");
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  5. api/maven-api-xml/src/main/java/org/apache/maven/api/xml/XmlNode.java

     *
     * <p>Example usage:</p>
     * <pre>
     * XmlNode node = XmlNode.newBuilder()
     *     .name("configuration")
     *     .attribute("version", "1.0")
     *     .child(XmlNode.newInstance("property", "value"))
     *     .build();
     * </pre>
     *
     * @since 4.0.0
     */
    @Experimental
    @ThreadSafe
    @Immutable
    public interface XmlNode {
    
        /**
         * @deprecated since 4.0.0.
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Dec 17 15:20:44 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/http/Handler.java

                                handlerClass = ClassLoader.getSystemClassLoader().loadClass(className);
                            }
                            handler = (URLStreamHandler) handlerClass.newInstance();
                            break;
                        } catch (final Exception ex) {}
                    }
                }
                if (handler == null) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ObjectArrays.java

       *
       * @param type the component type
       * @param length the length of the new array
       */
      @GwtIncompatible // Array.newInstance(Class, int)
      @SuppressWarnings("unchecked")
      public static <T extends @Nullable Object> T[] newArray(Class<@NonNull T> type, int length) {
        return (T[]) Array.newInstance(type, length);
      }
    
      /**
       * Returns a new array of the given length with the same type as a reference array.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Dec 09 15:48:28 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/http/Handler.java

                                handlerClass = ClassLoader.getSystemClassLoader().loadClass(className);
                            }
                            handler = (URLStreamHandler) handlerClass.newInstance();
                            break;
                        } catch (final Exception ex) {
                            log.debug("Failed to initialize handler " + className, ex);
                        }
                    }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ObjectArrays.java

       *
       * @param type the component type
       * @param length the length of the new array
       */
      @GwtIncompatible // Array.newInstance(Class, int)
      @SuppressWarnings("unchecked")
      public static <T extends @Nullable Object> T[] newArray(Class<@NonNull T> type, int length) {
        return (T[]) Array.newInstance(type, length);
      }
    
      /**
       * Returns a new array of the given length with the same type as a reference array.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Dec 09 15:48:28 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/io/BaseEncoding.java

          return (paddingChar == null) ? this : newInstance(alphabet, null);
        }
    
        @Override
        public BaseEncoding withPadChar(char padChar) {
          if (8 % alphabet.bitsPerChar == 0
              || (paddingChar != null && paddingChar.charValue() == padChar)) {
            return this;
          } else {
            return newInstance(alphabet, padChar);
          }
        }
    
        @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Oct 06 14:51:47 UTC 2025
    - 41.7K bytes
    - Viewed (0)
Back to top