From b1db512e7bb671cc3d9b38fc0a860daecf15ed9b Mon Sep 17 00:00:00 2001 From: cgdecker Date: Mon, 7 Mar 2016 08:33:50 -0800 Subject: [PATCH] Rely on Guava 19.0 and use CharMatcher.whitespace() since CharMatcher.WHITESPACE is now soft-deprecated and will be removed in a future version of Guava (improves performance on android - not relevant to auto-value, but still nicer). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=116549017 --- value/pom.xml | 2 +- .../google/auto/value/processor/escapevelocity/Reparser.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/value/pom.xml b/value/pom.xml index 4437864500..306efdc14b 100644 --- a/value/pom.xml +++ b/value/pom.xml @@ -33,7 +33,7 @@ - 18.0 + 19.0 http://github.com/google/auto diff --git a/value/src/main/java/com/google/auto/value/processor/escapevelocity/Reparser.java b/value/src/main/java/com/google/auto/value/processor/escapevelocity/Reparser.java index d134940b2d..27c79b2c23 100644 --- a/value/src/main/java/com/google/auto/value/processor/escapevelocity/Reparser.java +++ b/value/src/main/java/com/google/auto/value/processor/escapevelocity/Reparser.java @@ -135,7 +135,7 @@ private static boolean shouldDeleteSpaceBetweenThisAndSet(Node node) { private static boolean isWhitespaceLiteral(Node node) { if (node instanceof ConstantExpressionNode) { Object constant = node.evaluate(null); - return constant instanceof String && CharMatcher.WHITESPACE.matchesAllOf((String) constant); + return constant instanceof String && CharMatcher.whitespace().matchesAllOf((String) constant); } return false; }