Skip to content

Commit dfef8ac

Browse files
authored
fix: use single-line comments for SNIP markers to avoid NotJavadoc warnings (#765)
ErrorProne's NotJavadoc check flags `/**` block comments that aren't actual Javadoc. The SNIP markers are for documentation extraction, not Javadoc, so use `//` single-line comments instead. Co-authored-by: Maxim Fateev <1463622+mfateev@users.noreply.github.com>
1 parent 8c31358 commit dfef8ac

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

core/src/main/java/io/temporal/samples/envconfig/LoadFromFile.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package io.temporal.samples.envconfig;
22

3-
/**
4-
* @@@SNIPSTART java-env-config-profile
5-
*/
3+
// @@@SNIPSTART java-env-config-profile
64
import io.temporal.client.WorkflowClient;
75
import io.temporal.client.WorkflowClientOptions;
86
import io.temporal.envconfig.ClientConfigProfile;
@@ -80,6 +78,4 @@ public static void main(String[] args) {
8078
}
8179
}
8280
}
83-
/**
84-
* @@@SNIPEND
85-
*/
81+
// @@@SNIPEND

core/src/main/java/io/temporal/samples/envconfig/LoadProfile.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package io.temporal.samples.envconfig;
22

3-
/**
4-
* @@@SNIPSTART java-env-config-profile-with-overrides
5-
*/
3+
// @@@SNIPSTART java-env-config-profile-with-overrides
64
import io.temporal.client.WorkflowClient;
75
import io.temporal.client.WorkflowClientOptions;
86
import io.temporal.envconfig.ClientConfigProfile;
@@ -88,6 +86,4 @@ public static void main(String[] args) {
8886
}
8987
}
9088
}
91-
/**
92-
* @@@SNIPEND
93-
*/
89+
// @@@SNIPEND

0 commit comments

Comments
 (0)