mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-06 00:18:34 +00:00
8176492: @since value errors in java.compiler module
Reviewed-by: darcy
This commit is contained in:
parent
fb7e444407
commit
9e93e201f6
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -69,7 +69,7 @@ import static javax.lang.model.SourceVersion.*;
|
||||
*
|
||||
* @see SimpleTypeVisitor6
|
||||
* @see SimpleTypeVisitor7
|
||||
* @since 1.8
|
||||
* @since 9
|
||||
*/
|
||||
@SupportedSourceVersion(RELEASE_9)
|
||||
public class SimpleTypeVisitor9<R, P> extends SimpleTypeVisitor8<R, P> {
|
||||
|
||||
@ -33,6 +33,8 @@ import java.util.concurrent.Callable;
|
||||
/**
|
||||
* Interface to invoke Java™ programming language documentation tools from
|
||||
* programs.
|
||||
*
|
||||
* @since 1.8
|
||||
*/
|
||||
public interface DocumentationTool extends Tool, OptionChecker {
|
||||
/**
|
||||
@ -130,6 +132,7 @@ public interface DocumentationTool extends Tool, OptionChecker {
|
||||
* @throws IllegalArgumentException may be thrown for some
|
||||
* invalid module names
|
||||
* @throws IllegalStateException if the task has started
|
||||
* @since 9
|
||||
*/
|
||||
void addModules(Iterable<String> moduleNames);
|
||||
|
||||
|
||||
@ -305,6 +305,7 @@ public interface JavaCompiler extends Tool, OptionChecker {
|
||||
* @throws IllegalArgumentException may be thrown for some
|
||||
* invalid module names
|
||||
* @throws IllegalStateException if the task has started
|
||||
* @since 9
|
||||
*/
|
||||
void addModules(Iterable<String> moduleNames);
|
||||
|
||||
|
||||
@ -349,6 +349,8 @@ public interface StandardJavaFileManager extends JavaFileManager {
|
||||
*
|
||||
* @see setLocation
|
||||
* @see setLocationFromPaths
|
||||
*
|
||||
* @since 9
|
||||
*/
|
||||
default void setLocationForModule(Location location, String moduleName,
|
||||
Collection<? extends Path> paths) throws IOException {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -111,8 +111,8 @@ public enum StandardLocation implements Location {
|
||||
|
||||
/**
|
||||
* Location to search for module patches.
|
||||
* @since 9
|
||||
* @spec JPMS
|
||||
* @since 9
|
||||
*/
|
||||
PATCH_MODULE_PATH;
|
||||
|
||||
@ -165,6 +165,10 @@ public enum StandardLocation implements Location {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
* @since 9
|
||||
*/
|
||||
@Override
|
||||
public boolean isModuleOrientedLocation() {
|
||||
switch (this) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user