Skip to content

Commit ea80b00

Browse files
committed
Add missing @OVERRIDES
1 parent 68a303f commit ea80b00

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

src/main/java/org/scijava/annotations/AnnotationProcessor.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ private Map<String, Object> adapt(List<? extends AnnotationMirror> mirrors,
164164
return result;
165165
}
166166

167+
@Override
167168
protected Object adapt(final Object o) {
168169
if (o instanceof AnnotationMirror) {
169170
final AnnotationMirror mirror = (AnnotationMirror) o;
@@ -219,6 +220,7 @@ private AnnotationMirror getMirror(final TypeElement element) {
219220
return null;
220221
}
221222

223+
@Override
222224
public InputStream openInput(String annotationName) throws IOException {
223225
try {
224226
return filer.getResource(StandardLocation.CLASS_OUTPUT, "",
@@ -229,6 +231,7 @@ public InputStream openInput(String annotationName) throws IOException {
229231
}
230232
}
231233

234+
@Override
232235
public OutputStream openOutput(String annotationName) throws IOException {
233236
final List<Element> originating = originatingElements.get(annotationName);
234237
return filer.createResource(StandardLocation.CLASS_OUTPUT, "",
@@ -237,6 +240,7 @@ public OutputStream openOutput(String annotationName) throws IOException {
237240
.openOutputStream();
238241
}
239242

243+
@Override
240244
public boolean isClassObsolete(String className) {
241245
return false;
242246
}

src/main/java/org/scijava/annotations/DirectoryIndexer.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ private static boolean isIndexable(final Class<?> annotationClass) {
137137
protected synchronized void write(final File directory) throws IOException {
138138
final StreamFactory factory = new StreamFactory() {
139139

140+
@Override
140141
public InputStream openInput(String annotationName) throws IOException {
141142
final File file =
142143
new File(directory, Index.INDEX_PREFIX + annotationName);
@@ -148,6 +149,7 @@ public InputStream openInput(String annotationName) throws IOException {
148149
}
149150
}
150151

152+
@Override
151153
public OutputStream openOutput(String annotationName) throws IOException {
152154
final File file =
153155
new File(directory, Index.INDEX_PREFIX + annotationName);
@@ -169,6 +171,7 @@ public void close() throws IOException {
169171
};
170172
}
171173

174+
@Override
172175
public boolean isClassObsolete(String className) {
173176
final String classPath = className.replace('.', '/') + ".class";
174177
return !new File(directory, classPath).exists();

src/main/java/org/scijava/annotations/Index.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,12 @@ private IndexReader getNextReader() throws IOException {
192192
return null;
193193
}
194194

195+
@Override
195196
public boolean hasNext() {
196197
return next != null;
197198
}
198199

200+
@Override
199201
public IndexItem<A> next() {
200202
final IndexItem<A> result = next;
201203
try {
@@ -208,11 +210,13 @@ public IndexItem<A> next() {
208210
return result;
209211
}
210212

213+
@Override
211214
public void remove() {
212215
throw new UnsupportedOperationException();
213216
}
214217
}
215218

219+
@Override
216220
public Iterator<IndexItem<A>> iterator() {
217221
return new IndexItemIterator(annotation);
218222
}

0 commit comments

Comments
 (0)