From 634bacae1461efe4da8d600ca72c625fd108bcf0 Mon Sep 17 00:00:00 2001 From: "ray.j.greenwell" Date: Tue, 20 Apr 2010 14:28:19 +0000 Subject: [PATCH] Jamie Doornbos points out that I made a booboo here. Our getOr() will skip the first argument if it is "blank" (null, empty, or all whitespace), not just null. git-svn-id: https://samskivert.googlecode.com/svn/trunk@2783 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- src/java/com/samskivert/util/StringUtil.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/java/com/samskivert/util/StringUtil.java b/src/java/com/samskivert/util/StringUtil.java index 383785c8..d68592a9 100644 --- a/src/java/com/samskivert/util/StringUtil.java +++ b/src/java/com/samskivert/util/StringUtil.java @@ -126,7 +126,6 @@ public class StringUtil /** * Returns the string if it is non-blank (see {@link #isBlank}), the default value otherwise. */ - @ReplacedBy("com.google.common.base.Object.firstNonNull()") public static String getOr (String value, String defval) { return isBlank(value) ? defval : value;