Skip to content

Commit 1a2632a

Browse files
committed
minor refactor
1 parent 63c13a3 commit 1a2632a

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

src/main/java/org/codejive/jpm/Main.java

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,9 @@ public Integer call() throws Exception {
414414
}
415415

416416
abstract static class DoAlias implements Callable<Integer> {
417-
@Mixin DoAliasMixin doAliasMixin;
417+
@Mixin DepsMixin depsMixin;
418418

419-
@Unmatched List<String> unmatchedArgs = new ArrayList<>();
419+
@Unmatched List<String> args = new ArrayList<>();
420420

421421
abstract String actionName();
422422

@@ -425,10 +425,10 @@ public Integer call() throws Exception {
425425
try {
426426
// Use only unmatched args for pass-through to preserve ordering
427427
return Jpm.builder()
428-
.directory(doAliasMixin.depsMixin.directory)
429-
.noLinks(doAliasMixin.depsMixin.noLinks)
428+
.directory(depsMixin.directory)
429+
.noLinks(depsMixin.noLinks)
430430
.build()
431-
.executeAction(actionName(), unmatchedArgs);
431+
.executeAction(actionName(), args);
432432
} catch (Exception e) {
433433
System.err.println(e.getMessage());
434434
return 1;
@@ -490,12 +490,6 @@ static class DepsMixin {
490490
boolean noLinks;
491491
}
492492

493-
static class DoAliasMixin {
494-
@Mixin DepsMixin depsMixin;
495-
496-
// Remove @Parameters - let @Unmatched in DoAlias handle everything
497-
}
498-
499493
static class ArtifactsMixin {
500494
@Mixin DepsMixin depsMixin;
501495

0 commit comments

Comments
 (0)