Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 97 for badly (0.04 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java

        return contents.length;
      }
    
      @Override
      public boolean contains(@Nullable Object object) {
        if (!allowNulls) {
          // behave badly
          if (object == null) {
            throw new NullPointerException();
          }
        }
        Platform.checkCast(type, object); // behave badly
        return Arrays.asList(contents).contains(object);
      }
    
      @Override
      public boolean containsAll(Collection<?> collection) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/files/src/test/groovy/org/gradle/api/internal/file/archive/impl/FileZipInputTest.groovy

        def "throws FileException when zip is badly formed"() {
            def file = temporaryFolder.file("badly-formed").createFile()
    
            when:
            FileZipInput.create(file)
    
            then:
            thrown(FileException)
        }
    
        // This documents current behaviour, not desired behaviour
        @Requires(UnitTestPreconditions.Jdk10OrEarlier)
        def "silently ignores zip that is badly formed"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:55:52 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java

        return contents.length;
      }
    
      @Override
      public boolean contains(@Nullable Object object) {
        if (!allowNulls) {
          // behave badly
          if (object == null) {
            throw new NullPointerException();
          }
        }
        Platform.checkCast(type, object); // behave badly
        return Arrays.asList(contents).contains(object);
      }
    
      @Override
      public boolean containsAll(Collection<?> collection) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/TestCollidingSetGenerator.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.SampleElements.Colliders;
    import java.util.List;
    
    /**
     * A generator using sample elements whose hash codes all collide badly.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class TestCollidingSetGenerator implements TestSetGenerator<Object> {
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/internal/classpath/ClasspathWalkerTest.groovy

            when:
            walker.visit(tmpDir.file("missing"), visitor)
    
            then:
            0 * visitor._
        }
    
        @Requires(UnitTestPreconditions.Jdk11OrLater)
        def "throws FileException on badly formed JAR"() {
            def visitor = Mock(ClasspathEntryVisitor)
            def file = tmpDir.file("broken").createFile()
    
            when:
            walker.visit(file, visitor)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 20 11:15:22 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/TestCollidingSetGenerator.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.SampleElements.Colliders;
    import java.util.List;
    
    /**
     * A generator using sample elements whose hash codes all collide badly.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class TestCollidingSetGenerator implements TestSetGenerator<Object> {
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/escape/Escaper.java

       * escaper implementation.
       *
       * <ul>
       *   <li>{@link UnicodeEscaper} handles <a href="http://en.wikipedia.org/wiki/UTF-16">UTF-16</a>
       *       correctly, including surrogate character pairs. If the input is badly formed the escaper
       *       should throw {@link IllegalArgumentException}.
       *   <li>{@link CharEscaper} handles Java characters independently and does not verify the input
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 01 16:02:17 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/escape/Escaper.java

       * escaper implementation.
       *
       * <ul>
       *   <li>{@link UnicodeEscaper} handles <a href="http://en.wikipedia.org/wiki/UTF-16">UTF-16</a>
       *       correctly, including surrogate character pairs. If the input is badly formed the escaper
       *       should throw {@link IllegalArgumentException}.
       *   <li>{@link CharEscaper} handles Java characters independently and does not verify the input
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Oct 01 16:02:17 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CommandLineTaskExecutionIntegrationTest.groovy

    import org.gradle.integtests.fixtures.AbstractIntegrationSpec
    import org.gradle.integtests.fixtures.ToBeFixedForIsolatedProjects
    
    class CommandLineTaskExecutionIntegrationTest extends AbstractIntegrationSpec {
        def "fails with badly formed task name"() {
            createDirs("a")
            settingsFile """
                rootProject.name = 'broken'
                include("a")
            """
            buildFile """
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:35 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/cache/internal/scopes/DefaultCacheScopeMappingTest.groovy

            mapping.getBaseDirectory(rootDir, "key", VersionStrategy.SharedCache) == rootDir.file("key")
        }
    
        def "can't use badly-formed key '#key'"() {
            when:
            mapping.getBaseDirectory(null, key, VersionStrategy.CachePerVersion)
    
            then:
            thrown(IllegalArgumentException)
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 15:30:42 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top