1
1
/*
2
- * Copyright (c) 2005, 2017 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2005, 2020 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -49,7 +49,7 @@ public class ForwardingJavaFileManager<M extends JavaFileManager> implements Jav
49
49
protected final M fileManager ;
50
50
51
51
/**
52
- * Creates a new instance of ForwardingJavaFileManager.
52
+ * Creates a new instance of {@code ForwardingJavaFileManager} .
53
53
* @param fileManager delegate to this file manager
54
54
*/
55
55
protected ForwardingJavaFileManager (M fileManager ) {
@@ -60,6 +60,7 @@ protected ForwardingJavaFileManager(M fileManager) {
60
60
* @throws SecurityException {@inheritDoc}
61
61
* @throws IllegalStateException {@inheritDoc}
62
62
*/
63
+ @ Override
63
64
public ClassLoader getClassLoader (Location location ) {
64
65
return fileManager .getClassLoader (location );
65
66
}
@@ -68,6 +69,7 @@ public ClassLoader getClassLoader(Location location) {
68
69
* @throws IOException {@inheritDoc}
69
70
* @throws IllegalStateException {@inheritDoc}
70
71
*/
72
+ @ Override
71
73
public Iterable <JavaFileObject > list (Location location ,
72
74
String packageName ,
73
75
Set <Kind > kinds ,
@@ -80,13 +82,15 @@ public Iterable<JavaFileObject> list(Location location,
80
82
/**
81
83
* @throws IllegalStateException {@inheritDoc}
82
84
*/
85
+ @ Override
83
86
public String inferBinaryName (Location location , JavaFileObject file ) {
84
87
return fileManager .inferBinaryName (location , file );
85
88
}
86
89
87
90
/**
88
91
* @throws IllegalArgumentException {@inheritDoc}
89
92
*/
93
+ @ Override
90
94
public boolean isSameFile (FileObject a , FileObject b ) {
91
95
return fileManager .isSameFile (a , b );
92
96
}
@@ -95,14 +99,17 @@ public boolean isSameFile(FileObject a, FileObject b) {
95
99
* @throws IllegalArgumentException {@inheritDoc}
96
100
* @throws IllegalStateException {@inheritDoc}
97
101
*/
102
+ @ Override
98
103
public boolean handleOption (String current , Iterator <String > remaining ) {
99
104
return fileManager .handleOption (current , remaining );
100
105
}
101
106
107
+ @ Override
102
108
public boolean hasLocation (Location location ) {
103
109
return fileManager .hasLocation (location );
104
110
}
105
111
112
+ @ Override
106
113
public int isSupportedOption (String option ) {
107
114
return fileManager .isSupportedOption (option );
108
115
}
@@ -111,6 +118,7 @@ public int isSupportedOption(String option) {
111
118
* @throws IllegalArgumentException {@inheritDoc}
112
119
* @throws IllegalStateException {@inheritDoc}
113
120
*/
121
+ @ Override
114
122
public JavaFileObject getJavaFileForInput (Location location ,
115
123
String className ,
116
124
Kind kind )
@@ -123,6 +131,7 @@ public JavaFileObject getJavaFileForInput(Location location,
123
131
* @throws IllegalArgumentException {@inheritDoc}
124
132
* @throws IllegalStateException {@inheritDoc}
125
133
*/
134
+ @ Override
126
135
public JavaFileObject getJavaFileForOutput (Location location ,
127
136
String className ,
128
137
Kind kind ,
@@ -136,6 +145,7 @@ public JavaFileObject getJavaFileForOutput(Location location,
136
145
* @throws IllegalArgumentException {@inheritDoc}
137
146
* @throws IllegalStateException {@inheritDoc}
138
147
*/
148
+ @ Override
139
149
public FileObject getFileForInput (Location location ,
140
150
String packageName ,
141
151
String relativeName )
@@ -148,6 +158,7 @@ public FileObject getFileForInput(Location location,
148
158
* @throws IllegalArgumentException {@inheritDoc}
149
159
* @throws IllegalStateException {@inheritDoc}
150
160
*/
161
+ @ Override
151
162
public FileObject getFileForOutput (Location location ,
152
163
String packageName ,
153
164
String relativeName ,
@@ -157,10 +168,12 @@ public FileObject getFileForOutput(Location location,
157
168
return fileManager .getFileForOutput (location , packageName , relativeName , sibling );
158
169
}
159
170
171
+ @ Override
160
172
public void flush () throws IOException {
161
173
fileManager .flush ();
162
174
}
163
175
176
+ @ Override
164
177
public void close () throws IOException {
165
178
fileManager .close ();
166
179
}
@@ -169,6 +182,7 @@ public void close() throws IOException {
169
182
* @since 9
170
183
* @spec JPMS
171
184
*/
185
+ @ Override
172
186
public Location getLocationForModule (Location location , String moduleName ) throws IOException {
173
187
return fileManager .getLocationForModule (location , moduleName );
174
188
}
@@ -177,6 +191,7 @@ public Location getLocationForModule(Location location, String moduleName) throw
177
191
* @since 9
178
192
* @spec JPMS
179
193
*/
194
+ @ Override
180
195
public Location getLocationForModule (Location location , JavaFileObject fo ) throws IOException {
181
196
return fileManager .getLocationForModule (location , fo );
182
197
}
@@ -185,6 +200,7 @@ public Location getLocationForModule(Location location, JavaFileObject fo) throw
185
200
* @since 9
186
201
* @spec JPMS
187
202
*/
203
+ @ Override
188
204
public <S > ServiceLoader <S > getServiceLoader (Location location , Class <S > service ) throws IOException {
189
205
return fileManager .getServiceLoader (location , service );
190
206
}
@@ -193,6 +209,7 @@ public <S> ServiceLoader<S> getServiceLoader(Location location, Class<S> service
193
209
* @since 9
194
210
* @spec JPMS
195
211
*/
212
+ @ Override
196
213
public String inferModuleName (Location location ) throws IOException {
197
214
return fileManager .inferModuleName (location );
198
215
}
@@ -201,13 +218,15 @@ public String inferModuleName(Location location) throws IOException {
201
218
* @since 9
202
219
* @spec JPMS
203
220
*/
221
+ @ Override
204
222
public Iterable <Set <Location >> listLocationsForModules (Location location ) throws IOException {
205
223
return fileManager .listLocationsForModules (location );
206
224
}
207
225
208
226
/**
209
227
* @since 9
210
228
*/
229
+ @ Override
211
230
public boolean contains (Location location , FileObject fo ) throws IOException {
212
231
return fileManager .contains (location , fo );
213
232
}
0 commit comments