Buggy code:
public class Main { private static final Logger logger = LoggerFactory . getLogger ( LOGGER_NAME ) ; public static final String CONFIGURATION_FILE = ".//configuration.properties" ; public static void main ( final String [ ] args ) throws IOException { } static File generateReleaseNotes ( final String [ ] args ) throws FileNotFoundException , IOException { } private static Response getGitInfo ( final Main . ProgramParameters programParameters , final SCMFacade gitFacade ) { if ( ( StringUtils . isNotEmpty ( programParameters . tag1 ) ) || ( StringUtils . isNotEmpty ( programParameters . tag2 ) ) ) { Main . logger . info ( "Reading<seq2seq4repair_space>scm<seq2seq4repair_space>history<seq2seq4repair_space>by<seq2seq4repair_space>tags<seq2seq4repair_space>'{}'<seq2seq4repair_space>and<seq2seq4repair_space>'{}'" , programParameters . tag1 , programParameters . tag2 ) ; return gitFacade . readByTag ( programParameters . tag1 , programParameters . tag2 ) ; } else <START_BUG> if ( ( StringUtils . isNotEmpty ( programParameters . tag1 ) ) || ( StringUtils . isNotEmpty ( programParameters . tag2 ) ) ) { <END_BUG> Main . logger . info ( "Reading<seq2seq4repair_space>scm<seq2seq4repair_space>history<seq2seq4repair_space>by<seq2seq4repair_space>commit<seq2seq4repair_space>ids<seq2seq4repair_space>'{}'<seq2seq4repair_space>and<seq2seq4repair_space>'{}'" , programParameters . commitId1 , programParameters . commitId2 ) ; return gitFacade . readByCommit ( programParameters . commitId1 , programParameters . commitId2 ) ; } else { Main . logger . info ( "No<seq2seq4repair_space>commit<seq2seq4repair_space>id<seq2seq4repair_space>or<seq2seq4repair_space>tag<seq2seq4repair_space>parameter<seq2seq4repair_space>provided,<seq2seq4repair_space>reading<seq2seq4repair_space>scm<seq2seq4repair_space>history<seq2seq4repair_space>by<seq2seq4repair_space>two<seq2seq4repair_space>latests<seq2seq4repair_space>tags." ) ; return gitFacade . readLatestReleasedVersion ( ) ; } } private static File createReport ( final Configuration configuration , final SCMFacade . Response gitInfo , final Collection < Issue > issues ) throws IOException { } private static Configuration readConfiguration ( final Main . ProgramParameters programParameters ) throws FileNotFoundException , IOException { } public static class ProgramParameters { @ Parameter ( names = { "-configurationFilePath" , "-conf" } , description = "Path<seq2seq4repair_space>to<seq2seq4repair_space>configuration<seq2seq4repair_space>file" ) private String configurationFilePath ; @ Parameter ( names = { "-commitId1" } , description = "Commit<seq2seq4repair_space>1<seq2seq4repair_space>hash<seq2seq4repair_space>delimeter" ) private String commitId1 ; @ Parameter ( names = { "-commitId2" } , description = "Commit<seq2seq4repair_space>2<seq2seq4repair_space>hash<seq2seq4repair_space>delimeter" ) private String commitId2 ; @ Parameter ( names = { "-tag1" } , description = "Tag<seq2seq4repair_space>1<seq2seq4repair_space>delimeter" ) private String tag1 ; @ Parameter ( names = { "-tag2" } , description = "Tag<seq2seq4repair_space>2<seq2seq4repair_space>delimeter" ) private String tag2 ; @ Parameter ( names = { "-pushReleaseNotes" } , description = "Perform<seq2seq4repair_space>push<seq2seq4repair_space>of<seq2seq4repair_space>release<seq2seq4repair_space>notes<seq2seq4repair_space>to<seq2seq4repair_space>remote<seq2seq4repair_space>repo" ) private boolean pushReleaseNotes = false ; @ Element ( Configuration . GIT_DIRECTORY ) @ Parameter ( names = { "-gitDirectory" } ) private String gitDirectory ; @ Element ( Configuration . GIT_BRANCH ) @ Parameter ( names = { "-gitBranch" } ) private String gitBranch ; @ Element ( Configuration . GIT_URL ) @ Parameter ( names = { "-gitUrl" } ) private String gitUrl ; @ Element ( Configuration . GIT_USERNAME ) @ Parameter ( names = { "-gitUsername" } ) private String gitUsername ; @ Element ( Configuration . GIT_PASSWORD ) @ Parameter ( names = { "-gitPassword" } ) private String gitPassword ; @ Element ( Configuration . GIT_COMMITTER_NAME ) @ Parameter ( names = { "-gitCommitterName" } ) private String gitCommiterName ; @ Element ( Configuration . GIT_COMMITTER_MAIL ) @ Parameter ( names = { "-gitCommitterMail" } ) private String gitCommitterMail ; @ Element ( Configuration . GIT_COMMITMESSAGE_VALIDATIONOMMITER ) @ Parameter ( names = { "-gitCommitMessageValidationOmmiter" } ) private String gitCommitMessageValidationOmmiter ; @ Element ( Configuration . JIRA_URL ) @ Parameter ( names = { "-jiraUrl" } ) private String jiraUrl ; @ Element ( Configuration . JIRA_USERNAME ) @ Parameter ( names = { "-jiraUsername" } ) private String jiraUsername ; @ Element ( Configuration . JIRA_PASSWORD ) @ Parameter ( names = { "-jiraPassword" } ) private String jiraPassword ; @ Element ( Configuration . JIRA_ISSUEPATTERN ) @ Parameter ( names = { "-jiraIssuePattern" } ) private String jiraIssuePattern ; @ Element ( Configuration . ISSUE_FILTERBY_COMPONENT ) @ Parameter ( names = { "-issueFilterByComponent" } ) private String issueFilterByComponent ; @ Element ( Configuration . ISSUE_FILTERBY_TYPE ) @ Parameter ( names = { "-issueFilterByType" } ) private String issueFilterByType ; @ Element ( Configuration . ISSUE_FILTERBY_LABEL ) @ Parameter ( names = { "-issueFilterByLabel" } ) private String issueFilterByLabel ; @ Element ( Configuration . ISSUE_FILTERBY_STATUS ) @ Parameter ( names = { "-issueFilterByStatus" } ) private String issueFilterByStatus ; @ Element ( Configuration . ISSUE_SORT_TYPE ) @ Parameter ( names = { "-issueSortType" } ) private String issueSortType ; @ Element ( Configuration . ISSUE_SORT_PRIORITY ) @ Parameter ( names = { "-issueSortPriority" } ) private String issueSortPriority ; @ Element ( Configuration . REPORT_DIRECTORY ) @ Parameter ( names = { "-reportDirectory" } ) private String reportDirectory ; @ Element ( Configuration . REPORT_TEMPLATE ) @ Parameter ( names = { "-reportTemplate" } ) private String reportTemplate ; } }

Fix:
if ( ( StringUtils . isNotEmpty ( programParameters . commitId1 ) ) || ( StringUtils . isNotEmpty ( programParameters . commitId2 ) ) ) {