Fix for issue 3535, whitelist/blacklist warnings suggest invalid argument
syntax using equals rather than space.
Review by: scottb
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@6027 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/dev/core/src/com/google/gwt/dev/shell/BrowserWidgetHostChecker.java b/dev/core/src/com/google/gwt/dev/shell/BrowserWidgetHostChecker.java
index eb7b32e..fe9bc59 100644
--- a/dev/core/src/com/google/gwt/dev/shell/BrowserWidgetHostChecker.java
+++ b/dev/core/src/com/google/gwt/dev/shell/BrowserWidgetHostChecker.java
@@ -121,7 +121,8 @@
* @param hosts the set of regexes to be checked against
* @return true if the host matches
*/
- public static String checkHost(String hostUnderConsideration, Set<String> hosts) {
+ public static String checkHost(String hostUnderConsideration,
+ Set<String> hosts) {
// TODO(jat): build a single regex instead of looping
hostUnderConsideration = hostUnderConsideration.toLowerCase();
for (String rule : hosts) {
@@ -250,12 +251,12 @@
reason.log(msgType, "blacklist: " + blackListStr, null);
TreeLogger fix = header.branch(msgType, "To fix: add regex matching "
+ "URL to -whitelist command line argument", null);
- fix.log(msgType, "Example: -whitelist=\"" + whiteListStr + " " + hostRegex
+ fix.log(msgType, "Example: -whitelist \"" + whiteListStr + " " + hostRegex
+ "\"", null);
TreeLogger reject = header.branch(msgType,
"To reject automatically: add regex matching "
+ "URL to -blacklist command line argument", null);
- reject.log(msgType, "Example: -blacklist=\"" + blackListStr + " "
+ reject.log(msgType, "Example: -blacklist \"" + blackListStr + " "
+ hostRegex + "\"", null);
}