Skip to content

Commit

Permalink
Android API 8 support (String isEmpty).
Browse files Browse the repository at this point in the history
  • Loading branch information
mfellner committed May 24, 2013
1 parent 996da63 commit 9aeb8f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions android/src/cucumber/api/android/CucumberInstrumentation.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ public void onCreate(Bundle arguments) {
private boolean readRunWithCucumberAnnotation(Class<?> clazz) {
RunWithCucumber annotation = clazz.getAnnotation(RunWithCucumber.class);
if (annotation != null) {
mPackageOfTests = annotation.glue().isEmpty() ? defaultGlue() : annotation.glue();
mFeatures = annotation.features().isEmpty() ? defaultFeatures() : annotation.features();
// isEmpty() only available in Android API 9+
mPackageOfTests = annotation.glue().equals("") ? defaultGlue() : annotation.glue();
mFeatures = annotation.features().equals("") ? defaultFeatures() : annotation.features();
return true;
}
return false;
Expand Down

0 comments on commit 9aeb8f3

Please sign in to comment.