Changed naming of the method

This commit is contained in:
Ozan Gulle committed 2020-12-21 21:37:22 +01:00
1 parent 2bbf56ec06
commit 49fbb90cb1
1 file changed
+3 -3
@@ -136,14 +136,14 @@ public class LiteralsFirstInComparisonsRule extends AbstractJavaRule {
}
private JavaNode getFirstLiteralArgument(ASTPrimarySuffix primarySuffix) {
return getArgumentPrimaryPrefixFromSuffix(primarySuffix).getFirstChildOfType(ASTLiteral.class);
return getArgumentPrimaryPrefix(primarySuffix).getFirstChildOfType(ASTLiteral.class);
}
private JavaNode getFirstNameArgument(ASTPrimarySuffix primarySuffix) {
return getArgumentPrimaryPrefixFromSuffix(primarySuffix).getFirstChildOfType(ASTName.class);
return getArgumentPrimaryPrefix(primarySuffix).getFirstChildOfType(ASTName.class);
}
private JavaNode getArgumentPrimaryPrefixFromSuffix(ASTPrimarySuffix primarySuffix) {
private JavaNode getArgumentPrimaryPrefix(ASTPrimarySuffix primarySuffix) {
ASTArguments arguments = primarySuffix.getFirstChildOfType(ASTArguments.class);
ASTArgumentList argumentList = arguments.getFirstChildOfType(ASTArgumentList.class);
ASTExpression expression = argumentList.getFirstChildOfType(ASTExpression.class);