Reformat all Java files with google-java-format 1.6

Change-Id: Iedba3f24ac00e2186e3e0688fabea817ddf43739
This commit is contained in:
David Pursehouse
2018-06-06 10:26:51 +09:00
parent 399e9aa2aa
commit af864a0aad
193 changed files with 1331 additions and 1984 deletions

View File

@@ -346,12 +346,10 @@ public class H2CacheImpl<K, V> extends AbstractLoadingCache<K, V> implements Per
// most likely bumping serialVersionUID rather than using the new versioning in the
// CacheBinding. That's ok; we'll continue to support both for now.
// TODO(dborowitz): Remove this case when Java serialization is no longer used.
logger
.atWarning()
.log(
"Entries cached for %s have an incompatible class and can't be deserialized. "
+ "Cache is flushed.",
url);
logger.atWarning().log(
"Entries cached for %s have an incompatible class and can't be deserialized. "
+ "Cache is flushed.",
url);
invalidateAll();
} else {
throw e;
@@ -531,11 +529,8 @@ public class H2CacheImpl<K, V> extends AbstractLoadingCache<K, V> implements Per
try (PreparedStatement ps = c.conn.prepareStatement("DELETE FROM data WHERE version!=?")) {
ps.setInt(1, version);
int oldEntries = ps.executeUpdate();
logger
.atInfo()
.log(
"Pruned %d entries not matching version %d from cache %s",
oldEntries, version, url);
logger.atInfo().log(
"Pruned %d entries not matching version %d from cache %s", oldEntries, version, url);
}
try (Statement s = c.conn.createStatement()) {
// Compute size without restricting to version (although obsolete data was just pruned