Skip to content

Commit 4fcd4f8

Browse files
committed
Fixed whitespace formating
1 parent 3082a4f commit 4fcd4f8

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/main/java/org/jsoup/select/Elements.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,14 @@ public Elements(Element... elements) {
5252
* @return a deep copy
5353
*/
5454
@Override
55-
public Elements clone() {
55+
public Elements clone() {
5656
Elements clone = new Elements(size());
57+
for (Element e : this)
58+
clone.add(e.clone());
59+
return clone;
60+
}
5761

58-
for(Element e : this)
59-
clone.add(e.clone());
60-
61-
return clone;
62-
}
63-
64-
// attribute methods
62+
// attribute methods
6563
/**
6664
Get an attribute value from the first matched element that has the attribute.
6765
@param attributeKey The attribute key.

0 commit comments

Comments
 (0)