Skip to content

Commit dfd961e

Browse files
committed
updates
1 parent 0c606b0 commit dfd961e

File tree

72 files changed

+183
-183
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+183
-183
lines changed

modules/packed-incubator/packed-incubator-cli/src/main/java/app/packed/cli/CliCommandConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public CliCommandConfiguration names(String... names) {
4343
List<String> ns = List.of(names);
4444

4545
for (String name : names) {
46-
System.out.println(name);
46+
IO.println(name);
4747
// handle.namespace.commands
4848
// check not exists
4949
}

modules/packed-incubator/packed-incubator-cli/src/main/java/app/packed/cli/CliExtension.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public ContainerConfiguration newContainer(Wirelet... wirelets) {
9898

9999
@Override
100100
protected void onClose() {
101-
System.out.println("Have commands for " + ns().commands.keySet());
101+
IO.println("Have commands for " + ns().commands.keySet());
102102

103103
super.onClose();
104104
}

modules/packed-incubator/packed-incubator-cli/src/main/java/app/packed/cli/usage/MirrorUsage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ public class MirrorUsage {
2828
public static void main(ApplicationMirror m) {
2929
CliNamespaceMirror cm = m.namespace(CliNamespaceMirror.class).get();
3030
for (CliCommandMirror c : cm.commands().toList()) {
31-
System.out.println(c);
31+
IO.println(c);
3232
}
3333

3434
cm.commands().map(e -> e.bean().container()).distinct().toList();
3535

3636
ServiceNamespaceMirror sn = m.namespace(ServiceNamespaceMirror.class).get();
3737

38-
System.out.println(sn);
38+
IO.println(sn);
3939
}
4040

4141

modules/packed-incubator/packed-incubator-cli/src/main/java/app/packed/cli/usage/MyCliApp.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static void main(String[] args) {
3636

3737
public static class Spp {
3838
Spp() {
39-
System.out.println("New");
39+
IO.println("New");
4040
}
4141

4242
@CliCommand(name = "foo")

modules/packed-incubator/packed-incubator-concurrent/src/main/java/app/packed/concurrent/job/JobApp.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ protected void build() {}
109109
public static void main(String[] args) {
110110
String run = JobApp.run(String.class, new TestIt());
111111
String run2 = I.run();
112-
System.out.println(run);
113-
System.out.println(run2);
112+
IO.println(run);
113+
IO.println(run2);
114114
}
115115
}
116116
//

modules/packed-incubator/packed-incubator-concurrent/src/main/java/app/packed/concurrent/job/ScTest2.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static void main(String[] args) throws Exception {
3333
Optional<ThreadNamespaceMirror> o = m.namespace(ThreadNamespaceMirror.class);
3434

3535
// o.get().daemons().forEach(c -> {
36-
// System.out.println(c.name() + ":" + c.isInteruptAtStop());
36+
// IO.println(c.name() + ":" + c.isInteruptAtStop());
3737
// });
3838

3939
App.run(new ScTest2());
@@ -51,7 +51,7 @@ public static class MuB {
5151

5252
@DaemonJob
5353
public static void dae(DaemonJobContext sc) throws InterruptedException {
54-
System.out.println("Daemon");
54+
IO.println("Daemon");
5555
Thread.sleep(100);
5656
}
5757
}

modules/packed-incubator/packed-incubator-concurrent/src/main/java/app/packed/concurrent/other/SchTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ public class SchTest extends BaseAssembly {
2525
/** {@inheritDoc} */
2626
@Override
2727
protected void build() {
28-
// use(ScheduledJobExtension.class).schedule(new Op0<>(() -> System.out.println("Hi")) {});
28+
// use(ScheduledJobExtension.class).schedule(new Op0<>(() -> IO.println("Hi")) {});
2929
//
30-
// use(ScheduledJobExtension.class).schedule(Op.ofRunnable(() -> System.out.println("Hi")));
30+
// use(ScheduledJobExtension.class).schedule(Op.ofRunnable(() -> IO.println("Hi")));
3131
}
3232

3333
}

modules/packed-incubator/packed-incubator-concurrent/src/main/java/app/packed/concurrent/usage/ScTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,22 @@ public static class MuB {
4444

4545
@DaemonJob
4646
public static void dae(DaemonJobContext sc) throws InterruptedException {
47-
System.out.println("Daemon");
47+
IO.println("Daemon");
4848
Thread.sleep(100);
4949
}
5050

5151
@ScheduleJob(withFixedDelay = 10)
5252
public static void schd(SchedulingContext sc, ScheduledOperationMirror op) {
53-
System.out.println("SCHs®ED " + op.target());
53+
IO.println("SCHs®ED " + op.target());
5454
}
5555

5656
@ScheduleJob(withFixedDelay = 88)
5757
public static void sch(SchedulingContext sc, ScheduledOperationMirror op) {
58-
System.out.println("SCHED " + sc.invocationCount());
59-
// System.out.println(op.target());
58+
IO.println("SCHED " + sc.invocationCount());
59+
// IO.println(op.target());
6060
if (sc.invocationCount() == 10) {
6161
sc.cancel();
62-
System.out.println("Bye");
62+
IO.println("Bye");
6363
}
6464
}
6565
}

modules/packed-incubator/packed-incubator-concurrent/src/main/java/app/packed/concurrent/usage/ScTest2.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ public class ScTest2 extends BaseAssembly {
3535
public static void main(String[] args) throws Exception {
3636
ApplicationMirror m = App.mirrorOf(new ScTest2());
3737
m.operations().ofType(ScheduledOperationMirror.class).forEach(c -> {
38-
System.out.println(c.name() + ":" + c.schedule());
38+
IO.println(c.name() + ":" + c.schedule());
3939
});
4040
Optional<ThreadNamespaceMirror> o = m.namespace(ThreadNamespaceMirror.class);
4141

4242
// o.get().daemons().forEach(c -> {
43-
// System.out.println(c.name() + ":" + c.isInteruptAtStop());
43+
// IO.println(c.name() + ":" + c.isInteruptAtStop());
4444
// });
4545

4646

47-
System.out.println(o.get());
48-
System.out.println();
47+
IO.println(o.get());
48+
IO.println();
4949

5050
App.run(new ScTest2());
5151
Thread.sleep(1000);
@@ -62,17 +62,17 @@ public static class MuB {
6262

6363
@DaemonJob
6464
public static void dae(DaemonJobContext sc) throws InterruptedException {
65-
System.out.println("Daemon");
65+
IO.println("Daemon");
6666
Thread.sleep(100);
6767
}
6868

6969
@ScheduleJob(withFixedDelay = 88)
7070
public static void sch(SchedulingContext sc, ScheduledOperationMirror op) {
71-
// System.out.println("SCHED " + sc.invocationCount());
72-
// System.out.println(op.target());
71+
// IO.println("SCHED " + sc.invocationCount());
72+
// IO.println(op.target());
7373
if (sc.invocationCount() == 10) {
7474
sc.cancel();
75-
System.out.println("Bye");
75+
IO.println("Bye");
7676
}
7777
}
7878
}

modules/packed-incubator/packed-incubator-concurrent/src/main/java/app/packed/concurrent/usage/ScTestOtherE.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public static class MuB {
8383

8484
@ScheduleOther("PT0.01S")
8585
public static void sch(SchedulingContext sc) {
86-
System.out.println("SCHED " + sc.invocationCount());
86+
IO.println("SCHED " + sc.invocationCount());
8787
}
8888
}
8989
}

0 commit comments

Comments
 (0)