Skip to content

Commit b1cb9c5

Browse files
committed
Polish contribution
See gh-36367
1 parent 057633e commit b1cb9c5

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

  • framework-docs/src/main
    • java/org/springframework/docs/core/expressions/languageref/expressionsoperatorsoverloaded
    • kotlin/org/springframework/docs/core/expressions/languageref/expressionsoperatorsoverloaded

framework-docs/src/main/java/org/springframework/docs/core/expressions/languageref/expressionsoperatorsoverloaded/ListConcatenation.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2026-present the original author or authors.
2+
* Copyright 2002-present 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.
@@ -26,7 +26,7 @@ public class ListConcatenation implements OperatorOverloader {
2626

2727
@Override
2828
public boolean overridesOperation(Operation operation, Object left, Object right) {
29-
return operation == Operation.ADD && left instanceof List && right instanceof List;
29+
return (operation == Operation.ADD && left instanceof List && right instanceof List);
3030
}
3131

3232
@Override
@@ -43,4 +43,5 @@ public Object operate(Operation operation, Object left, Object right) {
4343
"No overload for operation %s and operands [%s] and [%s]"
4444
.formatted(operation, left, right));
4545
}
46+
4647
}

framework-docs/src/main/kotlin/org/springframework/docs/core/expressions/languageref/expressionsoperatorsoverloaded/ListConcatenation.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2026-present the original author or authors.
2+
* Copyright 2002-present 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.
@@ -30,6 +30,8 @@ class ListConcatenation: OperatorOverloader {
3030
return left + right
3131
}
3232

33-
throw UnsupportedOperationException("No overload for operation $operation and operands [$left] and [$right]")
33+
throw UnsupportedOperationException(
34+
"No overload for operation $operation and operands [$left] and [$right]")
3435
}
35-
}
36+
37+
}

0 commit comments

Comments
 (0)