Skip to content

Commit 6d3e409

Browse files
committed
Add spotless plugin and fix grammar issues
1 parent 1c380f1 commit 6d3e409

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

org.restlet.ext.xml/src/main/java/org/restlet/ext/xml/SaxRepresentation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ public InputSource getInputSource() throws IOException {
135135
@Override
136136
public SAXSource getSaxSource() throws IOException {
137137
if (this.source == null && this.xmlRepresentation != null) {
138-
if (xmlRepresentation instanceof XmlRepresentation) {
139-
this.source = ((XmlRepresentation) xmlRepresentation).getSaxSource();
138+
if (xmlRepresentation instanceof XmlRepresentation xmlRepresentationCast) {
139+
this.source = xmlRepresentationCast.getSaxSource();
140140
} else {
141141
try {
142142
SAXParserFactory spf = SAXParserFactory.newInstance();

0 commit comments

Comments
 (0)