1. 07 1月, 2015 1 次提交
    • J
      Fix typo · 46b094bf
      John 提交于
      46b094bf
  2. 05 1月, 2015 1 次提交
  3. 02 1月, 2015 1 次提交
  4. 31 12月, 2014 1 次提交
  5. 29 12月, 2014 1 次提交
  6. 11 12月, 2014 1 次提交
    • S
      Create empty EnumSets & EnumMaps in CollectionFactory · aec284a4
      Sam Brannen 提交于
      SPR-12483 introduced automatic type conversion support for EnumSet and
      EnumMap. However, the corresponding changes in CollectionFactory
      contradict the existing contract for the "create approximate" methods
      by creating a copy of the supplied set or map, thereby potentially
      including elements in the returned collection when the returned
      collection should in fact be empty.
      
      This commit addresses this issue by ensuring that the collections
      returned by createApproximateCollection() and createApproximateMap()
      are always empty.
      
      Furthermore, this commit improves the Javadoc throughout the
      CollectionFactory class.
      
      Issue: SPR-12533
      aec284a4
  7. 10 12月, 2014 3 次提交
    • S
      Improve error handling in CollectionFactory · 86f99ec8
      Sam Brannen 提交于
      This commit improves error handling in CollectionFactory by asserting
      preconditions.
      
      In addition, this commit introduces ConnectionFactoryTests.
      86f99ec8
    • S
      Suppress "rawtypes" warnings in CollectionFactory · d8ef6667
      Sam Brannen 提交于
      This commit also adds links to the newly created Eclipse bug that was
      raised for this issue.
      d8ef6667
    • S
      Work-around for Eclipse bug regarding EnumSets · fe789005
      Sam Brannen 提交于
      This commit introduces superfluous casts in CollectionFactory to
      address a bug in Eclipse 4.4.1 that prevents the code from compiling
      within Eclipse. Specifically, without these casts Eclipse displays the
      following error for use of the EnumSet.copyOf() and EnumSet.noneOf()
      methods:
      
      Type mismatch: cannot convert from EnumSet<Enum<Enum<E>>> to
      Collection<E>
      fe789005
  8. 08 12月, 2014 1 次提交
  9. 02 12月, 2014 2 次提交
  10. 30 11月, 2014 2 次提交
  11. 29 11月, 2014 2 次提交
  12. 26 11月, 2014 1 次提交
  13. 23 11月, 2014 1 次提交
  14. 22 11月, 2014 2 次提交
  15. 20 11月, 2014 1 次提交
    • C
      Allow non-String args in JOptCommandLinePropertySource · dff48ad8
      Chris Beams 提交于
      Prior to this commit, JOptCommandLinePropertySource prevented the
      possibility of non-String option arguments. This effectively prevents
      the use of JOpt's #ofType support (which allows specifying custom
      argument types).
      
      Now, non-String arguments are detected and converted to strings as
      necessary. JOpt's #ofType now works as expected. A test has been added
      to cover this case.
      dff48ad8
  16. 02 11月, 2014 1 次提交
  17. 30 10月, 2014 1 次提交
  18. 29 10月, 2014 1 次提交
  19. 21 10月, 2014 4 次提交
  20. 07 10月, 2014 1 次提交
  21. 03 10月, 2014 1 次提交
  22. 02 10月, 2014 1 次提交
  23. 01 10月, 2014 2 次提交
    • J
      Polishing · 7d307b38
      Juergen Hoeller 提交于
      7d307b38
    • S
      Optimize ResolvableType cache · 6f1acdd5
      Stephane Nicoll 提交于
      Prior to this commit, the ResolvableType static cache was holding a lot
      of duplicates for simple types. We are using too much metadata to compute
      the key when the class has no generic information. so setFoo(String foo)
      and setBar(String bar) would result in two entries in the cache because
      the TypeProvider is different. On a very simple application 65% of the
      entries in the cache were duplicate.
      
      When the type is a Class with no generic information, the ResolvableType
      instance is a simple wrapper around it so we might just as well not cache
      it at all as the cost of finding it back from the cache is higher than
      creating that simple wrapper.
      
      This commit adds an explicit check; if the type is a simple Class we just
      return a "resolved" ResolvableType instance for it. On a few test cases,
      this reduces the size of the cache by 85%
      
      Issue: SPR-12275
      6f1acdd5
  24. 25 9月, 2014 1 次提交
  25. 24 9月, 2014 1 次提交
  26. 22 9月, 2014 2 次提交
  27. 20 9月, 2014 3 次提交