Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.x] 1050: Reduce build warnings. #1060

Merged
merged 1 commit into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions formatter/formatting.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ allprojects {
target '**/*.java'

removeUnusedImports()
importOrder(
'de.thetaphi',
importOrder('de.thetaphi',
'com.carrotsearch',
'com.fasterxml',
'com.avast',
Expand All @@ -19,11 +18,10 @@ allprojects {
'javax',
'java',
'',
'\\#java|\\#org.opensearch|\\#org.hamcrest|\\#'
)
'\\#java|\\#org.opensearch|\\#org.hamcrest|\\#')
eclipse().configFile rootProject.file('formatter/formatterConfig.xml')
trimTrailingWhitespace()
endWithNewline();
endWithNewline()

// See DEVELOPER_GUIDE.md for details of when to enable this.
if (System.getProperty('spotless.paddedcell') != null) {
Expand All @@ -35,10 +33,10 @@ allprojects {

trimTrailingWhitespace()
endWithNewline()
indentWithSpaces()
leadingTabsToSpaces()
}
format("license", {
licenseHeaderFile("${rootProject.file("formatter/license-header.txt")}", "package ");
licenseHeaderFile("${rootProject.file("formatter/license-header.txt")}", "package ")
target("src/*/java/**/*.java")
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ public class ApiSpecFetcher {
PARSE_OPTIONS.setResolveFully(true);
}

private ApiSpecFetcher() {}

/**
* Parses the OpenAPI specification directly from the URI.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public class EncryptorUtils {
private static final String WRAPPING_ALGORITHM = "AES/GCM/NOPADDING";

// concurrent map can't have null as a key. This key is to support single tenancy
public static final String DEFAULT_TENANT_ID = "";
private static final String DEFAULT_TENANT_ID = "";

private final ClusterService clusterService;
private final Client client;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
*/
public class TenantAwareHelper {

private TenantAwareHelper() {}

/**
* Validates the tenant ID based on the multi-tenancy feature setting.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ public class WorkflowTimeoutUtility {

private static final Logger logger = LogManager.getLogger(WorkflowTimeoutUtility.class);

private WorkflowTimeoutUtility() {}

/**
* Schedules a timeout task for a workflow execution.
*
Expand Down
Loading