Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 6781 - 6790 of 7,804 for RETURN (0.04 seconds)

  1. api/maven-api-di/src/main/java/org/apache/maven/api/di/Provides.java

     * <p>
     * Example usage:
     * <pre>
     * public class Providers {
     *     {@literal @}Provides
     *     {@literal @}Singleton
     *     public static Configuration provideConfiguration() {
     *         return Configuration.load();
     *     }
     * }
     * </pre>
     *
     * @since 4.0.0
     */
    @Target(METHOD)
    @Retention(RUNTIME)
    @Documented
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Jan 30 23:28:59 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  2. docs/en/docs/tutorial/cookie-params.md

    `Cookie` is a "sister" class of `Path` and `Query`. It also inherits from the same common `Param` class.
    
    But remember that when you import `Query`, `Path`, `Cookie` and others from `fastapi`, those are actually functions that return special classes.
    
    ///
    
    /// info
    
    To declare cookies, you need to use `Cookie`, because otherwise the parameters would be interpreted as query parameters.
    
    ///
    
    /// info
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Sep 20 17:49:27 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/tutorial/stream-json-lines.md

    /// tip
    
    如果你想串流二進位資料,例如影像或音訊,請參考進階指南:[串流資料](../advanced/stream-data.md)。
    
    ///
    
    ## 使用 FastAPI 串流 JSON Lines { #stream-json-lines-with-fastapi }
    
    要用 FastAPI 串流 JSON Lines,你可以在你的*路徑操作函式*中改用 `yield` 逐一產生項目,而不是用 `return`。
    
    {* ../../docs_src/stream_json_lines/tutorial001_py310.py ln[1:24] hl[24] *}
    
    如果你要回傳的每個 JSON 項目型別都是 `Item`(一個 Pydantic 模型),而且該函式是 async,你可以將回傳型別宣告為 `AsyncIterable[Item]`:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:33:04 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java

      }
    
      public void testGetUnchecked_error() {
        try {
          getUnchecked(ERROR_FUTURE);
        } catch (Error expected) {
          assertEquals(ERROR, expected);
          return;
        }
        fail();
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java

      }
    
      public void testGetUnchecked_error() {
        try {
          getUnchecked(ERROR_FUTURE);
        } catch (Error expected) {
          assertEquals(ERROR, expected);
          return;
        }
        fail();
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  6. compat/maven-model/src/test/java/org/apache/maven/model/v4/Xpp3DomPerfTest.java

                    i++;
                } catch (XMLStreamException e) {
                    throw new RuntimeException("Error parsing: " + pom, e);
                }
            }
            return i;
        }
    
        /**
         * <p>main.</p>
         *
         * @param args a {@link String} object.
         * @throws org.openjdk.jmh.runner.RunnerException if any.
         */
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

        // TODO(b/64442212): Remove this guard once lazyStackTrace() works in Java 9+.
        Integer javaVersion = Ints.tryParse(JAVA_SPECIFICATION_VERSION.value());
        if (javaVersion != null && javaVersion >= 9) {
          return;
        }
        // Obviously this isn't guaranteed in every environment, but it works well enough for now:
        assertTrue(lazyStackTraceIsLazy());
      }
    
      @J2ktIncompatible
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 15K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/cache/LoadingCache.java

       * previously cached values. This method will throw an exception if {@link CacheLoader#loadAll}
       * returns {@code null}, returns a map containing null keys or values, or fails to return an entry
       * for each requested key.
       *
       * <p>Note that duplicate elements in {@code keys}, as determined by {@link Object#equals}, will
       * be ignored.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 12:40:22 GMT 2026
    - 8.5K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

        private SmbFileInputStream newStream() throws SmbException {
            // Constructor that avoids external I/O; stays in-memory
            when(mockTree.isSMB2()).thenReturn(true); // default SMB2 for simple happy-path
            return new SmbFileInputStream(mockFile, mockTree, mockHandle);
        }
    
        @BeforeEach
        void setUp() throws Exception {
            // Common, safe defaults for collaborators
            when(mockHandle.isValid()).thenReturn(true);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  10. build-tools-internal/src/integTest/java/org/elasticsearch/gradle/jarhell/ThirdPartyAuditTaskIT.java

    import static org.elasticsearch.gradle.internal.test.TestClasspathUtils.setupJarJdkClasspath;
    
    public class ThirdPartyAuditTaskIT extends GradleIntegrationTestCase {
    
        @Override
        public String projectName() {
            return "thirdPartyAudit";
        }
    
        @Before
        public void setUp() throws Exception {
            // Build the sample jars
            getGradleRunner().withArguments(":sample_jars:build", "-s").build();
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 4.6K bytes
    - Click Count (0)
Back to Top