- 23 3月, 2019 38 次提交
-
-
由 Sam Brannen 提交于
-
由 Johnny Lim 提交于
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
-
由 Sam Brannen 提交于
See gh-22617 gh-22622 gh-22635
-
由 Sam Brannen 提交于
This merges the URL Cleanup PRs along with fixes. Closes gh-22617 gh-22622 gh-22635
-
由 Sam Brannen 提交于
See gh-22617 gh-22622 gh-22635
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
-
由 Juergen Hoeller 提交于
See gh-2060
-
由 Juergen Hoeller 提交于
Includes consistent ignoring of all java.lang (meta-)annotations. Closes gh-22586
-
由 Sam Brannen 提交于
Namespace handlers are mapped based on the canonical names for XML namespaces which in Spring do not use "https" as the scheme. See gh-22617 gh-22622 gh-22635
-
由 Sam Brannen 提交于
See gh-22617 gh-22622 gh-22635
-
由 Sam Brannen 提交于
See gh-22617 gh-22622 gh-22635
-
由 Sam Brannen 提交于
See gh-22617 gh-22622 gh-22635
-
由 Sam Brannen 提交于
See gh-22617 gh-22622 gh-22635
-
由 Phillip Webb 提交于
Closes gh-22585
-
由 Phillip Webb 提交于
Closes gh-22584
-
由 Phillip Webb 提交于
Closes gh-22582
-
由 Phillip Webb 提交于
Closes gh-22581
-
由 Phillip Webb 提交于
Refine the element filtering performed by `AnnotationsScanner` to also cover `org.springframework.util` and most `com.sun` classes which turn out to be referenced quite frequently and which we know contain no useful annotations. See gh-21697
-
由 Phillip Webb 提交于
Add a cache to `BridgeMethodResolver` to help with repeated calls to resolve the same methods. Since bridge method resolution can be somewhat expensive (especially when resolving generics), and the number of bridge methods is quite small, a cache generally helps. This commit also simplifies the code a little by calling `doWithMethods` directly rather than relying on `ReflectionUtils.getAllDeclaredMethods` to do so. The methods list is now always created, but we save the list creation that `getAllDeclaredMethods` used to do. Closes gh-22579
-
由 Phillip Webb 提交于
Add an early exit to `StringUtils.cleanPath` to save array creating and string concatenation. With a typical Spring application, the `cleanPath` method can be called over 600 times, often with a path constructed by a `ClassPathResource` that is likely to already be clean. Closes gh-22568
-
由 Phillip Webb 提交于
Add some additional empty array constants to `ReflectionUtils` to save us creating new arrays for zero length results. See gh-22567
-
由 Phillip Webb 提交于
Update `ConcurrentReferenceHashMap` to make some methods more inline friendly, and to manually inline a few others. These minor optimizations don't make a great deal of difference for most applications, but seem worthwhile since we use `ConcurrentReferenceHashMap` for many internal caches. Closes gh-22566
-
由 Phillip Webb 提交于
Update `ConfigurationClassParser` to skip `java.lang.annotation` types which were often processed but would never provide useful results. Also use a single shared immutable `SourceClass` instance to represent `Object.class`. Closes gh-22563
-
由 Phillip Webb 提交于
Delete `InternalAnnotationUtils` and `InternalAnnotatedElementUtils` and migrate exclusively to the new `MergedAnnotations` API. Closes gh-22562
-
由 Phillip Webb 提交于
Migrate all possible `AnnotationUtils` and `AnnotatedElementUtils` method to the `MergedAnnotation` API, verify results against the old implementations. All migrated methods now call both the new API and the old version and ensure that the same results or exceptions are raised. A full build of both Spring Framework and Spring Boot has been executed to ensure, as much as possible, that the migration does not cause unexpected regressions. See gh-22562
-
由 Phillip Webb 提交于
Create internal variants of the existing `AnnotationUtils` and `AnnotatedElementUtils` classes and migrate the existing classes to use them. The internal variants will be used to check that the same results are given as we migrate the utils methods to use the new `MergedAnnotations` API. See gh-22562
-
由 Phillip Webb 提交于
Add new `MergedAnnotations` and `MergedAnnotation` interfaces that attempt to provide a uniform way for dealing with merged annotations. Specifically, the new API provides alternatives for the static methods in `AnnotationUtils` and `AnnotatedElementUtils` and supports Spring's comprehensive annotation attribute `@AliasFor` features. The interfaces also open the possibility of the same API being exposed from the `AnnotationMetadata` interface. Additional utility classes for collecting, filtering and selecting annotations have also been added. Typical usage for the new API would be something like: MergedAnnotations.from(Example.class) .stream(MyAnnotation.class) .map(a -> a.getString("value")) .forEach(System.out::println); Closes gh-21697
-
由 Phillip Webb 提交于
Add a new test class to help cover annotation introspection failure handling. These tests were previously missing and are important to ensure that annotation util code changes don't introduce regressions. See gh-21697
-
由 Phillip Webb 提交于
Add a public variant of `getDeclaredMethods` that defensively copies the cached methods array. This is often more faster and more convenient for users than calling `doWithLocalMethods`. We still retain most of the benefits of the cache, namely fewer security manager calls and not as many `Method` instances being created. Closes gh-22580
-
由 Phillip Webb 提交于
Add AssertJ as a test scope dependency for all sub-projects. Closes gh-22561
-
由 Phillip Webb 提交于
-
由 Phillip Webb 提交于
-
由 Rossen Stoyanchev 提交于
-
由 Rossen Stoyanchev 提交于
See gh-22598
-
由 wenqi.huang 提交于
-
- 22 3月, 2019 2 次提交
-
-
由 Sam Brannen 提交于
This merges the URL Cleanup PRs along with fixes. Closes gh-22617 gh-22622 gh-22635
-
由 Sam Brannen 提交于
-