File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 22// (c)2020 MindView LLC: see Copyright.txt
33// We make no guarantees that this code is fit for any purpose.
44// Visit http://OnJava8.com for more book information.
5+ // {ExcludeFromGradle} Runs too long under WSL2
56import java .util .*;
67import java .nio .*;
78import java .nio .channels .*;
Original file line number Diff line number Diff line change 33// We make no guarantees that this code is fit for any purpose.
44// Visit http://OnJava8.com for more book information.
55// Demonstration of Observer pattern using
6- // Java's built-in observer classes
7- // {ExcludeFromTravisCI}
6+ // Java's built-in observer classes.
7+ // {ExcludeFromGradle} // Won't work under WSL2
88import javax .swing .*;
99import java .awt .*;
1010import java .awt .event .*;
@@ -33,7 +33,8 @@ public BoxObserver(int grid) {
3333 cp .add (new OCBox (x , y , notifier ));
3434 }
3535 public static void main (String [] args ) {
36- new TimedAbort (4 );
36+ // For automated test runs:
37+ // new TimedAbort(4);
3738 int grid = 8 ;
3839 if (args .length > 0 )
3940 grid = Integer .parseInt (args [0 ]);
You can’t perform that action at this time.
0 commit comments