Skip to content

Commit 59b0775

Browse files
committed
style: final checkstyle cleanup and generics refactor
1 parent ffda1d8 commit 59b0775

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed
Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright 2017-2019 the original author or authors.
2+
* Copyright 2017-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* https://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -20,18 +20,19 @@
2020
import java.util.List;
2121
import java.util.Set;
2222

23-
/** An event that is published after a save operation to Cloud Spanner. */
23+
/** * An event that is published after a save operation to Cloud Spanner.
24+
*/
2425
public class AfterSaveEvent extends SaveEvent {
26+
2527
/**
2628
* Constructor.
2729
*
28-
* @param source the mutations for the event initially occurred. (never {@code null})
29-
* @param targetEntities the target entities that need to be mutated. This may be {@code null}
30-
* depending on the original request.
30+
* @param source the mutations for the event initially occurred.
31+
* @param targetEntities the target entities that were mutated.
3132
* @param includeProperties the set of properties to include in the save operation.
3233
*/
3334
public AfterSaveEvent(
34-
List<Mutation> source, Iterable targetEntities, Set<String> includeProperties) {
35+
List<Mutation> source, Iterable<?> targetEntities, Set<String> includeProperties) {
3536
super(source, targetEntities, includeProperties);
3637
}
37-
}
38+
}
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright 2017-2019 the original author or authors.
2+
* Copyright 2017-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* https://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -19,18 +19,18 @@
1919
import java.util.Collections;
2020
import java.util.Set;
2121

22-
/** An event that is published just before a save operation is sent to Cloud Spanner. */
22+
/**
23+
* An event that is published just before a save operation is sent to Cloud Spanner.
24+
*/
2325
public class BeforeSaveEvent extends SaveEvent {
2426

2527
/**
26-
* Constructor. {@code BeforeSaveEvent} does not hold mutations because this event gives the
27-
* opportunity to modify the entities from which mutations are ultimately generated.
28+
* Constructor.
2829
*
29-
* @param targetEntities the target entities that need to be mutated. This may be {@code null}
30-
* depending on the original request.
30+
* @param targetEntities the target entities that need to be mutated.
3131
* @param includeProperties the set of properties to include in the save operation.
3232
*/
33-
public BeforeSaveEvent(Iterable targetEntities, Set<String> includeProperties) {
33+
public BeforeSaveEvent(Iterable<?> targetEntities, Set<String> includeProperties) {
3434
super(Collections.emptyList(), targetEntities, includeProperties);
3535
}
36-
}
36+
}

0 commit comments

Comments
 (0)