Skip to content

Commit 27ba43a

Browse files
committed
Refactor XmlDoclet
Signed-off-by: Manoel Campos <manoelcampos@gmail.com>
1 parent 9f58dfa commit 27ba43a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/github/markusbernhardt/xmldoclet/XmlDoclet.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class XmlDoclet implements Doclet {
3939
/**
4040
* The parsed object model. Used in unit tests.
4141
*/
42-
static Root root;
42+
private Root root;
4343

4444
/**
4545
* The Options instance to parse command line strings,
@@ -76,7 +76,7 @@ public String getName() {
7676

7777
@Override
7878
public Set<? extends CustomOption> getSupportedOptions() {
79-
return options;
79+
return Collections.unmodifiableSet(options);
8080
}
8181

8282
@Override
@@ -159,7 +159,7 @@ public static void transform(
159159
* @param commandLine the parsed command line arguments
160160
* @param root the document root
161161
*/
162-
public static void save(final CommandLine commandLine, final Root root) {
162+
public void save(final CommandLine commandLine, final Root root) {
163163
if (commandLine.hasOption("dryrun")) {
164164
return;
165165
}

0 commit comments

Comments
 (0)