Skip to content

Commit 9a2e19e

Browse files
committed
Updated OutputSettings inside of Document to be a static inner class.
This addresses the issue with using jsoup and scala 2.8 discussed here: http://groups.google.com/group/jsoup/browse_thread/thread/3f7ec2fa41dfb87f This change should be safe to commit and won't make a backwards incompatible to the public interface of jsoup (you can always reference a static member via a non-static path) for any existing users. A recompilation of their code won't even be necessary. All tests continue to pass for me after this change.
1 parent 5824e29 commit 9a2e19e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/jsoup/nodes/Document.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public Document clone() {
203203
/**
204204
* A Document's output settings control the form of the text() and html() methods.
205205
*/
206-
public class OutputSettings implements Cloneable {
206+
public static class OutputSettings implements Cloneable {
207207
private Entities.EscapeMode escapeMode = Entities.EscapeMode.base;
208208
private Charset charset = Charset.forName("UTF-8");
209209
private CharsetEncoder charsetEncoder = charset.newEncoder();

0 commit comments

Comments
 (0)