Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 691 - 700 of 1,163 for useEmpty (0.05 seconds)

  1. src/main/java/org/codelibs/fess/helper/MarkdownRenderer.java

         *
         * @param markdown the markdown text to render
         * @return sanitized HTML string
         */
        public String render(final String markdown) {
            if (markdown == null || markdown.isEmpty()) {
                return "";
            }
    
            try {
                // Parse markdown to AST
                final var document = markdownParser.parse(markdown);
    
                // Render AST to HTML
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Jan 12 10:32:40 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/EventRecorder.kt

        if (enforceOrder) {
          checkForStartEvent(e)
        }
    
        eventsForMatching.offer(e)
        eventSequence.offer(e)
      }
    
      private fun checkForStartEvent(e: CallEvent) {
        if (eventsForMatching.isEmpty()) {
          assertThat(e).matchesPredicate { it is CallStart || it is Canceled }
        } else {
          eventsForMatching.forEach loop@{
            when (e.closes(it)) {
              null -> return
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  3. compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/ConsoleMavenTransferListener.java

                status.append(")");
            }
    
            return status.toString();
        }
    
        private String resourceName(String resourceName) {
            if (resourceName == null || resourceName.trim().isEmpty()) {
                return "";
            }
            final int pos = resourceName.lastIndexOf("/");
            if (pos == -1 || pos == resourceName.length() - 1) {
                return "";
            }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Apr 03 11:23:19 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/testers/MapClearTester.java

    public class MapClearTester<K, V> extends AbstractMapTester<K, V> {
      @MapFeature.Require(SUPPORTS_REMOVE)
      public void testClear() {
        getMap().clear();
        assertTrue("After clear(), a map should be empty.", getMap().isEmpty());
        assertEquals(0, getMap().size());
        assertFalse(getMap().entrySet().iterator().hasNext());
      }
    
      @MapFeature.Require({FAILS_FAST_ON_CONCURRENT_MODIFICATION, SUPPORTS_REMOVE})
      @CollectionSize.Require(SEVERAL)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Nov 14 23:40:07 GMT 2024
    - 3.9K bytes
    - Click Count (0)
  5. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/ArtifactDescriptorUtils.java

     */
    @Deprecated(since = "4.0.0")
    public class ArtifactDescriptorUtils {
    
        public static Artifact toPomArtifact(Artifact artifact) {
            Artifact pomArtifact = artifact;
    
            if (!pomArtifact.getClassifier().isEmpty() || !"pom".equals(pomArtifact.getExtension())) {
                pomArtifact =
                        new DefaultArtifact(artifact.getGroupId(), artifact.getArtifactId(), "pom", artifact.getVersion());
            }
    
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 4K bytes
    - Click Count (0)
  6. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/ExportElasticsearchBuildResourcesTask.java

                );
            }
            resources.add(resource);
        }
    
        @TaskAction
        public void doExport() {
            if (resources.isEmpty()) {
                setDidWork(false);
                throw new StopExecutionException();
            }
            resources.stream().parallel().forEach(resourcePath -> {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 3.5K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

                buf.append(",\"related_contents\":");
                buf.append(escapeJson(relatedContents));
                buf.append(',');
                buf.append("\"data\":[");
                if (!documentItems.isEmpty()) {
                    boolean first1 = true;
                    for (final Map<String, Object> document : documentItems) {
                        if (!first1) {
                            buf.append(',');
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 27 13:56:32 GMT 2026
    - 55.4K bytes
    - Click Count (1)
  8. .teamcity/src/main/kotlin/configurations/PerformanceTest.kt

                                tasks = ""
                                workingDir = os.perfTestWorkingDir
    
                                val typeExtraParameters = if (type.extraParameters.isEmpty()) "" else " ${type.extraParameters}"
    
                                gradleParams =
                                    (
                                        performanceTestCommandLine(
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Thu Jan 29 01:37:22 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapPutAllMultimapTester.java

      // Empty multimaps *do* have defined equals semantics.
      @SuppressWarnings("UndefinedEquals")
      public void testPutAllIntoEmpty() {
        Multimap<K, V> target = getSubjectGenerator().create();
        assertEquals(!multimap().isEmpty(), target.putAll(multimap()));
        assertEquals(multimap(), target);
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
      public void testPutAll() {
        Multimap<K, V> source =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 12 21:10:54 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/util/concurrent/CollectionFuture.java

          ImmutableCollection<? extends ListenableFuture<? extends V>> futures,
          boolean allMustSucceed) {
        super(futures, allMustSucceed, true);
    
        List<@Nullable Present<V>> values =
            futures.isEmpty()
                ? Collections.<@Nullable Present<V>>emptyList()
                : Lists.<@Nullable Present<V>>newArrayListWithCapacity(futures.size());
    
        // Populate the results list with null initially.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 3.9K bytes
    - Click Count (0)
Back to Top