Only write the deltemplates manifest if we have deltemplates
GITHUB_BREAKING_CHANGES=none
@@ -201,8 +201,11 @@ public final class BytecodeCompiler {
delTemplates.add(name);
}
});
+ if (!delTemplates.isEmpty()) {
String delData = Joiner.on('\n').join(delTemplates);
- writer.writeEntry(Names.META_INF_DELTEMPLATE_PATH, ByteSource.wrap(delData.getBytes(UTF_8)));
+ writer.writeEntry(
+ Names.META_INF_DELTEMPLATE_PATH, ByteSource.wrap(delData.getBytes(UTF_8)));
+ }
}
}
