mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-26 02:00:12 +00:00
8054898: Avoid creation of empty type info files
Reviewed-by: attila, sundar, jlaskey
This commit is contained in:
parent
f71b48d575
commit
20607aa6c3
@ -107,7 +107,7 @@ public final class OptimisticTypesPersistence {
|
||||
*/
|
||||
@SuppressWarnings("resource")
|
||||
public static void store(final Object locationDescriptor, final Map<Integer, Type> optimisticTypes) {
|
||||
if(locationDescriptor == null) {
|
||||
if(locationDescriptor == null || optimisticTypes.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
final File file = ((LocationDescriptor)locationDescriptor).file;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user