Skip to content

Commit 33a529c

Browse files
committed
Chapter name and order change
1 parent 941213a commit 33a529c

30 files changed

+195
-188
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,9 @@ subprojects {
277277
task run(dependsOn: createdTasks)
278278
}
279279

280-
project(':verifying') {
280+
project(':validating') {
281281
jmh {
282-
include = 'verifying.jmh.*'
282+
include = 'validating.jmh.*'
283283
}
284284
}
285285

network/SimpleClient.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111
public class SimpleClient {
1212
public static void
1313
main(String[] args) throws IOException {
14-
// Passing null to getByName() produces the
15-
// special "Local Loopback" IP address, for
16-
// testing on one machine w/o a network:
14+
// Produce the "Local Loopback" IP address
15+
// for testing on one machine w/o a network:
1716
InetAddress addr =
1817
InetAddress.getLoopbackAddress();
1918
System.out.println("addr = " + addr);
@@ -35,7 +34,7 @@ public class SimpleClient {
3534
new OutputStreamWriter(
3635
socket.getOutputStream())),true);
3736
for(int i = 0; i < 10; i ++) {
38-
out.println("howdy " + i);
37+
out.println("hello " + i);
3938
String str = in.readLine();
4039
System.out.println(str);
4140
}

network/SimpleServer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// (c)2016 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
5-
// Just echoes whatever the client sends
5+
// Echoes what the client sends
66
// {ValidateByHand}
77
import java.io.*;
88
import java.net.*;
@@ -30,7 +30,7 @@ public class SimpleServer {
3030
new PrintWriter(
3131
new BufferedWriter(
3232
new OutputStreamWriter(
33-
socket.getOutputStream())),true);
33+
socket.getOutputStream())), true);
3434
while (true) {
3535
String str = in.readLine();
3636
if(str.equals("END")) break;

verifying/Assert1.java renamed to validating/Assert1.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// verifying/Assert1.java
1+
// validating/Assert1.java
22
// (c)2016 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.

verifying/Assert2.java renamed to validating/Assert2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// verifying/Assert2.java
1+
// validating/Assert2.java
22
// (c)2016 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.

verifying/BadMicroBenchmark.java renamed to validating/BadMicroBenchmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// verifying/BadMicroBenchmark.java
1+
// validating/BadMicroBenchmark.java
22
// (c)2016 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.

verifying/BadMicroBenchmark2.java renamed to validating/BadMicroBenchmark2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// verifying/BadMicroBenchmark2.java
1+
// validating/BadMicroBenchmark2.java
22
// (c)2016 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.

verifying/BadMicroBenchmark3.java renamed to validating/BadMicroBenchmark3.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// verifying/BadMicroBenchmark3.java
1+
// validating/BadMicroBenchmark3.java
22
// (c)2016 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.

verifying/CountedList.java renamed to validating/CountedList.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// verifying/CountedList.java
1+
// validating/CountedList.java
22
// (c)2016 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
55
// A List that keeps track of how many
66
// of itself are created.
7-
package verifying;
7+
package validating;
88
import java.util.*;
99

1010
public class CountedList extends ArrayList<String> {

verifying/CountedListTest.java renamed to validating/CountedListTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// verifying/CountedListTest.java
1+
// validating/CountedListTest.java
22
// (c)2016 MindView LLC: see Copyright.txt
33
// We make no guarantees that this code is fit for any purpose.
44
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
55
// Simple use of JUnit to test CountedList.
6-
package verifying;
6+
package validating;
77
import java.util.*;
88
import org.junit.jupiter.api.*;
99
import static org.junit.jupiter.api.Assertions.*;

0 commit comments

Comments
 (0)