Skip to content

Commit

Permalink
add pom.xml snippet to enable mug-errorprone
Browse files Browse the repository at this point in the history
  • Loading branch information
fluentfuture committed Nov 10, 2024
1 parent 129c16b commit 8f07ae2
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions mug-guava/src/main/java/com/google/mu/safesql/SafeSql.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,35 @@
* are in effect to make sure that you don't pass {@code lastName} in the place of
* {@code first_name}, for example.
*
* <p>To use it, copy the {@code <configuration>} of the "maven-compiler-plugin" section from the
* following pom.xml file snippet:
*
* <pre>{@code
* <build>
* <pluginManagement>
* <plugins>
* <plugin>
* <artifactId>maven-compiler-plugin</artifactId>
* <configuration>
* <annotationProcessorPaths>
* <path>
* <groupId>com.google.errorprone</groupId>
* <artifactId>error_prone_core</artifactId>
* <version>2.23.0</version>
* </path>
* <path>
* <groupId>com.google.mug</groupId>
* <artifactId>mug-errorprone</artifactId>
* <version>8.1</version>
* </path>
* </annotationProcessorPaths>
* </configuration>
* </plugin>
* </plugins>
* </pluginManagement>
* </build>
* }</pre>
*
* <dl><dt><STRONG>Conditional Subqueries</STRONG></dt></dl>
*
* By composing SafeSql objects that encapsulate subqueries, you can also parameterize by
Expand Down

0 comments on commit 8f07ae2

Please # to comment.