Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1161 - 1170 of 1,651 for Exceptions (0.06 sec)

  1. android/guava-tests/test/com/google/common/net/HttpHeadersTest.java

    import junit.framework.TestCase;
    
    /**
     * Tests for the HttpHeaders class.
     *
     * @author Kurt Alfred Kluever
     */
    public class HttpHeadersTest extends TestCase {
    
      public void testConstantNameMatchesString() throws Exception {
        // Special case some of the weird HTTP Header names...
        ImmutableBiMap<String, String> specialCases =
            ImmutableBiMap.<String, String>builder()
                .put("CDN_LOOP", "CDN-Loop")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 22 21:08:08 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Objects.java

      }
    
      /**
       * Generates a hash code for multiple values. The hash code is generated by calling {@link
       * Arrays#hashCode(Object[])}. Note that array arguments to this method, with the exception of a
       * single Object array, do not get any special handling; their hash codes are based on identity
       * and not contents.
       *
       * <p>This is useful for implementing {@link Object#hashCode()}. For example, in an object that
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/net/HostSpecifierTest.java

        tester.testAllPublicStaticMethods(HostSpecifier.class);
        tester.testAllPublicInstanceMethods(HostSpecifier.fromValid("google.com"));
      }
    
      private void assertGood(String spec) throws ParseException {
        // Throws exception if not working correctly
        HostSpecifier unused = HostSpecifier.fromValid(spec);
        unused = HostSpecifier.from(spec);
        assertTrue(HostSpecifier.isValid(spec));
      }
    
      private void assertBad(String spec) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Feb 18 15:33:20 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/net/HttpHeadersTest.java

    import junit.framework.TestCase;
    
    /**
     * Tests for the HttpHeaders class.
     *
     * @author Kurt Alfred Kluever
     */
    public class HttpHeadersTest extends TestCase {
    
      public void testConstantNameMatchesString() throws Exception {
        // Special case some of the weird HTTP Header names...
        ImmutableBiMap<String, String> specialCases =
            ImmutableBiMap.<String, String>builder()
                .put("CDN_LOOP", "CDN-Loop")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 22 21:08:08 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/DefaultArtifactRepositoryFactory.java

    import org.apache.maven.plugin.LegacySupport;
    import org.apache.maven.repository.RepositorySystem;
    import org.codehaus.plexus.PlexusContainer;
    import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
    import org.eclipse.aether.RepositorySystemSession;
    
    /**
     */
    @Named
    @Singleton
    @Deprecated
    public class DefaultArtifactRepositoryFactory implements ArtifactRepositoryFactory {
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/ModelVersionParserTest.java

        private VersionParserException parseInvalid(String constraint) {
            try {
                versionParser.parseVersionConstraint(constraint);
                fail("expected exception for constraint " + constraint);
                return null;
            } catch (VersionParserException e) {
                return e;
            }
        }
    
        @Test
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/RecursiveDeleteOption.java

     */
    @J2ktIncompatible
    @GwtIncompatible
    @J2ObjCIncompatible // java.nio.file
    @ElementTypesAreNonnullByDefault
    public enum RecursiveDeleteOption {
      /**
       * Specifies that the recursive delete should not throw an exception when it can't be guaranteed
       * that it can be done securely, without vulnerability to race conditions (i.e. when the file
       * system does not support {@link SecureDirectoryStream}).
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/exception/NoSuchConstructorRuntimeException.java

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.exception;
    
    import static org.codelibs.core.collection.ArrayUtil.asArray;
    
    import java.lang.reflect.Constructor;
    
    import org.codelibs.core.lang.MethodUtil;
    
    /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. compat/maven-builder-support/src/test/java/org/apache/maven/building/FileSourceTest.java

                    "Should fail, since you must specify a file");
            assertEquals("file cannot be null", e.getMessage());
        }
    
        @Test
        void testGetInputStream() throws Exception {
            File txtFile = new File("target/test-classes/source.txt");
            FileSource source = new FileSource(txtFile);
    
            try (InputStream is = source.getInputStream();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Optional.java

       * java.util.NoSuchElementException NoSuchElementException}.
       *
       * @throws IllegalStateException if the instance is absent ({@link #isPresent} returns {@code
       *     false}); depending on this <i>specific</i> exception type (over the more general {@link
       *     RuntimeException}) is discouraged
       */
      public abstract T get();
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top