Kapt: Add missing 'flush()', otherwise the serialized data can be empty
This commit is contained in:
+1
@@ -303,6 +303,7 @@ public class KaptJVMCompilerMojo extends K2JVMCompileMojo {
|
|||||||
oos.writeUTF(entry.getValue());
|
oos.writeUTF(entry.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
oos.flush();
|
||||||
return Base64.getEncoder().encodeToString(os.toByteArray());
|
return Base64.getEncoder().encodeToString(os.toByteArray());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
// Should not occur
|
// Should not occur
|
||||||
|
|||||||
Reference in New Issue
Block a user