Skip to content

Commit 018750d

Browse files
github-actions[bot]siddharthabingiSiddhartha Bingimend-for-github-com[bot]000FLMS
committed
1050: Reduce build warnings. (#1051)
* Fixing unit tests related to mlclient getTask and adding integration test for workflow provisioning under multitenancy (#1045) * Fixing unit tests related to mlclient getTask Signed-off-by: Siddhartha Bingi <[email protected]> * Adding integration tests for workflow provisioning under multitenancy Signed-off-by: Siddhartha Bingi <[email protected]> * Addressing comments Signed-off-by: Siddhartha Bingi <[email protected]> --------- Signed-off-by: Siddhartha Bingi <[email protected]> Co-authored-by: Siddhartha Bingi <[email protected]> Signed-off-by: Vikas Adyar <[email protected]> * chore(deps): update aws-actions/configure-aws-credentials action to v4.0.3 (#1029) Signed-off-by: mend-for-github-com[bot] <mend-for-github-com[bot]@users.noreply.github.com> Co-authored-by: mend-for-github-com[bot] <50673670+mend-for-github-com[bot]@users.noreply.github.com> Signed-off-by: Vikas Adyar <[email protected]> * fix(deps): update dependency com.google.code.gson:gson to v2.12.1 (#1035) Signed-off-by: mend-for-github-com[bot] <mend-for-github-com[bot]@users.noreply.github.com> Co-authored-by: mend-for-github-com[bot] <50673670+mend-for-github-com[bot]@users.noreply.github.com> Signed-off-by: Vikas Adyar <[email protected]> * 1050: * Changed the indentation from spaces to tab. * Included private no-args constructors. * refactoring. Signed-off-by: Vikas Adyar <[email protected]> * fix(deps): update dependency software.amazon.cryptography:aws-cryptographic-material-providers to v1.9.0 (#1047) Signed-off-by: mend-for-github-com[bot] <mend-for-github-com[bot]@users.noreply.github.com> Co-authored-by: mend-for-github-com[bot] <50673670+mend-for-github-com[bot]@users.noreply.github.com> Signed-off-by: Vikas Adyar <[email protected]> * chore(deps): update plugin org.gradle.test-retry to v1.6.2 (#1052) Signed-off-by: mend-for-github-com[bot] <mend-for-github-com[bot]@users.noreply.github.com> Co-authored-by: mend-for-github-com[bot] <50673670+mend-for-github-com[bot]@users.noreply.github.com> Signed-off-by: Vikas Adyar <[email protected]> * fix(deps): update dependency org.dafny:dafnyruntime to v4.10.0 (#1053) Signed-off-by: mend-for-github-com[bot] <mend-for-github-com[bot]@users.noreply.github.com> Co-authored-by: mend-for-github-com[bot] <50673670+mend-for-github-com[bot]@users.noreply.github.com> Signed-off-by: Vikas Adyar <[email protected]> * Update template for alert summary with new log pattern tools (#1021) * Update template for alert summary with log pattern Signed-off-by: Sihan He <[email protected]> * Update ChangeLog Signed-off-by: Sihan He <[email protected]> --------- Signed-off-by: Sihan He <[email protected]> Signed-off-by: Vikas Adyar <[email protected]> * JDK 11 compatible changes. Signed-off-by: Vikas Adyar <[email protected]> --------- Signed-off-by: Siddhartha Bingi <[email protected]> Signed-off-by: Vikas Adyar <[email protected]> Signed-off-by: mend-for-github-com[bot] <mend-for-github-com[bot]@users.noreply.github.com> Signed-off-by: Sihan He <[email protected]> Co-authored-by: Siddhartha Bingi <[email protected]> Co-authored-by: Siddhartha Bingi <[email protected]> Co-authored-by: mend-for-github-com[bot] <50673670+mend-for-github-com[bot]@users.noreply.github.com> Co-authored-by: 000FLMS <[email protected]> (cherry picked from commit 2acbb56) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 606172d commit 018750d

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

formatter/formatting.gradle

+5-7
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ allprojects {
66
target '**/*.java'
77

88
removeUnusedImports()
9-
importOrder(
10-
'de.thetaphi',
9+
importOrder('de.thetaphi',
1110
'com.carrotsearch',
1211
'com.fasterxml',
1312
'com.avast',
@@ -19,11 +18,10 @@ allprojects {
1918
'javax',
2019
'java',
2120
'',
22-
'\\#java|\\#org.opensearch|\\#org.hamcrest|\\#'
23-
)
21+
'\\#java|\\#org.opensearch|\\#org.hamcrest|\\#')
2422
eclipse().configFile rootProject.file('formatter/formatterConfig.xml')
2523
trimTrailingWhitespace()
26-
endWithNewline();
24+
endWithNewline()
2725

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

3634
trimTrailingWhitespace()
3735
endWithNewline()
38-
indentWithSpaces()
36+
leadingTabsToSpaces()
3937
}
4038
format("license", {
41-
licenseHeaderFile("${rootProject.file("formatter/license-header.txt")}", "package ");
39+
licenseHeaderFile("${rootProject.file("formatter/license-header.txt")}", "package ")
4240
target("src/*/java/**/*.java")
4341
})
4442
}

src/main/java/org/opensearch/flowframework/util/ApiSpecFetcher.java

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public class ApiSpecFetcher {
4040
PARSE_OPTIONS.setResolveFully(true);
4141
}
4242

43+
private ApiSpecFetcher() {}
44+
4345
/**
4446
* Parses the OpenAPI specification directly from the URI.
4547
*

src/main/java/org/opensearch/flowframework/util/EncryptorUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public class EncryptorUtils {
7676
private static final String WRAPPING_ALGORITHM = "AES/GCM/NOPADDING";
7777

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

8181
private final ClusterService clusterService;
8282
private final Client client;

src/main/java/org/opensearch/flowframework/util/TenantAwareHelper.java

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
*/
2424
public class TenantAwareHelper {
2525

26+
private TenantAwareHelper() {}
27+
2628
/**
2729
* Validates the tenant ID based on the multi-tenancy feature setting.
2830
*

src/main/java/org/opensearch/flowframework/util/WorkflowTimeoutUtility.java

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ public class WorkflowTimeoutUtility {
3434

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

37+
private WorkflowTimeoutUtility() {}
38+
3739
/**
3840
* Schedules a timeout task for a workflow execution.
3941
*

0 commit comments

Comments
 (0)