@@ -129,6 +129,7 @@ public static BucketDestination of(String bucket) {
129
129
return new BucketDestination (bucket );
130
130
}
131
131
132
+ @ SuppressWarnings ("unchecked" )
132
133
static BucketDestination fromPb (String destinationPb ) {
133
134
Matcher matcher = PATTERN .matcher (destinationPb );
134
135
if (!matcher .matches ()) {
@@ -221,6 +222,7 @@ static boolean matchesDestination(String destinationPb) {
221
222
return PATTERN .matcher (destinationPb ).matches ();
222
223
}
223
224
225
+ @ SuppressWarnings ("unchecked" )
224
226
static DatasetDestination fromPb (String destinationPb ) {
225
227
Matcher matcher = PATTERN .matcher (destinationPb );
226
228
if (!matcher .matches ()) {
@@ -321,6 +323,7 @@ static boolean matchesDestination(String destinationPb) {
321
323
return PATTERN .matcher (destinationPb ).matches ();
322
324
}
323
325
326
+ @ SuppressWarnings ("unchecked" )
324
327
static LoggingBucketDestination fromPb (String destinationPb ) {
325
328
Matcher matcher = PATTERN .matcher (destinationPb );
326
329
if (!matcher .matches ()) {
@@ -413,6 +416,7 @@ static boolean matchesDestination(String destinationPb) {
413
416
return PATTERN .matcher (destinationPb ).matches ();
414
417
}
415
418
419
+ @ SuppressWarnings ("unchecked" )
416
420
static TopicDestination fromPb (String destinationPb ) {
417
421
Matcher matcher = PATTERN .matcher (destinationPb );
418
422
if (!matcher .matches ()) {
0 commit comments