Change tags to {WillNotCompile}

This commit is contained in:
Bruce Eckel 2017-04-28 09:54:06 -06:00
parent fe1aac1c73
commit 847890c3d4
15 changed files with 15 additions and 15 deletions

View File

@ -2,7 +2,7 @@
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// {CompileTimeError} (Will not compile)
// {WillNotCompile}
class Anything {}

View File

@ -2,7 +2,7 @@
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// {CompileTimeError} (Will not compile)
// {WillNotCompile}
import java.util.function.*;
public class Closure3 {

View File

@ -2,7 +2,7 @@
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// {CompileTimeError} (Will not compile)
// {WillNotCompile}
import java.util.function.*;
public class Closure5 {

View File

@ -2,7 +2,7 @@
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// {CompileTimeError} (Will not compile)
// {WillNotCompile}
import java.util.function.*;
public class Closure7 {

View File

@ -2,7 +2,7 @@
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// {CompileTimeError} (Will not compile)
// {WillNotCompile}
import java.util.*;
import java.util.function.*;

View File

@ -2,7 +2,7 @@
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// {CompileTimeError} (Will not compile)
// {WillNotCompile}
public class Erased<T> {
private final int SIZE = 100;

View File

@ -2,7 +2,7 @@
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// {CompileTimeError} (Will not compile)
// {WillNotCompile}
class Cat
extends ComparablePet implements Comparable<Cat>{

View File

@ -2,7 +2,7 @@
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// {CompileTimeError} (Will not compile)
// {WillNotCompile}
class Manipulator<T> {
private T obj;

View File

@ -2,7 +2,7 @@
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// {CompileTimeError} (Will not compile)
// {WillNotCompile}
package generics;
interface Payable<T> {}

View File

@ -2,7 +2,7 @@
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// {CompileTimeError} (Will not compile)
// {WillNotCompile}
import java.util.*;
public class NonCovariantGenerics {

View File

@ -2,7 +2,7 @@
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// {CompileTimeError} (Will not compile)
// {WillNotCompile}
import java.util.*;
public class UseList<W, T> {

View File

@ -2,7 +2,7 @@
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// {CompileTimeError} (Will not compile)
// {WillNotCompile}
public class OverloadingVarargs2 {
static void f(float i, Character... args) {

View File

@ -2,7 +2,7 @@
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// {CompileTimeError} (Will not compile)
// {WillNotCompile}
public class AttemptToUseBasic {
Basic b = new Basic();

View File

@ -3,7 +3,7 @@
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// Detecting a mistaken override using @Override
// {CompileTimeError} (Will not compile)
// {WillNotCompile}
package polymorphism;
public class PrivateOverride2 {

View File

@ -2,7 +2,7 @@
// (c)2017 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://OnJava8.com for more book information.
// {CompileTimeError} (Will not compile)
// {WillNotCompile}
class Lisa extends Homer {
@Override void doh(Milhouse m) {