Skip to content

Commit 3d24ef3

Browse files
Remove unused jacoco variable in pom.xml. Moved javadoc plugin to global plugins instead of publish profile.
1 parent 330b752 commit 3d24ef3

2 files changed

Lines changed: 26 additions & 27 deletions

File tree

pom.xml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,23 @@
194194
</dependencies>
195195
<build>
196196
<plugins>
197+
<plugin>
198+
<groupId>org.apache.maven.plugins</groupId>
199+
<artifactId>maven-javadoc-plugin</artifactId>
200+
<version>3.11.2</version>
201+
<configuration>
202+
<failOnWarnings>false</failOnWarnings>
203+
<doclint>all,-missing</doclint>
204+
</configuration>
205+
<executions>
206+
<execution>
207+
<id>attach-javadocs</id>
208+
<goals>
209+
<goal>jar</goal>
210+
</goals>
211+
</execution>
212+
</executions>
213+
</plugin>
197214
<plugin>
198215
<groupId>org.apache.maven.plugins</groupId>
199216
<artifactId>maven-compiler-plugin</artifactId>
@@ -256,7 +273,6 @@
256273
<artifactId>maven-surefire-plugin</artifactId>
257274
<version>3.5.3</version>
258275
<configuration>
259-
<argLine>${jacoco.argLine}</argLine>
260276
<properties>
261277
<property>
262278
<name>testng</name>
@@ -367,23 +383,6 @@
367383
</plugins>
368384
</pluginManagement>
369385
<plugins>
370-
<plugin>
371-
<groupId>org.apache.maven.plugins</groupId>
372-
<artifactId>maven-javadoc-plugin</artifactId>
373-
<version>3.11.2</version>
374-
<configuration>
375-
<failOnWarnings>false</failOnWarnings>
376-
<doclint>all,-missing</doclint>
377-
</configuration>
378-
<executions>
379-
<execution>
380-
<id>attach-javadocs</id>
381-
<goals>
382-
<goal>jar</goal>
383-
</goals>
384-
</execution>
385-
</executions>
386-
</plugin>
387386
<plugin>
388387
<groupId>org.apache.maven.plugins</groupId>
389388
<artifactId>maven-source-plugin</artifactId>

src/main/java/us/zoom/data/dfence/providers/snowflake/grant/builder/SnowflakeObjectType.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
/**
99
* Snowflake object types that can be granted on (databases, schemas, tables, agents, etc.).
1010
* <p>
11-
* Each type has a qualification level ({@link #getQualLevel()}) indicating how many name parts
11+
* Each type has a qualification level ({@link #qualLevel}) indicating how many name parts
1212
* it has: 0 = account-level, 1 = one part (e.g. database name), 2 = two parts (e.g. db.schema),
13-
* 3 = three parts (e.g. db.schema.object). The {@link #getObjectType()} and {@link
14-
* #getObjectTypePlural()} strings are used in SQL (e.g. "SHOW AGENTS IN DATABASE"). Use {@link
15-
* #name()} when building grant names so desired state matches what Snowflake
16-
* returns for the object type in SHOW GRANTS statements. {@link #name()} is also used for matching the object name as
17-
* it appears in future grant object names such as MY_DB.MY_SCHEMA.&ltTABLE&gt..
13+
* 3 = three parts (e.g. db.schema.object). The {@link #objectType} and {@link #objectTypePlural}
14+
* strings are used in SQL (e.g. "SHOW AGENTS IN DATABASE"). Use {@link #name()} when building
15+
* grant names so desired state matches what Snowflake returns for the object type in SHOW GRANTS
16+
* statements. {@link #name()} is also used for matching the object name as it appears in future
17+
* grant object names such as {@code MY_DB.MY_SCHEMA.<TABLE>}.
1818
* <p>
19-
* {@link #getAliasFor()} is used only when building hash keys for grants (e.g. in {@code
19+
* {@link #aliasFor} is used only when building hash keys for grants (e.g. in {@code
2020
* SnowflakeGrantBuilder.getKey()} and the revoke index). It is not user-facing and does not
2121
* allow the user to specify a different name in the playbook. It exists to align on differences
2222
* that come from Snowflake: the same logical object type may appear under different names in
@@ -159,8 +159,8 @@ public static SnowflakeObjectType fromString(String objectType) {
159159
/**
160160
* Map of playbook (or Snowflake) input names to enum names. Used by {@link #fromString(String)}
161161
* so that e.g. "AGENT" in a playbook resolves to {@link #CORTEX_AGENT}. This is what allows
162-
* the user to specify a different name in the playbook; it is separate from {@link
163-
* #getAliasFor()}, which is only for hash keys.
162+
* the user to specify a different name in the playbook; it is separate from {@link #aliasFor},
163+
* which is only for hash keys.
164164
*/
165165
public static Map<String, String> overrideObjectTypes = Map.of(
166166
"AGENT", "CORTEX_AGENT"

0 commit comments

Comments
 (0)