flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smarthi <...@git.apache.org>
Subject [GitHub] flink pull request #2275: FLINK-3929 Support for Kerberos Authentication wit...
Date Wed, 27 Jul 2016 16:20:41 GMT
Github user smarthi commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2275#discussion_r72472262
  
    --- Diff: flink-core/src/main/java/org/apache/flink/util/Preconditions.java ---
    @@ -293,6 +293,16 @@ private static String format(@Nullable String template, @Nullable
Object... args
     
     		return builder.toString();
     	}
    +
    +	/**
    +	 * Returns {@code true} if the given string is null or is the empty string.
    +	 * @param string a string reference to check
    +	 * @return {@code true} if the string is null or is the empty string
    +	 */
    +	public static boolean isNullOrEmpty(@Nullable String string) {
    --- End diff --
    
    Consider using Apache Commons StringUtils.isBlank() for this.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message