提交 911236a9 编写于 作者: J jjg

6571165: Minor doc bugs in JavaCompiler.java

Reviewed-by: mcimadamore
上级 85387a44
/* /*
* Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -137,9 +137,9 @@ import javax.annotation.processing.Processor; ...@@ -137,9 +137,9 @@ import javax.annotation.processing.Processor;
* StandardJavaFileManager fileManager = compiler.getStandardFileManager(diagnostics, null, null); * StandardJavaFileManager fileManager = compiler.getStandardFileManager(diagnostics, null, null);
* compiler.getTask(null, fileManager, diagnostics, null, null, compilationUnits).call(); * compiler.getTask(null, fileManager, diagnostics, null, null, compilationUnits).call();
* *
* for (Diagnostic diagnostic : diagnostics.getDiagnostics()) * for (Diagnostic<? extends JavaFileObject> diagnostic : diagnostics.getDiagnostics())
* System.out.format("Error on line %d in %d%n", * System.out.format("Error on line %d in %s%n",
* diagnostic.getLineNumber() * diagnostic.getLineNumber(),
* diagnostic.getSource().toUri()); * diagnostic.getSource().toUri());
* *
* fileManager.close();</pre> * fileManager.close();</pre>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册