Skip to content

Commit f547b6a

Browse files
committed
Polishing
1 parent e1bd13d commit f547b6a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

spring-core/src/main/java/org/springframework/cglib/core/SpringNamingPolicy.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -31,7 +31,8 @@ public final class SpringNamingPolicy implements NamingPolicy {
3131

3232
public static final SpringNamingPolicy INSTANCE = new SpringNamingPolicy();
3333

34-
private static final String LABEL = "$$SpringCGLIB$$";
34+
private static final String SPRING_LABEL = "$$SpringCGLIB$$";
35+
3536

3637
private SpringNamingPolicy() {
3738
}
@@ -46,12 +47,12 @@ else if (prefix.startsWith("java.") || prefix.startsWith("javax.")) {
4647
}
4748

4849
String base;
49-
int existingLabel = prefix.indexOf(LABEL);
50+
int existingLabel = prefix.indexOf(SPRING_LABEL);
5051
if (existingLabel >= 0) {
51-
base = prefix.substring(0, existingLabel + LABEL.length());
52+
base = prefix.substring(0, existingLabel + SPRING_LABEL.length());
5253
}
5354
else {
54-
base = prefix + LABEL;
55+
base = prefix + SPRING_LABEL;
5556
}
5657

5758
int index = 0;

0 commit comments

Comments
 (0)