File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
spring-kafka/src/main/java/org/springframework/kafka/support Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -207,13 +207,13 @@ public void setEncodeStrings(boolean encodeStrings) {
207207 */
208208 public void addTrustedPackages (String ... packagesToTrust ) {
209209 if (packagesToTrust != null ) {
210- for (String whiteList : packagesToTrust ) {
211- if ("*" .equals (whiteList )) {
210+ for (String trusted : packagesToTrust ) {
211+ if ("*" .equals (trusted )) {
212212 this .trustedPackages .clear ();
213213 break ;
214214 }
215215 else {
216- this .trustedPackages .add (whiteList );
216+ this .trustedPackages .add (trusted );
217217 }
218218 }
219219 }
Original file line number Diff line number Diff line change @@ -79,13 +79,13 @@ public void setTypePrecedence(TypePrecedence typePrecedence) {
7979 @ Override
8080 public void addTrustedPackages (String ... packagesToTrust ) {
8181 if (packagesToTrust != null ) {
82- for (String whiteListClass : packagesToTrust ) {
83- if ("*" .equals (whiteListClass )) {
82+ for (String trusted : packagesToTrust ) {
83+ if ("*" .equals (trusted )) {
8484 this .trustedPackages .clear ();
8585 break ;
8686 }
8787 else {
88- this .trustedPackages .add (whiteListClass );
88+ this .trustedPackages .add (trusted );
8989 }
9090 }
9191 }
You can’t perform that action at this time.
0 commit comments