Skip to content

Commit

Permalink
Merge branch 'master' into 0.7-EBX-PRE-RELEASE
Browse files Browse the repository at this point in the history
  • Loading branch information
michaellavelle committed Sep 29, 2016
2 parents 63b47af + f4b76c7 commit 4035b38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main/java/crawlercommons/sitemaps/AbstractSiteMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public URL getUrl() {
* @param type
* the Sitemap type to set
*/
void setType(SitemapType type) {
public void setType(SitemapType type) {
this.type = type;
}

Expand Down
12 changes: 6 additions & 6 deletions src/main/java/crawlercommons/sitemaps/SiteMapParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public class SiteMapParser {
* official docs allow the siteMapURLs to be only under the base url:
* http://www.sitemaps.org/protocol.html#location
*/
private boolean strict = true;
protected boolean strict = true;

public SiteMapParser() {

Expand Down Expand Up @@ -576,9 +576,9 @@ protected void parseRSS(SiteMap sitemap, Document doc) {
*
* @param elem
* @param elementName
* @return
* @return The element value
*/
private String getElementValue(Element elem, String elementName) {
protected String getElementValue(Element elem, String elementName) {

NodeList list = elem.getElementsByTagName(elementName);
if (list == null)
Expand All @@ -596,9 +596,9 @@ private String getElementValue(Element elem, String elementName) {
* @param elem
* @param elementName
* @param attributeName
* @return
* @return The element attribute value
*/
private String getElementAttributeValue(Element elem, String elementName, String attributeName) {
protected String getElementAttributeValue(Element elem, String elementName, String attributeName) {

NodeList list = elem.getElementsByTagName(elementName);
Element e = (Element) list.item(0);
Expand Down Expand Up @@ -644,7 +644,7 @@ protected void addUrlIntoSitemap(String urlStr, SiteMap siteMap, String lastMod,
* @param testUrl
* @return true if testUrl is under sitemapBaseUrl, false otherwise
*/
private boolean urlIsValid(String sitemapBaseUrl, String testUrl) {
protected boolean urlIsValid(String sitemapBaseUrl, String testUrl) {
boolean ret = false;

// Don't try a comparison if the URL is too short to match
Expand Down

0 comments on commit 4035b38

Please sign in to comment.