Skip to content

Commit 0c666cc

Browse files
2 parents 94d9f37 + 1651231 commit 0c666cc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# LaunchDarkly Sample Java Application
1+
# LaunchDarkly sample Java application
22

33
We've built a simple console application that demonstrates how LaunchDarkly's SDK works.
44

@@ -20,4 +20,4 @@ This project uses [Gradle](https://gradle.org/). It requires that Java is alread
2020

2121
2. On the command line, run `./gradlew run` (or, on Windows, `gradlew run`).
2222

23-
You should see the message `"Feature flag '<flag key>' is <true/false> for this context"`.
23+
You should receive the message "The <flagKey> feature flag evaluates to <flagValue>." The application will run continuously and react to the flag changes in LaunchDarkly.

src/main/java/Hello.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public static void main(String... args) throws Exception {
6767

6868
// Evaluate the feature flag for this context.
6969
boolean flagValue = client.boolVariation(FEATURE_FLAG_KEY, context, false);
70-
showMessage("Feature flag '" + FEATURE_FLAG_KEY + "' is " + flagValue + " for this context");
70+
showMessage("The '" + FEATURE_FLAG_KEY + "' feature flag evaluates to " + flagValue + ".");
7171

7272
if (flagValue) {
7373
showBanner();
@@ -81,7 +81,7 @@ public static void main(String... args) throws Exception {
8181
// We set up a flag change listener so you can see flag changes as you change
8282
// the flag rules.
8383
client.getFlagTracker().addFlagValueChangeListener(FEATURE_FLAG_KEY, context, event -> {
84-
showMessage("Feature flag '" + FEATURE_FLAG_KEY + "' is " + event.getNewValue() + " for this context");
84+
showMessage("The '" + FEATURE_FLAG_KEY + "' feature flag evaluates to " + event.getNewValue() + ".");
8585

8686
if (event.getNewValue().booleanValue()) {
8787
showBanner();

0 commit comments

Comments
 (0)