Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmeiliao committed Mar 1, 2019
1 parent 46a379b commit 9a5ef8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Expand Up @@ -33,7 +33,7 @@ public static void main(String[] args) {

if (!result.isSuccessful()) {
throw new RuntimeException(
"Failure creating region: " + result.getPersistenceStatus().getMessage());
"Failure creating region: " + result.getStatusMessage());
}

System.out.println("Successfully created region: " + regionName);
Expand Down
Expand Up @@ -29,8 +29,6 @@
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

import org.apache.commons.lang3.StringUtils;

import org.apache.geode.annotations.Experimental;
import org.apache.geode.management.api.RestfulEndpoint;

Expand Down Expand Up @@ -360,7 +358,7 @@ public String getType() {
*/
public void setType(String value) {
this.type = value;
if (StringUtils.isNotBlank(value)) {
if (value != null && value.length() > 0) {
setShortcutAttributes();
}
}
Expand Down

0 comments on commit 9a5ef8e

Please sign in to comment.