Skip to content

Commit

Permalink
Merge pull request #6 from 52North/fix/empty-ows-value
Browse files Browse the repository at this point in the history
Allow empty strings for OwsValue
  • Loading branch information
autermann authored May 22, 2017
2 parents 9844ac2 + a4389e8 commit 5400028
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/org/n52/shetland/ogc/ows/OwsValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import java.util.Objects;

import com.google.common.base.MoreObjects;
import com.google.common.base.Strings;

/**
* A single value, encoded as a string. This type can be used for one value, for
Expand All @@ -33,7 +32,7 @@ public class OwsValue implements OwsValueRestriction {
private final String value;

public OwsValue(String value) {
this.value = Objects.requireNonNull(Strings.emptyToNull(value));
this.value = Objects.requireNonNull(value);
}

public String getValue() {
Expand Down

0 comments on commit 5400028

Please sign in to comment.