Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 702ec67

Browse files
committed
Annotate Xml.Document with @With
... and remove custom wither.
1 parent 83f3cde commit 702ec67

File tree

1 file changed

+1
-7
lines changed
  • rewrite-xml/src/main/java/org/openrewrite/xml/tree

1 file changed

+1
-7
lines changed

rewrite-xml/src/main/java/org/openrewrite/xml/tree/Xml.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,9 @@ public Xml.Document withCharset(Charset charset) {
174174
@With
175175
Prolog prolog;
176176

177+
@With
177178
Tag root;
178179

179-
public Document withRoot(Tag root) {
180-
if (this.root == root) {
181-
return this;
182-
}
183-
return new Document(id, sourcePath, prefixUnsafe, markers, charsetName, charsetBomMarked, checksum, fileAttributes, prolog, root, eof);
184-
}
185-
186180
String eof;
187181

188182
public Document withEof(String eof) {

0 commit comments

Comments
 (0)