Skip to content

Commit

Permalink
fix: MojoExecutionService 'goal.length() > 0' replaced with '!goal.is…
Browse files Browse the repository at this point in the history
…Empty()'

Signed-off-by: Raushan <[email protected]>
  • Loading branch information
raushan606 authored Jul 18, 2024
1 parent b594cb1 commit 5ba84cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void callPluginGoal(String fullGoal) {

try {
String executionId = null;
if (goal != null && goal.length() > 0 && goal.indexOf('#') > -1) {
if (goal != null && !goal.isEmpty() && goal.indexOf('#') > -1) {
int pos = goal.indexOf('#');
executionId = goal.substring(pos + 1);
goal = goal.substring(0, pos);
Expand Down

0 comments on commit 5ba84cd

Please sign in to comment.