Skip to content

Prepare for 2.0 release #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
777c1f2
Break cyclic dependency
anthonyvdotbe Aug 12, 2020
52edf70
Remove unnecessary superinterface Locator
anthonyvdotbe Aug 12, 2020
223c87c
Clean up: doc
anthonyvdotbe Apr 23, 2020
78674ec
Clean up: gwt-src et al.
anthonyvdotbe Apr 23, 2020
db75e90
Clean up: mozilla-export-scripts
anthonyvdotbe Apr 23, 2020
0a18810
Clean up: ruby-gcj
anthonyvdotbe Apr 23, 2020
d6df8ad
Clean up: super
anthonyvdotbe Apr 23, 2020
d459ad0
Clean up: tools
anthonyvdotbe Apr 23, 2020
429bfe2
Clean up: cpptranslate et al.
anthonyvdotbe Apr 23, 2020
6f9916f
Clean up: GenerateNamedCharacters.java
anthonyvdotbe Apr 23, 2020
6d00055
Remove RPM package support
anthonyvdotbe Apr 25, 2020
1f70f9b
Remove OSGi bundle support
anthonyvdotbe Apr 25, 2020
1c484d4
Update URLs
anthonyvdotbe Aug 12, 2020
31888b3
Format POM
anthonyvdotbe Aug 12, 2020
ea60638
Adopt Maven directory layout
anthonyvdotbe Apr 23, 2020
44b25b6
Fix Maven build
anthonyvdotbe Aug 12, 2020
c7c30d7
Split into separate Maven modules
anthonyvdotbe Apr 23, 2020
7c8b11f
Fix Maven build
anthonyvdotbe Aug 12, 2020
2928550
Fix doclint errors
anthonyvdotbe Aug 12, 2020
88184e1
Fix typos
anthonyvdotbe Aug 12, 2020
5304a2c
Fix some lint warnings
anthonyvdotbe Apr 23, 2020
653a769
Suppress remaining lint warnings
anthonyvdotbe Apr 23, 2020
7511367
Remove unused imports
anthonyvdotbe Apr 23, 2020
eabf3dd
Upgrade to a module-aware Java SE version
anthonyvdotbe Apr 23, 2020
f2c3126
Modularize
anthonyvdotbe Aug 12, 2020
283955b
Rename package.html to package-info.java
anthonyvdotbe Apr 23, 2020
9376c4f
Fix package Javadoc after rename
anthonyvdotbe Apr 23, 2020
2ce23df
Make NormalizationChecker independent of ICU4J
anthonyvdotbe Aug 12, 2020
bd6aae9
Make jchardet & ICU4J heuristics a no-op
anthonyvdotbe Aug 12, 2020
51b5c92
Bump version number to 2.0
anthonyvdotbe Aug 14, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions htmlparser/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* Copyright (c) 2020 Anthony Vanelverdinghe
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/

/**
* Provides an implementation of the HTML5 parsing algorithm in Java for applications.
* The parser is designed to work as a drop-in replacement for the XML parser in applications
* that already support XHTML 1.x content with an XML parser and use SAX or DOM to interface with the parser.
*/
@SuppressWarnings("requires-automatic")
module nu.validator.htmlparser {
requires transitive java.xml;
requires nu.validator.saxtree;
requires static com.ibm.icu;
requires static jchardet;

exports nu.validator.htmlparser.annotation;
exports nu.validator.htmlparser.common;
exports nu.validator.htmlparser.dom;
exports nu.validator.htmlparser.extra;
exports nu.validator.htmlparser.impl;
exports nu.validator.htmlparser.io;
exports nu.validator.htmlparser.rewindable;
exports nu.validator.htmlparser.sax;
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

import com.ibm.icu.text.CharsetDetector;

@SuppressWarnings("exports")
public class ChardetSniffer implements nsICharsetDetectionObserver {

private final byte[] source;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import nu.validator.htmlparser.annotation.Auto;


@SuppressWarnings("exports")
public class StateSnapshot<T> implements TreeBuilderState<T> {

private final @Auto StackNode<T>[] stack;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
import nu.validator.htmlparser.common.TokenHandler;
import nu.validator.htmlparser.common.XmlViolationPolicy;

@SuppressWarnings("exports")
public abstract class TreeBuilder<T> implements TokenHandler,
TreeBuilderState<T> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
* @version $Id$
* @author hsivonen
*/
@SuppressWarnings("exports")
public interface TreeBuilderState<T> {

/**
Expand Down
30 changes: 30 additions & 0 deletions saxtree/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* Copyright (c) 2020 Anthony Vanelverdinghe
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/

/**
* Provides SAX Tree: a tree model optimized for creation from SAX events and replay as SAX events.
*/
module nu.validator.saxtree {
requires transitive java.xml;

exports nu.validator.saxtree;
}
6 changes: 6 additions & 0 deletions xom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@
<groupId>xom</groupId>
<artifactId>xom</artifactId>
<version>1.3.5</version>
<exclusions>
<exclusion>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>
35 changes: 35 additions & 0 deletions xom/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Copyright (c) 2020 Anthony Vanelverdinghe
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/

/**
* Provides an implementation of the HTML5 parsing algorithm in Java for applications.
* The parser is designed to work as a drop-in replacement for the XML parser in applications
* that already support XHTML 1.x content with an XML parser and use XOM to interface with the parser.
*/
@SuppressWarnings({"requires-automatic", "requires-transitive-automatic"})
module nu.validator.htmlparser.xom {
requires transitive java.xml;
requires transitive nu.xom;
requires transitive nu.validator.htmlparser;

exports nu.validator.htmlparser.xom;
}