1. 24 3月, 2018 2 次提交
  2. 17 2月, 2018 1 次提交
  3. 18 8月, 2017 1 次提交
    • J
      Enforce non-null value from getBean and at injection points · b94302b5
      Juergen Hoeller 提交于
      Bean-derived null values may still get passed into bean properties and injection points but only if those are declared as non-required. Note that getBean will never return null; a manual bean.equals(null) / "null".equals(bean.toString()) check identifies expected null values now.  This will only ever happen with custom FactoryBeans or factory methods returning null - and since all common cases are handled by autowiring or bean property values in bean definitions, there should be no need to ever manually check for such a null value received from getBean.
      
      Issue: SPR-15829
      b94302b5
  4. 17 8月, 2017 1 次提交
  5. 30 6月, 2017 1 次提交
  6. 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
  7. 01 6月, 2017 1 次提交
  8. 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
  9. 08 11月, 2016 1 次提交
  10. 27 7月, 2016 1 次提交
  11. 06 7月, 2016 1 次提交
  12. 05 7月, 2016 1 次提交
  13. 13 11月, 2015 1 次提交
  14. 27 2月, 2015 1 次提交
  15. 07 12月, 2014 1 次提交
  16. 03 9月, 2014 1 次提交
  17. 21 8月, 2014 1 次提交
  18. 20 8月, 2014 1 次提交
  19. 15 7月, 2014 1 次提交
  20. 02 12月, 2013 1 次提交
  21. 26 11月, 2013 1 次提交
    • P
      Fix remaining compiler warnings · 59002f24
      Phillip Webb 提交于
      Fix remaining Java compiler warnings, mainly around missing
      generics or deprecated code.
      
      Also add the `-Werror` compiler option to ensure that any future
      warnings will fail the build.
      
      Issue: SPR-11064
      59002f24
  22. 25 7月, 2013 1 次提交
  23. 14 5月, 2013 1 次提交
  24. 29 3月, 2013 1 次提交
  25. 02 1月, 2013 1 次提交
  26. 29 12月, 2012 2 次提交
  27. 13 12月, 2012 1 次提交
  28. 26 11月, 2012 1 次提交
  29. 09 11月, 2012 2 次提交
  30. 10 10月, 2012 1 次提交
  31. 31 1月, 2012 1 次提交
    • C
      Rename modules {org.springframework.*=>spring-*} · 02a4473c
      Chris Beams 提交于
      This renaming more intuitively expresses the relationship between
      subprojects and the JAR artifacts they produce.
      
      Tracking history across these renames is possible, but it requires
      use of the --follow flag to `git log`, for example
      
          $ git log spring-aop/src/main/java/org/springframework/aop/Advisor.java
      
      will show history up until the renaming event, where
      
          $ git log --follow spring-aop/src/main/java/org/springframework/aop/Advisor.java
      
      will show history for all changes to the file, before and after the
      renaming.
      
      See http://chrisbeams.com/git-diff-across-renamed-directories
      02a4473c
  32. 12 5月, 2011 1 次提交
    • C
      Fix @Autowired+@PostConstruct+@Configuration issue · 2afeb08e
      Chris Beams 提交于
      A subtle issue existed with the way we relied on isCurrentlyInCreation
      to determine whether a @Bean method is being called by the container
      or by user code.  This worked in most cases, but in the particular
      scenario laid out by SPR-8080, this approach was no longer sufficient.
      
      This change introduces a ThreadLocal that contains the factory method
      currently being invoked by the container, such that enhanced @Bean
      methods can check against it to see if they are being called by the
      container or not.  If so, that is the cue that the user-defined @Bean
      method implementation should be invoked in order to actually create
      the bean for the first time.  If not, then the cached instance of
      the already-created bean should be looked up and returned.
      
      See ConfigurationClassPostConstructAndAutowiringTests for
      reproduction cases and more detail.
      
      Issue: SPR-8080
      2afeb08e
  33. 08 6月, 2010 1 次提交
  34. 25 11月, 2008 1 次提交
  35. 20 11月, 2008 1 次提交
  36. 23 10月, 2008 1 次提交