@@ -93,14 +93,14 @@ public boolean process(final Set<? extends TypeElement> elements,
9393 try {
9494 writer .write (writer );
9595 }
96- catch (IOException e ) {
96+ catch (final IOException e ) {
9797 final ByteArrayOutputStream out = new ByteArrayOutputStream ();
9898 e .printStackTrace (new PrintStream (out ));
9999 try {
100100 out .close ();
101101 processingEnv .getMessager ().printMessage (Kind .ERROR , out .toString ());
102102 }
103- catch (IOException e2 ) {
103+ catch (final IOException e2 ) {
104104 processingEnv .getMessager ().printMessage (Kind .ERROR ,
105105 e2 .getMessage () + " while printing " + e .getMessage ());
106106 }
@@ -155,8 +155,9 @@ public void add(final TypeElement element) {
155155 }
156156
157157 @ SuppressWarnings ("unchecked" )
158- private Map <String , Object > adapt (List <? extends AnnotationMirror > mirrors ,
159- TypeMirror annotationType )
158+ private Map <String , Object > adapt (
159+ final List <? extends AnnotationMirror > mirrors ,
160+ final TypeMirror annotationType )
160161 {
161162 final Map <String , Object > result = new TreeMap <String , Object >();
162163 for (final AnnotationMirror mirror : mirrors ) {
@@ -211,7 +212,8 @@ else if (o instanceof VariableElement) {
211212 }
212213
213214 private AnnotationMirror getMirror (final TypeElement element ) {
214- for (AnnotationMirror candidate : utils .getAllAnnotationMirrors (element ))
215+ for (final AnnotationMirror candidate : utils
216+ .getAllAnnotationMirrors (element ))
215217 {
216218 final Name binaryName =
217219 utils .getBinaryName ((TypeElement ) candidate .getAnnotationType ()
@@ -224,7 +226,9 @@ private AnnotationMirror getMirror(final TypeElement element) {
224226 }
225227
226228 @ Override
227- public InputStream openInput (String annotationName ) throws IOException {
229+ public InputStream openInput (final String annotationName )
230+ throws IOException
231+ {
228232 try {
229233 return filer .getResource (StandardLocation .CLASS_OUTPUT , "" ,
230234 Index .INDEX_PREFIX + annotationName ).openInputStream ();
@@ -235,11 +239,14 @@ public InputStream openInput(String annotationName) throws IOException {
235239 }
236240
237241 @ Override
238- public OutputStream openOutput (String annotationName ) throws IOException {
242+ public OutputStream openOutput (final String annotationName )
243+ throws IOException
244+ {
239245 final List <Element > originating = originatingElements .get (annotationName );
240246 final String path = Index .INDEX_PREFIX + annotationName ;
241- final FileObject fileObject = filer .createResource (StandardLocation .CLASS_OUTPUT , "" ,
242- path , originating .toArray (new Element [originating .size ()]));
247+ final FileObject fileObject =
248+ filer .createResource (StandardLocation .CLASS_OUTPUT , "" , path ,
249+ originating .toArray (new Element [originating .size ()]));
243250
244251 /*
245252 * Verify that the generated file is in the META-INF/json/ subdirectory;
@@ -251,7 +258,8 @@ public OutputStream openOutput(String annotationName) throws IOException {
251258 if (uri != null && uri .endsWith ("/" + path )) {
252259 return fileObject .openOutputStream ();
253260 }
254- final String prefix = uri .substring (0 , uri .length () - annotationName .length ());
261+ final String prefix =
262+ uri .substring (0 , uri .length () - annotationName .length ());
255263 final File file = new File (prefix + path );
256264 final File parent = file .getParentFile ();
257265 if (parent != null && !parent .isDirectory () && !parent .mkdirs ()) {
@@ -261,7 +269,7 @@ public OutputStream openOutput(String annotationName) throws IOException {
261269 }
262270
263271 @ Override
264- public boolean isClassObsolete (String className ) {
272+ public boolean isClassObsolete (final String className ) {
265273 return false ;
266274 }
267275
0 commit comments