Polish
This commit is contained in:
@@ -17,7 +17,7 @@ package org.springframework.cglib.core;
|
||||
|
||||
@Deprecated
|
||||
public class TinyBitSet {
|
||||
private static int[] T = new int[256];
|
||||
private static final int[] T = new int[256];
|
||||
private int value = 0;
|
||||
|
||||
private static int gcount(int x) {
|
||||
|
||||
@@ -145,7 +145,7 @@ public abstract class RepeatableContainers {
|
||||
|
||||
private static final Object NONE = new Object();
|
||||
|
||||
private static StandardRepeatableContainers INSTANCE = new StandardRepeatableContainers();
|
||||
private static final StandardRepeatableContainers INSTANCE = new StandardRepeatableContainers();
|
||||
|
||||
StandardRepeatableContainers() {
|
||||
super(null);
|
||||
@@ -270,7 +270,7 @@ public abstract class RepeatableContainers {
|
||||
*/
|
||||
private static class NoRepeatableContainers extends RepeatableContainers {
|
||||
|
||||
private static NoRepeatableContainers INSTANCE = new NoRepeatableContainers();
|
||||
private static final NoRepeatableContainers INSTANCE = new NoRepeatableContainers();
|
||||
|
||||
NoRepeatableContainers() {
|
||||
super(null);
|
||||
|
||||
@@ -42,7 +42,7 @@ import org.springframework.util.MimeTypeUtils;
|
||||
public class ResourceDecoder extends AbstractDataBufferDecoder<Resource> {
|
||||
|
||||
/** Name of hint with a filename for the resource(e.g. from "Content-Disposition" HTTP header). */
|
||||
public static String FILENAME_HINT = ResourceDecoder.class.getName() + ".filename";
|
||||
public static final String FILENAME_HINT = ResourceDecoder.class.getName() + ".filename";
|
||||
|
||||
|
||||
public ResourceDecoder() {
|
||||
|
||||
@@ -897,9 +897,9 @@ public class PathMatchingResourcePatternResolver implements ResourcePatternResol
|
||||
}
|
||||
|
||||
/**
|
||||
* If it's a "file:" URI, use FileSystemResource to avoid duplicates
|
||||
* for the same path discovered via class-path scanning.
|
||||
*/
|
||||
* If it's a "file:" URI, use FileSystemResource to avoid duplicates
|
||||
* for the same path discovered via class-path scanning.
|
||||
*/
|
||||
private Resource convertModuleSystemURI(URI uri) {
|
||||
return (ResourceUtils.URL_PROTOCOL_FILE.equals(uri.getScheme()) ?
|
||||
new FileSystemResource(uri.getPath()) : UrlResource.from(uri));
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
package org.springframework.aot.hint
|
||||
|
||||
/**
|
||||
* Extension for [TypeHint.Builder.onReachableType] providing a `onReachableType<Foo>())`
|
||||
* Extension for [TypeHint.Builder.onReachableType] providing a `onReachableType<Foo>()`
|
||||
* variant.
|
||||
*
|
||||
* @author Sebastien Deleuze
|
||||
|
||||
@@ -32,7 +32,7 @@ class ResourceHintsExtensionsTests {
|
||||
private val resourceHints = mockk<ResourceHints>()
|
||||
|
||||
@Test
|
||||
fun `registerType extension with MemberCategory`() {
|
||||
fun `registerType extension`() {
|
||||
every { resourceHints.registerType(any<Class<String>>()) } returns resourceHints
|
||||
resourceHints.registerType<String>()
|
||||
verify { resourceHints.registerType(String::class.java) }
|
||||
|
||||
Reference in New Issue
Block a user