Search Options

Results per page
Sort
Preferred Languages
Advance

Results 461 - 470 of 3,054 for throws (0.04 sec)

  1. docs/smb3-features/06-witness-protocol-design.md

            // Verify witness service is authorized
            if (!isAuthorizedWitnessServer(witnessServer)) {
                throw new SecurityException("Unauthorized witness server: " + witnessServer);
            }
        }
        
        public void validateNotification(WitnessNotification notification) throws SecurityException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 42K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

                throws ArtifactMetadataRetrievalException {
            RepositoryMetadata metadata = new ArtifactRepositoryMetadata(request.getArtifact());
    
            try {
                repositoryMetadataManager.resolve(metadata, request);
            } catch (RepositoryMetadataResolutionException e) {
                throw new ArtifactMetadataRetrievalException(e.getMessage(), e, request.getArtifact());
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Mar 26 10:49:22 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/convert/ByteConversionUtilTest.java

     *
     */
    public class ByteConversionUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testToByte() throws Exception {
            assertEquals(Byte.valueOf("100"), ByteConversionUtil.toByte("100"));
        }
    
        /**
         * @throws Exception
         */
        public void testToPrimitiveByte() throws Exception {
            assertEquals(100, ByteConversionUtil.toPrimitiveByte("100"));
        }
    
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/convert/DoubleConversionUtilTest.java

     *
     */
    public class DoubleConversionUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testToDouble() throws Exception {
            assertEquals(Double.valueOf("1000.5"), DoubleConversionUtil.toDouble("1,000.5"));
        }
    
        /**
         * @throws Exception
         */
        public void testToPrimitiveDouble() throws Exception {
            assertEquals(1000.5, DoubleConversionUtil.toPrimitiveDouble("1,000.5"), 0);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/core/convert/FloatConversionUtilTest.java

     *
     */
    public class FloatConversionUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testToFloat() throws Exception {
            assertEquals(Float.valueOf("1000.5"), FloatConversionUtil.toFloat("1,000.5"));
        }
    
        /**
         * @throws Exception
         */
        public void testToPrimitiveFloat() throws Exception {
            assertEquals(1000.5, FloatConversionUtil.toPrimitiveFloat("1,000.5"), 0);
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/Resources.java

      /**
       * Reads all bytes from a URL into a byte array.
       *
       * @param url the URL to read from
       * @return a byte array containing all the bytes from the URL
       * @throws IOException if an I/O error occurs
       */
      public static byte[] toByteArray(URL url) throws IOException {
        return asByteSource(url).read();
      }
    
      /**
       * Reads all characters from a URL into a {@link String}, using the given character set.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java

            assertThrows(SMBProtocolDecodingException.class, () -> securityDescriptor.decode(testBuffer, 0, testBuffer.length),
                    "Should throw exception for ACE count > 4096");
        }
    
        @Test
        @DisplayName("Test getType returns correct value")
        void testGetType() throws SMBProtocolDecodingException {
            // Prepare buffer with specific type value
            testBuffer[0] = 0x01; // revision
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponse.java

         * @return the filesystem info cast to the specified type
         * @throws CIFSException if the information cannot be cast to the specified type
         */
        @SuppressWarnings("unchecked")
        public <T extends FileSystemInformation> T getInfo(final Class<T> clazz) throws CIFSException {
            if (!clazz.isAssignableFrom(this.info.getClass())) {
                throw new CIFSException("Incompatible file information class");
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

      }
    
      public void testGetCheckedUntimed_runtimeException() throws TwoArgConstructorException {
        RuntimeException expected =
            assertThrows(
                RuntimeException.class,
                () -> getChecked(RUNTIME_EXCEPTION_FUTURE, TwoArgConstructorException.class));
        assertEquals(RUNTIME_EXCEPTION, expected);
      }
    
      public void testGetCheckedUntimed_error() throws TwoArgConstructorException {
        try {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/repository/ArtifactRepositoryFactory.java

        String LOCAL_REPOSITORY_ID = "local";
    
        @Deprecated
        ArtifactRepositoryLayout getLayout(String layoutId) throws UnknownRepositoryLayoutException;
    
        @Deprecated
        ArtifactRepository createDeploymentArtifactRepository(String id, String url, String layoutId, boolean uniqueVersion)
                throws UnknownRepositoryLayoutException;
    
        ArtifactRepository createDeploymentArtifactRepository(
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top