Skip to content

Commit

Permalink
Adds a Checkstyle validation to ensure that the Guava cache is not us…
Browse files Browse the repository at this point in the history
…ed. (#3631)

Signed-off-by: David Venable <[email protected]>
  • Loading branch information
dlvenable authored Nov 29, 2023
1 parent 63b7fc6 commit b1bd3fc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,9 @@
-->
<module name="ModifierOrder" />

<module name="ImportControl">
<property name="file" value="${config_loc}/import-control.xml"/>
</module>

</module>
</module>
14 changes: 14 additions & 0 deletions config/checkstyle/import-control.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<!--
~ Copyright OpenSearch Contributors
~ SPDX-License-Identifier: Apache-2.0
-->

<!DOCTYPE import-control PUBLIC
"-//Checkstyle//DTD ImportControl Configuration 1.4//EN"
"https://checkstyle.org/dtds/import_control_1_4.dtd">

<import-control pkg="org.opensearch.dataprepper" strategyOnMismatch="allowed">
<!-- Prefer Caffeine -->
<disallow pkg="com.google.common.cache"/>
</import-control>

0 comments on commit b1bd3fc

Please sign in to comment.