*/
package ro.fortsoft.pf4j.processor;
+import javax.annotation.processing.FilerException;
import javax.tools.FileObject;
import javax.tools.StandardLocation;
import java.io.BufferedReader;
extensions.put(null, entries);
} catch (FileNotFoundException e) {
// ignore
+ } catch (FilerException e) {
+ // re-opening the file for reading or after writing is ignorable
} catch (IOException e) {
error(e.getMessage());
}
writer.close();
} catch (FileNotFoundException e) {
// it's the first time, create the file
+ } catch (FilerException e) {
+ // re-opening the file for reading or after writing is ignorable
} catch (IOException e) {
error(e.toString());
}
*/
package ro.fortsoft.pf4j.processor;
+import javax.annotation.processing.FilerException;
import javax.tools.FileObject;
import javax.tools.StandardLocation;
import java.io.BufferedReader;
extensions.put(extensionPoint, entries);
} catch (FileNotFoundException e) {
// doesn't exist, ignore
+ } catch (FilerException e) {
+ // re-opening the file for reading or after writing is ignorable
} catch (IOException e) {
error(e.getMessage());
}
writer.close();
} catch (FileNotFoundException e) {
// it's the first time, create the file
+ } catch (FilerException e) {
+ // re-opening the file for reading or after writing is ignorable
} catch (IOException e) {
error(e.toString());
}