1. 22 3月, 2019 3 次提交
  2. 20 3月, 2019 1 次提交
  3. 16 3月, 2019 1 次提交
  4. 12 3月, 2019 1 次提交
  5. 06 3月, 2019 2 次提交
    • S
      Report offending class in SpringFactoriesLoader in exception message · f087fd5a
      Sam Brannen 提交于
      Prior to this commit, the exception message generated by
      instantiateFactory() in SpringFactoriesLoader did not report the
      offending class in the top-level exception message. The offending class
      was in fact included in the message of the nested exception, but the
      top-level exception message on its own was a bit misleading.
      
      This commit improves the diagnostics for such failures by including the
      offending class and the target factory type in the top-level exception
      message.
      
      Closes gh-22453
      f087fd5a
    • K
      Support Kotlin suspending functions in MethodParameter · 9302cb2f
      Konrad Kamiński 提交于
      Before this commit, the return type for Kotlin suspending functions
      (as returned by MethodParameter#getParameterType and
      MethodParameter#getGenericReturnType methods) was incorrect.
      
      This change leverages Kotlin reflection instead of Java one
      to return the correct type.
      
      Closes gh-21058
      9302cb2f
  6. 05 3月, 2019 1 次提交
  7. 04 3月, 2019 1 次提交
    • A
      Fix repeated calls to DataBuffer.write(CharSequence, Charset) · 090aceb3
      Andrew Tulloch 提交于
      Prior to this commit, repeated calls to `DataBuffer.write(CharSequence,
      Charset)` would not write the given chars to the expected position in
      the original buffer.
      
      This commit fixes that by writing to the `outBuffer.position()`, offset
      by the current `DataBuffer.writePosition()`.
      
      Fixes gh-22484
      090aceb3
  8. 14 2月, 2019 1 次提交
  9. 12 2月, 2019 1 次提交
  10. 05 2月, 2019 1 次提交
  11. 18 1月, 2019 1 次提交
    • B
      Fix error when writing empty String to DataBuffer · 2b65d0e5
      Brian Clozel 提交于
      Prior to this commit, `DataBuffer.write` would throw an
      `IllegalStateException` when called with an empty `String`, since the
      `CharsetEncoder` would be flushed on an incorrent state.
      
      This commit skips entirely the encoding phase for empty `String`.
      
      Fixes #22262
      2b65d0e5
  12. 09 1月, 2019 2 次提交
  13. 25 12月, 2018 1 次提交
  14. 21 12月, 2018 3 次提交
    • A
      Add test for calculateCapacity · 5a8b8b11
      Arjen Poutsma 提交于
      Issue: SPR-17558
      Closes gh-2054
      5a8b8b11
    • B
      Use DataBuffer.write in CharSequenceEncoder · 4955d08f
      Brian Clozel 提交于
      Since SPR-17558, `DataBuffer` now offers a new method to write Strings
      to them. This commit makes `CharSequenceEncoder` use that.
      
      Issue: SPR-17558
      4955d08f
    • B
      Write CharSequence instances to DataBuffers · 6361b0cb
      Brian Clozel 提交于
      Prior to this commit, one could write a `CharSequence` to an existing
      `DataBuffer` instance by turning it into a byte array or `ByteBuffer`
      first. This had the following disadvantages:
      
      1. Memory allocation was not efficient (not leveraging pooled memory
      when available)
      2. Dealing with `CharsetEncoder` is not always easy
      3. `DataBuffer` implementations, like `NettyDataBuffer` can use
      optimized implementations in some cases
      
      This commit adds a new `DataBuffer#write(CharSequence, Charset)` method
      for those cases and also an `ensureCapacity` method useful for checking
      that the current buffer has enough capacity to write to it..
      
      Issue: SPR-17558
      6361b0cb
  15. 13 12月, 2018 2 次提交
  16. 04 12月, 2018 1 次提交
  17. 24 11月, 2018 1 次提交
  18. 23 11月, 2018 1 次提交
  19. 21 11月, 2018 2 次提交
  20. 19 11月, 2018 3 次提交
  21. 16 11月, 2018 2 次提交
  22. 14 11月, 2018 2 次提交
  23. 13 11月, 2018 3 次提交
    • A
      Revert optimization in StringDecoder · 4182935b
      Arjen Poutsma 提交于
      This commit reverts the first optimizations listed in
      fa096dc6, as the default delimiters
      do vary, namely by the charset given in the message mime type.
      The mimetype charset might not be compatible with ASCII (i.e. anything
      but UTF-8 or ISO-8859-1, for instance it might be UTF-16), and will not
      successfully find the default delimiters as a consequence.
      
      Added test to indicate the bug.
      4182935b
    • A
      Add and use AbstractEncoderTestCase · 3bab3515
      Arjen Poutsma 提交于
      Introduce new base test case for encoder tests, and use it.
      
      Issue: SPR-17449
      3bab3515
    • A
      Add LeakAwareDataBufferFactory · 0c0de851
      Arjen Poutsma 提交于
      Introduce a data buffer factory that can check for memory leaks in
      @after methods.
      
      Issue: SPR-17449
      0c0de851
  24. 09 11月, 2018 1 次提交
  25. 24 10月, 2018 1 次提交
  26. 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