Skip to content

Commit

Permalink
Switch to generic form of checking null status
Browse files Browse the repository at this point in the history
  • Loading branch information
codyhoag committed Sep 14, 2019
1 parent dd572df commit f00ea27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
import org.htmlparser.util.NodeList;
import org.htmlparser.util.ParserException;

import com.liferay.portal.kernel.util.Validator;

/**
* @author Cody Hoag
*/
Expand Down Expand Up @@ -1020,7 +1018,7 @@ else if (lineSubstring.contains(referenceDevLinkFolder + findStr)) {
*/
private static List<File> includeDxpOverrides(List<File> articles, List<File> dxpArticles) {

if (Validator.isNotNull(dxpArticles)) {
if (dxpArticles != null) {

List<String> currentArticlePathStrings = new ArrayList<String>();
List<String> currentDxpArticlePathStrings = new ArrayList<String>();
Expand Down Expand Up @@ -1258,7 +1256,7 @@ private static boolean isUrlValid(String line, File article, LineNumberReader in
else if (!docFoldersMatch) {
// invalid URL
}
else if (Validator.isNull(secondaryHeader)) {
else if (secondaryHeader == null) {
if (headers.get(0).contains(primaryHeader)) {
validURL = true;
}
Expand Down
Binary file modified lib/liferay-doc-utils.jar
Binary file not shown.

0 comments on commit f00ea27

Please sign in to comment.