diff --git a/modules/util/source-formatter/src/main/java/com/liferay/source/formatter/check/IfStatementCheck.java b/modules/util/source-formatter/src/main/java/com/liferay/source/formatter/check/IfStatementCheck.java index 3ac81db597c635..33c604b69ae4fa 100644 --- a/modules/util/source-formatter/src/main/java/com/liferay/source/formatter/check/IfStatementCheck.java +++ b/modules/util/source-formatter/src/main/java/com/liferay/source/formatter/check/IfStatementCheck.java @@ -74,6 +74,10 @@ protected String doProcess( String clause = ifStatement1.getClause(); + if (clause.contains("instanceof")) { + continue; + } + int x = StringUtil.indexOfAny( clause, new String[] {"&", "<", "=", ">", "|", "^"});