This commit is contained in:
Johnny Lim
2023-02-15 22:22:58 +09:00
parent 3e3f046dc9
commit ce3be72e7f
18 changed files with 49 additions and 51 deletions

View File

@@ -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) {

View File

@@ -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);

View File

@@ -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() {

View File

@@ -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));

View File

@@ -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

View File

@@ -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) }