1. 13 11月, 2018 1 次提交
  2. 27 10月, 2018 1 次提交
    • R
      Minor refactoring in StringDecoder + polish · fa096dc6
      Rossen Stoyanchev 提交于
      1. Avoid re-creating the List with delimited byte arrays on every
      request if using the default delimiters which don't vary by charset.
      
      2. Replace flatMap with flatMapIterable for splitOnDelimiter.
      
      3. Avoid going through DataBufferUtils#join, and unnecessarily creating
      Flux from the List, since the join method needs a list anyway.
      fa096dc6
  3. 23 10月, 2018 1 次提交
    • A
      Fix ResourceRegionEncoder and tests · 51bb96db
      Arjen Poutsma 提交于
      Fix ResourceRegionEncoder so that it checks for resource existance
      before writing boundaries. Also defer data buffer allocation until
      necessary.
      
      Issue: SPR-17419
      51bb96db
  4. 22 10月, 2018 1 次提交
  5. 15 9月, 2018 2 次提交
    • R
      Add LogFormatUtils · db8e9eaf
      Rossen Stoyanchev 提交于
      1. Helper method to eliminate duplication in formatting (de-)serialized
         values for logging introduced with prior commit #e62298.
      
      2. Helper method for TRACE vs DEBUG logging with different details.
      
      Issue: SPR-17254
      db8e9eaf
    • R
      Truncate logged encoded and decoded values if necessary · e62298ea
      Rossen Stoyanchev 提交于
      At DEBUG show up to 100 chars, at TRACE show full formatted value.
      
      Note that the formatValue helper method is duplicated a number of times
      in this commit. A utility method will likely be added in spring-core
      through an extra commit.
      
      Issue: SPR-17254
      e62298ea
  6. 25 7月, 2018 2 次提交
  7. 11 7月, 2018 1 次提交
  8. 07 7月, 2018 2 次提交
  9. 05 7月, 2018 1 次提交
  10. 30 6月, 2018 1 次提交
  11. 28 6月, 2018 3 次提交
  12. 23 6月, 2018 1 次提交
  13. 05 6月, 2018 1 次提交
  14. 17 3月, 2018 1 次提交
  15. 11 3月, 2018 1 次提交
  16. 09 3月, 2018 1 次提交
  17. 07 3月, 2018 1 次提交
  18. 09 2月, 2018 1 次提交
  19. 02 2月, 2018 1 次提交
  20. 22 1月, 2018 1 次提交
  21. 12 1月, 2018 1 次提交
    • A
      Use DataBufferUtils.compose and remove writeAggregator · 67e7c784
      Arjen Poutsma 提交于
      Use DataBufferUtils.compose instead of writeAggregator to combine
      multiple data buffers into one, as the write aggregator would not work
      when the initial data buffer did not have enough capacity to contain
      all subsequent buffers.
      
      Removed writeAggregator, as it is no longer needed.
      
      Issue: SPR-16365
      67e7c784
  22. 10 1月, 2018 1 次提交
  23. 15 12月, 2017 1 次提交
  24. 15 9月, 2017 1 次提交
    • S
      Revisit nullability annotations · 1bc93e3d
      Sebastien Deleuze 提交于
      This commit introduces the following changes.
      
      1) It adds a new Spring @NonNull annotation which allows to apply
      @NonNullApi semantic on a specific element, like @Nullable does.
      Combined with @Nullable, it allows partial null-safety support when
      package granularity is too broad.
      
      2) @Nullable and @NonNull can apply to ElementType.TYPE_USE in order
      to be used on generic type arguments (SPR-15942).
      
      3) Annotations does not apply to ElementType.TYPE_PARAMETER anymore
      since it is not supported yet (applicability for such use case is
      controversial and need to be discussed).
      
      4) @NonNullApi does not apply to ElementType.FIELD anymore since in a
      lot of use cases (private, protected) it is not part for the public API
      + its usage should remain opt-in. A dedicated @NonNullFields annotation
      has been added in order to set fields default to non-nullable.
      
      5) Updated Javadoc and reference documentation.
      
      Issue: SPR-15756
      1bc93e3d
  25. 17 7月, 2017 1 次提交
    • R
      Methods for reading a Resource in DataBufferUtils · d56fedc2
      Rossen Stoyanchev 提交于
      Currently ResourceEncoder and ResourceRegionEncoder use DataBufferUtils
      to read resource with an AsynchronousFileChannel if it is a file or
      otherwise fallback on getting the channel from the resource.
      
      The same is now required in other places where a Resource needs to be
      read and is also generally useful.
      
      Issue: SPR-15773
      d56fedc2
  26. 12 6月, 2017 1 次提交
  27. 07 6月, 2017 1 次提交
    • J
      Consistent use of @Nullable across the codebase (even for internals) · f813712f
      Juergen Hoeller 提交于
      Beyond just formally declaring the current behavior, this revision actually enforces non-null behavior in selected signatures now, not tolerating null values anymore when not explicitly documented. It also changes some utility methods with historic null-in/null-out tolerance towards enforced non-null return values, making them a proper citizen in non-null assignments.
      
      Some issues are left as to-do: in particular a thorough revision of spring-test, and a few tests with unclear failures (ignored as "TODO: NULLABLE") to be sorted out in a follow-up commit.
      
      Issue: SPR-15540
      f813712f
  28. 01 6月, 2017 1 次提交
  29. 31 5月, 2017 1 次提交
  30. 27 5月, 2017 1 次提交
    • S
      Introduce null-safety of Spring Framework API · 87598f48
      Sebastien Deleuze 提交于
      This commit introduces 2 new @Nullable and @NonNullApi
      annotations that leverage JSR 305 (dormant but available via
      Findbugs jsr305 dependency and already used by libraries
      like OkHttp) meta-annotations to specify explicitly
      null-safety of Spring Framework parameters and return values.
      
      In order to avoid adding too much annotations, the
      default is set at package level with @NonNullApi and
      @Nullable annotations are added when needed at parameter or
      return value level. These annotations are intended to be used
      on Spring Framework itself but also by other Spring projects.
      
      @Nullable annotations have been introduced based on Javadoc
      and search of patterns like "return null;". It is expected that
      nullability of Spring Framework API will be polished with
      complementary commits.
      
      In practice, this will make the whole Spring Framework API
      null-safe for Kotlin projects (when KT-10942 will be fixed)
      since Kotlin will be able to leverage these annotations to
      know if a parameter or a return value is nullable or not. But
      this is also useful for Java developers as well since IntelliJ
      IDEA, for example, also understands these annotations to
      generate warnings when unsafe nullable usages are detected.
      
      Issue: SPR-15540
      87598f48
  31. 06 5月, 2017 2 次提交
    • R
      Polish · 0d28a1c3
      Rossen Stoyanchev 提交于
      0d28a1c3
    • R
      Refine encoding/decoding exception handling · 83e0e160
      Rossen Stoyanchev 提交于
      Starting with removing a package cycle on the use of
      ResponseStatusException in the codec package, this commit generally
      refines codec exception handling.
      
      The new [Encoding|Decoding]Exception mirror the existing
      HttpMessageNot[Readable|Writable]Exception and are used similarly
      especially to differentiate betwen 400 and 500 errors when parsing
      server request body content.
      
      The commit also aligns some of the exception handling of JSON and XML
      on the WebFlux side with that on the Spring MVC side.
      
      Issue: SPR-15516
      83e0e160
  32. 20 4月, 2017 1 次提交
  33. 15 4月, 2017 1 次提交
  34. 12 4月, 2017 1 次提交