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 2
2
// (c)2020 MindView LLC: see Copyright.txt
3
3
// We make no guarantees that this code is fit for any purpose.
4
4
// Visit http://OnJava8.com for more book information.
5
+ // {ExcludeFromGradle} Runs too long under WSL2
5
6
import java .util .*;
6
7
import java .nio .*;
7
8
import java .nio .channels .*;
Original file line number Diff line number Diff line change 3
3
// We make no guarantees that this code is fit for any purpose.
4
4
// Visit http://OnJava8.com for more book information.
5
5
// 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
8
8
import javax .swing .*;
9
9
import java .awt .*;
10
10
import java .awt .event .*;
@@ -33,7 +33,8 @@ public BoxObserver(int grid) {
33
33
cp .add (new OCBox (x , y , notifier ));
34
34
}
35
35
public static void main (String [] args ) {
36
- new TimedAbort (4 );
36
+ // For automated test runs:
37
+ // new TimedAbort(4);
37
38
int grid = 8 ;
38
39
if (args .length > 0 )
39
40
grid = Integer .parseInt (args [0 ]);
You can’t perform that action at this time.
0 commit comments