Skip to content

Commit c3b433f

Browse files
committed
merge
2 parents 48ec34e + b7e1f52 commit c3b433f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/java.base/share/classes/java/lang/invoke/StringConcatFactory.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,9 +1351,9 @@ public void accept(CodeBuilder cb) {
13511351
.ladd();
13521352

13531353
for (int i = paramCount - 1; i >= 0; i--) {
1354-
Class<?> cl = args.parameterType(i);
1355-
TypeKind kind = TypeKind.from(cl);
1356-
int paramSlot = paramSlots[i];
1354+
var cl = args.parameterType(i);
1355+
var kind = TypeKind.from(cl);
1356+
var paramSlot = paramSlots[i];
13571357

13581358
MethodTypeDesc methodTypeDesc;
13591359
if (cl == byte.class || cl == short.class || cl == int.class) {
@@ -1366,7 +1366,7 @@ public void accept(CodeBuilder cb) {
13661366
methodTypeDesc = MIX_char;
13671367
} else {
13681368
methodTypeDesc = MIX_String;
1369-
kind = TypeKind.from(String.class);
1369+
kind = TypeKind.from(String.class);
13701370
}
13711371
cb.loadLocal(kind, paramSlot)
13721372
.invokestatic(CD_StringConcatHelper, "mix", methodTypeDesc);
@@ -1401,9 +1401,9 @@ public void accept(CodeBuilder cb) {
14011401
*/
14021402
cb.lload(lengthCoderSlot);
14031403
for (int i = paramCount - 1; i >= 0; i--) {
1404-
int paramSlot = paramSlots[i];
1405-
Class<?> cl = args.parameterType(i);
1406-
TypeKind kind = TypeKind.from(cl);
1404+
var paramSlot = paramSlots[i];
1405+
var cl = args.parameterType(i);
1406+
var kind = TypeKind.from(cl);
14071407

14081408
MethodTypeDesc methodTypeDesc;
14091409
if (cl == byte.class || cl == short.class || cl == int.class) {
@@ -1416,7 +1416,7 @@ public void accept(CodeBuilder cb) {
14161416
methodTypeDesc = PREPEND_char;
14171417
} else {
14181418
methodTypeDesc = PREPEND_String;
1419-
kind = TypeKind.from(String.class);
1419+
kind = TypeKind.from(String.class);
14201420
}
14211421
cb.aload(bufSlot)
14221422
.loadLocal(kind, paramSlot)

0 commit comments

Comments
 (0)