aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/syntax/EvalUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/syntax/EvalUtils.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/syntax/EvalUtils.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/syntax/EvalUtils.java b/src/main/java/com/google/devtools/build/lib/syntax/EvalUtils.java
index 0e8a49f559..8dfe097abf 100644
--- a/src/main/java/com/google/devtools/build/lib/syntax/EvalUtils.java
+++ b/src/main/java/com/google/devtools/build/lib/syntax/EvalUtils.java
@@ -334,7 +334,7 @@ public final class EvalUtils {
private static Collection<?> nestedSetToCollection(
SkylarkNestedSet set, Location loc, @Nullable Environment env) throws EvalException {
- if (env != null && env.getSemantics().incompatibleDepsetIsNotIterable) {
+ if (env != null && env.getSemantics().incompatibleDepsetIsNotIterable()) {
throw new EvalException(
loc,
"type 'depset' is not iterable. Use the `to_list()` method to get a list. Use "
@@ -403,7 +403,7 @@ public final class EvalUtils {
private static ImmutableList<String> split(String value, Location loc, @Nullable Environment env)
throws EvalException {
- if (env != null && env.getSemantics().incompatibleStringIsNotIterable) {
+ if (env != null && env.getSemantics().incompatibleStringIsNotIterable()) {
throw new EvalException(
loc,
"type 'string' is not iterable. You may still use `len` and string indexing. Use "