1. 15 7月, 2016 8 次提交
  2. 14 7月, 2016 13 次提交
  3. 13 7月, 2016 12 次提交
  4. 12 7月, 2016 7 次提交
    • B
      Move server testing infrastructure to test sources · e906a78e
      Brian Clozel 提交于
      e906a78e
    • S
      Move "What's New" reference manual chapter to the wiki · c341b39f
      Sam Brannen 提交于
      A "What's New" page has been created in the Spring Framework wiki:
      
      https://github.com/spring-projects/spring-framework/wiki/What's-New-in-the-Spring-Framework
      
      This commit therefore links to the new wiki page from the appendix of
      the reference manual and deletes the existing "What's New" chapter from
      the reference manual.
      
      Issue: SPR-14449
      c341b39f
    • S
      Use Supplier<String> support in Assert in spring-test · 68b3bc03
      Sam Brannen 提交于
      This commit makes use of the new Supplier<String> variants of utility
      methods in org.springframework.util.Assert within the spring-test
      module.
      
      Issue: SPR-14450
      68b3bc03
    • S
      Use Supplier<String> support in Assert in spring-core · 264f5860
      Sam Brannen 提交于
      This commit makes use of the new Supplier<String> variants of utility
      methods in org.springframework.util.Assert within the spring-core
      module.
      
      Issue: SPR-14450
      264f5860
    • S
      Introduce Supplier<String> support in Assert util · 17dd5dd2
      Sam Brannen 提交于
      Prior to this commit, utility methods in
      org.springframework.util.Assert accepted String arguments for custom
      error messages. Such Strings are evaluated (e.g., concatenated)
      eagerly, and for performance reasons, it was therefore not always
      possible to make use of these utility methods. Consequently, there are
      several places in the code base that "inline" identical functionality
      in order to lazily evaluate error message concatenation and avoid an
      unnecessary performance penalty. This leads to verbose code like the
      following.
      
      if (!contextPath.startsWith("/")) {
          throw new IllegalArgumentException("contextPath '" + contextPath +
          "' must start with '/'.");
      }
      if (contextPath.endsWith("/")) {
          throw new IllegalArgumentException("contextPath '" + contextPath +
          "' must not end with '/'.");
      }
      
      This commit addresses this shortcoming by introducing Supplier<String>
      variants of all utility methods in org.springframework.util.Assert that
      allow custom error messages to be evaluated lazily via a lambda
      expression that is only evaluated if the assertion fails. This results
      in a simplification of the previous examples as follows.
      
      Assert.isTrue(contextPath.startsWith("/"), () -> "contextPath '" +
          contextPath + "' must start with '/'.");
      Assert.isTrue(!contextPath.endsWith("/"), () -> "contextPath '" +
          contextPath + "' must not end with '/'.");
      
      Issue: SPR-14450
      17dd5dd2
    • S
      Clean up warnings in spring-core · 3d4338f5
      Sam Brannen 提交于
      3d4338f5
    • B
      Polish AntPathMatcher.setTrimTokens javadoc · 147a35f4
      Brian Clozel 提交于
      Issue: SPR-14247
      147a35f4