Skip to content

Commit

Permalink
XMLFileWriter: fix constant declarations & case
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrueden committed Jul 10, 2020
1 parent 8f01dce commit 8caa290
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/net/imagej/updater/XMLFileWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ public class XMLFileWriter {

private FilesCollection files;
private TransformerHandler handler;
private final String XALAN_INDENT_AMOUNT = "{http://xml.apache.org/xslt}"
private static final String XALAN_INDENT_AMOUNT = "{http://xml.apache.org/xslt}"
+ "indent-amount";
private final static String dtd = "<!DOCTYPE pluginRecords [\n"
private static final String DTD = "<!DOCTYPE pluginRecords [\n"
+ "<!ELEMENT pluginRecords ((update-site | disabled-update-site)*, plugin*)>\n"
+ "<!ELEMENT update-site EMPTY>\n"
+ "<!ELEMENT disabled-update-site EMPTY>\n"
Expand Down Expand Up @@ -357,7 +357,7 @@ private boolean insertDTDIfNecessary(final byte[] b, final int off,
if (found < 0) return false;

if (found > off) out.write(b, off, found - off);
out.write(dtd.getBytes());
out.write(DTD.getBytes());
out.write(b, found, len - found);
dtdInserted = true;
return true;
Expand Down

0 comments on commit 8caa290

Please sign in to comment.