Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 2851 - 2860 of 4,689 for nulls (0.02 seconds)

  1. src/test/java/org/codelibs/fess/exception/WebApiExceptionTest.java

            assertEquals(message, exception.getMessage());
        }
    
        @Test
        public void test_message_nullString() {
            // Test with null message string
            int statusCode = 500;
            String message = null;
    
            WebApiException exception = new WebApiException(statusCode, message);
    
            assertEquals(statusCode, exception.getStatusCode());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 9.5K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/TableCollectors.java

          V value,
          BinaryOperator<V> mergeFunction) {
        checkNotNull(value);
        V oldValue = table.get(row, column);
        if (oldValue == null) {
          table.put(row, column, value);
        } else {
          V newValue = mergeFunction.apply(oldValue, value);
          if (newValue == null) {
            table.remove(row, column);
          } else {
            table.put(row, column, newValue);
          }
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Feb 11 19:03:19 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  3. docs/zh-hant/docs/how-to/separate-openapi-schemas.md

    ### 輸出回應資料的模型 { #model-for-output-response-data }
    
    在互動式文件中試用並檢視回應時,儘管程式碼沒有為其中一個 `description` 欄位加入任何內容,JSON 回應仍包含預設值(`null`):
    
    <div class="screenshot">
    <img src="/img/tutorial/separate-openapi-schemas/image02.png">
    </div>
    
    這代表該欄位一定會有值,只是有時候值可能是 `None`(在 JSON 中為 `null`)。
    
    因此,使用你 API 的用戶端不必檢查值是否存在,可以假設該欄位一定存在;只是有些情況下它的值會是預設的 `None`。
    
    在 OpenAPI 中,描述這種情況的方式是將該欄位標記為必填,因為它一定存在。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:15:26 GMT 2026
    - 4.1K bytes
    - Click Count (0)
  4. docs/zh/docs/how-to/separate-openapi-schemas.md

    ### 输出响应数据的模型 { #model-for-output-response-data }
    
    如果你在文档中交互并查看响应,即使代码没有给某个 `description` 字段赋值,JSON 响应中仍包含默认值(`null`):
    
    <div class="screenshot">
    <img src="/img/tutorial/separate-openapi-schemas/image02.png">
    </div>
    
    这意味着它**总会有值**,只是有时该值可能为 `None`(在 JSON 中是 `null`)。
    
    这也意味着,使用你的 API 的客户端无需检查该值是否存在,他们可以**假设该字段总会存在**,只是有时它会是默认值 `None`。
    
    在 OpenAPI 中描述这一点的方式,是把该字段标记为**必填**,因为它总会存在。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 13 13:37:57 GMT 2026
    - 4.3K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb/SmbRandomAccessFile.java

        public synchronized void close() throws SmbException {
            try {
                if (this.handle != null) {
                    try {
                        this.handle.close();
                    } catch (final CIFSException e) {
                        throw SmbException.wrap(e);
                    }
                    this.handle = null;
                }
            } finally {
                this.file.clearAttributeCache();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/it/search/FavoritesApiTests.java

            String queryId = JsonPath.from(searchResponse).getString("query_id");
            assertTrue(queryId != null && !queryId.isEmpty(), "queryId should not be null");
    
            // Now test the favorites API
            Map<String, String> params = new HashMap<>();
            params.put("queryId", queryId);
    
            given().contentType("application/json")
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Dec 20 03:03:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/EnumMultiset.java

      @Override
      public int size() {
        return Ints.saturatedCast(size);
      }
    
      @Override
      public int count(@Nullable Object element) {
        // isActuallyE checks for null, but we check explicitly to help nullness checkers.
        if (element == null || !isActuallyE(element)) {
          return 0;
        }
        Enum<?> e = (Enum<?>) element;
        return counts[e.ordinal()];
      }
    
      // Modification Operations
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 9K bytes
    - Click Count (0)
  8. tests/test_request_params/test_body/test_optional_str.py

        assert app.openapi()["components"]["schemas"][body_model_name] == {
            "properties": {
                "p": {
                    "anyOf": [{"type": "string"}, {"type": "null"}],
                    "title": "P",
                },
            },
            "title": body_model_name,
            "type": "object",
        }
    
    
    def test_optional_str_missing():
        client = TestClient(app)
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 11.5K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/it/admin/LogTests.java

        }
    
        @Override
        protected Map<String, Object> createTestParam(int id) {
            fail(); // Unreachable
            return null;
        }
    
        @Override
        protected Map<String, Object> getUpdateMap() {
            fail(); // Unreachable
            return null;
        }
    
        @Override
        protected void testRead() {
            final Map<String, Object> searchBody = new HashMap<>();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 11 08:43:05 GMT 2026
    - 2.5K bytes
    - Click Count (0)
  10. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/DocBookBuilder.java

            stack.addFirst(document.createElement("root"));
        }
    
        List<Element> getElements() {
            List<Element> elements = new ArrayList<Element>();
            for (Node node = stack.getLast().getFirstChild(); node != null; node = node.getNextSibling()) {
                elements.add((Element) node);
            }
            return elements;
        }
    
        public void appendChild(String text) {
            appendChild(document.createTextNode(text));
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 2.8K bytes
    - Click Count (0)
Back to Top