From 500fb85435a5a6ed28decd1045f86a2a7995f312 Mon Sep 17 00:00:00 2001 From: Rick Ossendrijver Date: Thu, 3 Aug 2023 23:15:03 +0200 Subject: [PATCH 1/2] Fix typo in `CanonicalSyntaxAnnotation.java` --- .../errorprone/bugpatterns/CanonicalAnnotationSyntax.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/CanonicalAnnotationSyntax.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/CanonicalAnnotationSyntax.java index b2073c7167..26c6442139 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/CanonicalAnnotationSyntax.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/CanonicalAnnotationSyntax.java @@ -91,8 +91,8 @@ private static Optional dropRedundantValueAttribute( ExpressionTree arg = args.get(0); if (state.getSourceForNode(arg) == null) { /* - * The annotation argument isn't doesn't have a source representation, e.g. because `value` - * isn't assigned to explicitly. + * The annotation argument doesn't have a source representation, e.g. because `value` + * isn't assigned explicitly. */ return Optional.empty(); } From bdc920577565d49f840994e9d3cc4440c974e5af Mon Sep 17 00:00:00 2001 From: Stephan Schroevers Date: Fri, 4 Aug 2023 18:07:45 +0200 Subject: [PATCH 2/2] Reflow --- .../errorprone/bugpatterns/CanonicalAnnotationSyntax.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/CanonicalAnnotationSyntax.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/CanonicalAnnotationSyntax.java index 26c6442139..a0ad184b32 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/CanonicalAnnotationSyntax.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/CanonicalAnnotationSyntax.java @@ -91,8 +91,8 @@ private static Optional dropRedundantValueAttribute( ExpressionTree arg = args.get(0); if (state.getSourceForNode(arg) == null) { /* - * The annotation argument doesn't have a source representation, e.g. because `value` - * isn't assigned explicitly. + * The annotation argument doesn't have a source representation, e.g. because `value` isn't + * assigned explicitly. */ return Optional.empty(); }