Skip to content

Commit 9421456

Browse files
committed
Polish contribution
See gh-30283
1 parent be94e1a commit 9421456

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,8 @@ public static int ICONST(int value) {
336336
case 3 -> Constants.ICONST_3;
337337
case 4 -> Constants.ICONST_4;
338338
case 5 -> Constants.ICONST_5;
339-
default -> -1;
339+
default -> -1; // error
340340
};
341-
// error
342341
}
343342

344343
public static int LCONST(long value) {

spring-core/src/main/java/org/springframework/util/xml/StaxEventXMLReader.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,10 @@ protected void parseInternal() throws SAXException, XMLStreamException {
118118
handleEndElement(event.asEndElement());
119119
}
120120
}
121-
case XMLStreamConstants.PROCESSING_INSTRUCTION -> handleProcessingInstruction((ProcessingInstruction) event);
122-
case XMLStreamConstants.CHARACTERS, XMLStreamConstants.SPACE, XMLStreamConstants.CDATA -> handleCharacters(event.asCharacters());
121+
case XMLStreamConstants.PROCESSING_INSTRUCTION ->
122+
handleProcessingInstruction((ProcessingInstruction) event);
123+
case XMLStreamConstants.CHARACTERS, XMLStreamConstants.SPACE, XMLStreamConstants.CDATA ->
124+
handleCharacters(event.asCharacters());
123125
case XMLStreamConstants.END_DOCUMENT -> {
124126
handleEndDocument();
125127
documentEnded = true;

0 commit comments

Comments
 (0)