Skip to content

Commit 3c8154f

Browse files
runningcodeclaude
andcommitted
fix(sentry): Suppress JavaUtilDate on deprecated constructor (JAVA-533)
Error Prone's JavaUtilDate check flagged date.getTime() in the deprecated constructor, failing the build. Suppress it, matching the existing suppression used elsewhere in this class. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent db109ea commit 3c8154f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sentry/src/main/java/io/sentry/SentryNanotimeDate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public SentryNanotimeDate() {
3131
* @deprecated use {@link SentryNanotimeDate#SentryNanotimeDate(long, long)} instead.
3232
*/
3333
@Deprecated
34-
@SuppressWarnings("InlineMeSuggester")
34+
@SuppressWarnings({"InlineMeSuggester", "JavaUtilDate"})
3535
public SentryNanotimeDate(final @NotNull Date date, final long nanos) {
3636
this(date.getTime(), nanos);
3737
}

0 commit comments

Comments
 (0)