1. 24 7月, 2019 1 次提交
  2. 23 3月, 2019 1 次提交
  3. 22 3月, 2019 1 次提交
  4. 08 3月, 2019 1 次提交
  5. 07 3月, 2019 1 次提交
  6. 21 11月, 2018 1 次提交
  7. 05 10月, 2018 1 次提交
    • W
      Fix formatting · 9d5aced8
      www 提交于
      Prefix the opening brace with a single space in some classes.
      Replace tab character with space in javadoc of AttributeAccessor.
      Also fix some other trivial formatting errors.
      
      Closes gh-1979
      9d5aced8
  8. 21 9月, 2017 1 次提交
  9. 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
  10. 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
  11. 04 4月, 2017 1 次提交
  12. 05 7月, 2016 1 次提交
  13. 10 6月, 2016 1 次提交
  14. 13 6月, 2015 1 次提交
    • S
      Introduce general purpose isEmpty() method in ObjectUtils · 05de9a8c
      Sam Brannen 提交于
      Prior to this commit, there existed several isEmpty() methods scattered
      across various utilities such as ObjectUtils, CollectionUtils, and
      StringUtils; however, each of these methods requires a cast to the type
      supported for that particular variant.
      
      This commit introduces a general-purpose isEmpty(Object) method in
      ObjectUtils that transparently supports multiple object types in a
      central location without the need for casts or juggling multiple
      utility classes.
      
      Issue: SPR-13119
      05de9a8c
  15. 18 7月, 2014 1 次提交
  16. 15 1月, 2014 2 次提交
  17. 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
  18. 26 1月, 2013 1 次提交
  19. 29 12月, 2012 2 次提交
  20. 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
  21. 08 2月, 2011 2 次提交
    • C
      Introduce FeatureSpecification support · b4fea47d
      Chris Beams 提交于
      Introduce FeatureSpecification interface and implementations
      
          FeatureSpecification objects decouple the configuration of
          spring container features from the concern of parsing XML
          namespaces, allowing for reuse in code-based configuration
          (see @Feature* annotations below).
      
          * ComponentScanSpec
          * TxAnnotationDriven
          * MvcAnnotationDriven
          * MvcDefaultServletHandler
          * MvcResources
          * MvcViewControllers
      
      Refactor associated BeanDefinitionParsers to delegate to new impls above
      
          The following BeanDefinitionParser implementations now deal only
          with the concern of XML parsing.  Validation is handled by their
          corresponding FeatureSpecification object.  Bean definition creation
          and registration is handled by their corresponding
          FeatureSpecificationExecutor type.
      
          * ComponentScanBeanDefinitionParser
          * AnnotationDrivenBeanDefinitionParser (tx)
          * AnnotationDrivenBeanDefinitionParser (mvc)
          * DefaultServletHandlerBeanDefinitionParser
          * ResourcesBeanDefinitionParser
          * ViewControllerBeanDefinitionParser
      
      Update AopNamespaceUtils to decouple from XML (DOM API)
      
          Methods necessary for executing TxAnnotationDriven specification
          (and eventually, the AspectJAutoProxy specification) have been
          added that accept boolean arguments for whether to proxy
          target classes and whether to expose the proxy via threadlocal.
      
          Methods that accepted and introspected DOM Element objects still
          exist but have been deprecated.
      
      Introduce @FeatureConfiguration classes and @Feature methods
      
          Allow for creation and configuration of FeatureSpecification objects
          at the user level.  A companion for @Configuration classes allowing
          for completely code-driven configuration of the Spring container.
      
          See changes in ConfigurationClassPostProcessor for implementation
          details.
      
          See Feature*Tests for usage examples.
      
          FeatureTestSuite in .integration-tests is a JUnit test suite designed
          to aggregate all BDP and Feature* related tests for a convenient way
          to confirm that Feature-related changes don't break anything.
          Uncomment this test and execute from Eclipse / IDEA. Due to classpath
          issues, this cannot be compiled by Ant/Ivy at the command line.
      
      Introduce @FeatureAnnotation meta-annotation and @ComponentScan impl
      
          @FeatureAnnotation provides an alternate mechanism for creating
          and executing FeatureSpecification objects.  See @ComponentScan
          and its corresponding ComponentScanAnnotationParser implementation
          for details.  See ComponentScanAnnotationIntegrationTests for usage
          examples
      
      Introduce Default[Formatting]ConversionService implementations
      
          Allows for convenient instantiation of ConversionService objects
          containing defaults appropriate for most environments.  Replaces
          similar support originally in ConversionServiceFactory (which is now
          deprecated). This change was justified by the need to avoid use
          of FactoryBeans in @Configuration classes (such as
          FormattingConversionServiceFactoryBean). It is strongly preferred
          that users simply instantiate and configure the objects that underlie
          our FactoryBeans. In the case of the ConversionService types, the
          easiest way to do this is to create Default* subtypes. This also
          follows convention with the rest of the framework.
      
      Minor updates to util classes
      
          All in service of changes above. See diffs for self-explanatory
          details.
      
          * BeanUtils
          * ObjectUtils
          * ReflectionUtils
      b4fea47d
    • C
      Make ObjectUtils.addObjectToArray() generic · b04987cc
      Chris Beams 提交于
      b04987cc
  22. 08 9月, 2009 1 次提交
  23. 22 2月, 2009 1 次提交
  24. 20 11月, 2008 1 次提交
  25. 22 10月, 2008 1 次提交