Fri, 14 Jan 2011 11:55:53 -0800
6571165: Minor doc bugs in JavaCompiler.java
Reviewed-by: mcimadamore
src/share/classes/javax/tools/JavaCompiler.java | file | annotate | diff | comparison | revisions |
1.1 --- a/src/share/classes/javax/tools/JavaCompiler.java Fri Jan 14 11:45:19 2011 -0800 1.2 +++ b/src/share/classes/javax/tools/JavaCompiler.java Fri Jan 14 11:55:53 2011 -0800 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2005, 2011, 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,9 +137,9 @@ 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 diagnostic : diagnostics.getDiagnostics()) 1.15 - * System.out.format("Error on line %d in %d%n", 1.16 - * diagnostic.getLineNumber() 1.17 + * for (Diagnostic<? extends JavaFileObject> diagnostic : diagnostics.getDiagnostics()) 1.18 + * System.out.format("Error on line %d in %s%n", 1.19 + * diagnostic.getLineNumber(), 1.20 * diagnostic.getSource().toUri()); 1.21 * 1.22 * fileManager.close();</pre>