Skip to content

Commit 9e877e1

Browse files
MBoegersdavidh44
andauthored
Fix OpenRewrite Method Matcher Syntax (#6438)
* add missing ')' to OpenRewrite Mathod Matcher * add missing ')' to OpenRewrite Method Matcher --------- Co-authored-by: hdavidh <hdavidh@amazon.com>
1 parent 8b70ddf commit 9e877e1

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "bugfix",
3+
"category": "AWS SDK for Java v2 Migration Tool",
4+
"contributor": "MBoegers",
5+
"description": "Fix OpenRewrite recipe MethodMatcher"
6+
}

v2-migration/src/main/java/software/amazon/awssdk/v2migration/S3AddImportsAndComments.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
public class S3AddImportsAndComments extends Recipe {
4040

4141
private static final MethodMatcher CREATE_BUCKET = v1S3MethodMatcher("createBucket(String, "
42-
+ V1_S3_MODEL_PKG + "Region");
42+
+ V1_S3_MODEL_PKG + "Region)");
4343
private static final MethodMatcher LIST_NEXT_BATCH_OBJECTS = v1S3MethodMatcher("listNextBatchOfObjects(..)");
4444
private static final MethodMatcher LIST_NEXT_BATCH_VERSIONS = v1S3MethodMatcher("listNextBatchOfVersions(..)");
4545
private static final MethodMatcher GET_METADATA = v1S3MethodMatcher("getCachedResponseMetadata(..)");

v2-migration/src/main/java/software/amazon/awssdk/v2migration/TransferManagerMethodsToV2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class TransferManagerMethodsToV2 extends Recipe {
5151
private static final MethodMatcher COPY_REQUEST =
5252
v2TmMethodMatcher(String.format("copy(%sCopyObjectRequest)", V2_S3_MODEL_PKG));
5353
private static final MethodMatcher COPY_BUCKET_KEY =
54-
v2TmMethodMatcher("copy(String, String, String, String");
54+
v2TmMethodMatcher("copy(String, String, String, String)");
5555

5656
private static final MethodMatcher DOWNLOAD_DIR = v2TmMethodMatcher("downloadDirectory(String, String, java.io.File)");
5757

0 commit comments

Comments
 (0)