Skip to content

Commit 21715a8

Browse files
committed
Prepared for Java 21 release
1 parent 0da5e72 commit 21715a8

4 files changed

Lines changed: 8 additions & 3 deletions

File tree

lib/xmljava.jar

1 Byte
Binary file not shown.

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sonar.projectVersion=1.0.0
99
# If not set, SonarQube starts looking for source code from the directory containing
1010
# the sonar-project.properties file.
1111
sonar.sources=src
12-
sonar.java.source=17
12+
sonar.java.source=21
1313
sonar.java.binaries=bin
1414
sonar.java.libraries=lib
1515
sonar.scm.provider=git

src/com/maxprograms/xml/Constants.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,15 @@
1010
* Maxprograms - initial API and implementation
1111
*******************************************************************************/
1212

13-
package com.maxprograms.xml;
13+
package com.maxprograms.xml;
1414

1515
public class Constants {
1616

1717
public static final String VERSION = "1.5.0";
1818
public static final String BUILD = "20231229_1000";
19+
20+
private Constants() {
21+
// private for security
22+
}
23+
1924
}

src/com/maxprograms/xml/DTDParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public Grammar parse(File file) throws SAXException, IOException {
103103
}
104104
String entityDeclText = source.substring(pointer, index + ">".length());
105105
EntityDecl entityDecl = new EntityDecl(entityDeclText);
106-
if (entityDecl.getType() == EntityDecl.SYSTEM) {
106+
if (entityDecl.getType().equals(EntityDecl.SYSTEM)) {
107107
String module = entityDecl.getValue();
108108
if (module == null || module.isBlank()) {
109109
MessageFormat mf = new MessageFormat(Messages.getString("DTDParser.2"));

0 commit comments

Comments
 (0)