cleanup-and-merge-tests: fix warnings, set gradlew permissions, enable unchecked warnings in maven

This commit is contained in:
Sean Leary
2023-12-30 16:30:19 -06:00
parent d7819a4fa2
commit 5ddb8c3d35
8 changed files with 17 additions and 6 deletions

View File

@@ -75,6 +75,7 @@ public class ParserConfiguration {
*
* @return The existing configuration will not be modified. A new configuration is returned.
*/
@SuppressWarnings("unchecked")
public <T extends ParserConfiguration> T withKeepStrings(final boolean newVal) {
T newConfig = (T)this.clone();
newConfig.keepStrings = newVal;
@@ -101,6 +102,7 @@ public class ParserConfiguration {
*
* @return The existing configuration will not be modified. A new configuration is returned.
*/
@SuppressWarnings("unchecked")
public <T extends ParserConfiguration> T withMaxNestingDepth(int maxNestingDepth) {
T newConfig = (T)this.clone();