Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refs issue #5 Some classes are not supported anymore in Apache Flink v1.4 and were … #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JanKalkan
Copy link

…exchanged:

import org.apache.flink.hadoop.shaded.com.google.common.base.Strings;
import org.apache.flink.hadoop.shaded.com.google.common.collect.Lists;

…exchanged:

import org.apache.flink.hadoop.shaded.com.google.common.base.Strings;
import org.apache.flink.hadoop.shaded.com.google.common.collect.Lists;
@s1ck
Copy link
Owner

s1ck commented Apr 16, 2018

Sorry, totally lost sight of that PR. Wouldn't it make sense to also update the <dep.flink.version>1.1.3</dep.flink.version> to the latest version?

@@ -199,10 +198,10 @@ public T setReadTimeout(int readTimeout) {
* Validates mandatory arguments.
*/
protected void validate() {
if (Strings.isNullOrEmpty(restURI)) {
if (restURI.isEmpty() || restURI == null) {
Copy link
Owner

@s1ck s1ck Apr 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the restURI == null check should be in front. If it's null, the .isEmpty() call will throw a NPE. That's why the helper method is called nullOrEmpty ;)

also see here https://github.com/google/guava/blob/master/guava/src/com/google/common/base/Platform.java#L58-L60

Jan Kalkan added 2 commits April 20, 2018 15:40
- POM updated to Flink v.1.4.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants