You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2020/07/08 11:50:37 UTC
[brooklyn-server] branch master updated: fix obvious syntactic
error in recent code
This is an automated email from the ASF dual-hosted git repository.
heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-server.git
The following commit(s) were added to refs/heads/master by this push:
new 8a556aa fix obvious syntactic error in recent code
8a556aa is described below
commit 8a556aaa84f40fff376add6e7e3ca41038ea5f27
Author: Alex Heneveld <al...@cloudsoftcorp.com>
AuthorDate: Wed Jul 8 12:50:18 2020 +0100
fix obvious syntactic error in recent code
---
.../main/java/org/apache/brooklyn/camp/brooklyn/spi/dsl/DslUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/camp/camp-brooklyn/src/main/java/org/apache/brooklyn/camp/brooklyn/spi/dsl/DslUtils.java b/camp/camp-brooklyn/src/main/java/org/apache/brooklyn/camp/brooklyn/spi/dsl/DslUtils.java
index 7cf5c88..85a0c7f 100644
--- a/camp/camp-brooklyn/src/main/java/org/apache/brooklyn/camp/brooklyn/spi/dsl/DslUtils.java
+++ b/camp/camp-brooklyn/src/main/java/org/apache/brooklyn/camp/brooklyn/spi/dsl/DslUtils.java
@@ -91,7 +91,7 @@ public class DslUtils {
}
}
- if (requireType && value instanceof DeferredSupplier) {
+ if (!requireType && value instanceof DeferredSupplier) {
// Don't cast - let Brooklyn evaluate it later (the value is a resolved DSL expression).
return Optional.of(value);
}