1.1 --- a/src/share/classes/javax/tools/JavaCompiler.java Sat Sep 08 22:54:21 2012 -0700 1.2 +++ b/src/share/classes/javax/tools/JavaCompiler.java Thu Sep 13 14:29:36 2012 -0700 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -137,7 +137,7 @@ 1.11 * StandardJavaFileManager fileManager = compiler.getStandardFileManager(diagnostics, null, null); 1.12 * compiler.getTask(null, fileManager, diagnostics, null, null, compilationUnits).call(); 1.13 * 1.14 - * for (Diagnostic<? extends JavaFileObject> diagnostic : diagnostics.getDiagnostics()) 1.15 + * for ({@code Diagnostic<? extends JavaFileObject>} diagnostic : diagnostics.getDiagnostics()) 1.16 * System.out.format("Error on line %d in %s%n", 1.17 * diagnostic.getLineNumber(), 1.18 * diagnostic.getSource().toUri());