Kapt: Add missing 'flush()', otherwise the serialized data can be empty

This commit is contained in:
Yan Zhulanow
2017-12-16 05:46:17 +09:00
parent f67eb90dfb
commit 1692d1a087
@@ -303,6 +303,7 @@ public class KaptJVMCompilerMojo extends K2JVMCompileMojo {
oos.writeUTF(entry.getValue());
}
oos.flush();
return Base64.getEncoder().encodeToString(os.toByteArray());
} catch (IOException e) {
// Should not occur