- 15 5月, 2019 1 次提交
-
-
由 Arjen Poutsma 提交于
* Added DataBufferUtils.split variant that takes multiple delimiters as argument (instead of 1). * Use this new split() variant from within StringDecoder, replacing its inefficient algorithm with the Knuth-Morris-Pratt algorithm.
-
- 13 5月, 2019 1 次提交
-
-
由 Sam Brannen 提交于
-
- 12 5月, 2019 1 次提交
-
-
由 Sam Brannen 提交于
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
-
- 09 5月, 2019 3 次提交
-
-
由 Phillip Webb 提交于
Migrate all tests to consistently use BDD Mockito. Also add checksyle rule to enforce going forwards.
-
由 Phillip Webb 提交于
Organize test imports to expand all '.*' static imports into fully qualified imports. This update will allow us to use additional checkstyle rules in the future, and will also help if we migrate fully to AssertJ.
-
由 Phillip Webb 提交于
Delete the `Matches` class since it's no longer being used.
-
- 08 5月, 2019 12 次提交
-
-
由 Phil Webb 提交于
* Add limited checkstyles to test code Add a limited set of checkstyle rules to the test codebase to improve code consistency. * Fix checksyle violations in test code * Organize imports to fix checkstyle for test code * Migrate to assertThatExceptionOfType Migrate aware from ExpectedException rules to AssertJ exception assertions. Also include a checkstyle rules to ensure that the the ExpectedException is not accidentally used in the future. See gh-22894
-
由 Juergen Hoeller 提交于
Includes fix for typo in visitor class names. See gh-22909
-
由 Phillip Webb 提交于
Deprecate the public `StandardMetadata` constructors to make it clearer that these classes should not be instantiated directly. A new `AnnotationMetadata.introspect` factory method has been added which can now be used to obtain instances. This change will allow use to make the constructors package private and drop the `nestedAnnotationsAsMap` parameter in a future release. Closes gh-22906
-
由 Phillip Webb 提交于
Replace the existing ASM based readers with new implementations that also support MergedAnnotations. The meta-data classes themselves are now immutable, and constructed via separate reader classes. The `SimpleMetadataReader` class has been updated to return the new classes, however the old ones remain since some of them are public and might be being used directly. Closes gh-22884
-
由 Phillip Webb 提交于
Add `AnnotatedTypeMetaData.getAnnotations()` that can be used to access annotation details using the `MergedAnnotations` interface. Where possible, the existing annotation methods have been migrated to call `getAnnotation()`, rather than needing their own implementation. The existing ASM based meta-data implementations have not been updated since they will be deprecated and replaced in a subsequent commit. See gh-22884
-
由 Phillip Webb 提交于
Add some additional tests to provide more coverage of class and method meta-data support. See gh-22884
-
由 Phillip Webb 提交于
Update `StandardAnnotationMetadata` and `AnnotationMetadataReadingVisitor` so that `java.lang.annotation` annotations are consistently skipped. Closes gh-22885
-
由 Phillip Webb 提交于
Update ASM based metadata readers so that only RetentionPolicy.RUNTIME annotations are exposed. This aligned behavior with the reflection based implementation. Closes gh-22886
-
由 Phillip Webb 提交于
Add a factory method to `MergedAnnotation` that allows an instance to be created for an explicit collection of root annotations. This method will allow ASM based readers to expose a `MergedAnnotation` instance that has root annotations loaded from bytecode, and meta-annotations loaded using reflection. See gh-22884
-
由 Phillip Webb 提交于
Update TypeMappedAnnotation so that Strings can be used to represent Class attribute values. This will allow ASM annotation readers to present a `MergedAnnotation` instance without necessarily having the actual class values on the classpath. When the underlying value is a String, any calls to `getValue(name, String.class)` or `asMap(Adapt.CLASS_TO_STRING)` will simply return the original String. Calls that need the actual Class result (such as `getClass`) will use `Class.forName` and may throw a `ClassNotFoundException` at that point. This commit also allows an empty Object[] to be used to represent any empty primitive array. See gh-22884
-
由 Phillip Webb 提交于
Rename `from` to `of` for the `MergedAnnotation` factory methods that work with Maps. The previous name was a little confusing, especially when an annotation source parameter was specified. The new method name helps to make it clearer when the user is explicitly defining the attributes of the annotation, as opposed to picking them up from the source.
-
由 Phillip Webb 提交于
Add a `getTypeHierarchy()` method to `MergedAnnotation` that can be used to return the full type hierarchy information. This method is specifically designed to be used in combination with `MergedAnnotationPredicates.unique`. This update also allows us to delete the `parentAndType` method from `AnnotatedElementUtils`. Closes gh-22908
-
- 07 5月, 2019 4 次提交
-
-
由 Juergen Hoeller 提交于
Closes gh-22912
-
由 Juergen Hoeller 提交于
-
由 Arjen Poutsma 提交于
Added two methods to DataBufferUtils: * matcher(byte[]), which returns a Matcher object that can be used to find a delimiter in a data buffer. * split(Publisher<DataBuffer>, byte[] delimiter), which splits a given stream of data buffers around a given delimiter.
-
由 Arjen Poutsma 提交于
Add method retainedSlice to the DataBuffer, defaulting to using DataBufferUtils for retain, but allowing for ByteBuf specific override.
-
- 06 5月, 2019 1 次提交
-
-
由 Sam Brannen 提交于
org.junit.Assert.assertThat() is deprecated as of JUnit 4.13. See gh-22894
-
- 03 5月, 2019 1 次提交
-
-
由 Juergen Hoeller 提交于
-
- 27 4月, 2019 1 次提交
-
-
由 Phillip Webb 提交于
Ensure that results returned from keySet, entrySet & values are tracked to remove case insensitive keys from the source map. Closes gh-22821
-
- 26 4月, 2019 1 次提交
-
-
由 Phillip Webb 提交于
Update `MergedAnnotation` with a `getRoot()` method that allows the root direct annotation to be retrieved easily. Closes gh-22818
-
- 21 4月, 2019 1 次提交
-
-
由 Sam Brannen 提交于
See gh-22818
-
- 17 4月, 2019 1 次提交
-
-
由 Rossen Stoyanchev 提交于
Following on 3ebbfa21 where the local refCount was removed in favor of using the internal refCount of the native data buffer, this commit ensures that LeakAwareDataBufferFactory uses a PooledDataBufferFactory delegate by default. There are also fixes for test issues with eager allocation uncovered by these changes in StringDecoder and ResourceDecoder.
-
- 11 4月, 2019 1 次提交
-
-
由 Rossen Stoyanchev 提交于
LeakAwareDataBuffer was keeping its own refCount rather than checking through the delegate. This leads to false leak reports in a sequence where an allocated buffer is retained and then sliced since it is not aware of the changes to the refCount through the slice.
-
- 10 4月, 2019 1 次提交
-
-
由 Rossen Stoyanchev 提交于
-
- 09 4月, 2019 1 次提交
-
-
由 Juergen Hoeller 提交于
-
- 08 4月, 2019 3 次提交
-
-
由 Sam Brannen 提交于
Due to the changes in a7425c81, we no longer need to execute tests using the JMXMP protocol in PERFORMANCE builds. This commit removes the JMXMP constant from the TestGroup enum and updates affected tests, thereby effectively including such tests in the standard build from now on. See gh-22757
-
由 Juergen Hoeller 提交于
Closes gh-22766
-
由 Juergen Hoeller 提交于
-
- 06 4月, 2019 4 次提交
-
-
由 Phillip Webb 提交于
Add a convenience method that allows a `MergedAnnotation` to be converted into an `AnnotationAttributes` instance. Also rename the `MapValues` enum to `Adapt` which generally seems to read better. Closes gh-22738
-
由 Phillip Webb 提交于
-
由 Phillip Webb 提交于
Add tests for `MissingMergedAnnotation` See gh-21697
-
由 Phillip Webb 提交于
Delete `AnnotationAttributeExtractor` which is package private and no longer used. Closes gh-22753
-
- 04 4月, 2019 2 次提交
-
-
由 Arjen Poutsma 提交于
-
由 Juergen Hoeller 提交于
See gh-22726
-