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

Fix compatibility on jdk > 21 #68

Merged
merged 3 commits into from
May 14, 2024
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
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.release>17</maven.compiler.release>

<fabric8.version>6.12.0</fabric8.version>
<log4j.version>2.17.2</log4j.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ public static ExecResult exec(String input, List<String> command, int timeout, b
}

/**
* Method executes external command
*
* @param input input
* @param command command
* @param timeout timeout for command
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ public class ExecBuilder {
private boolean logToOutput;
private boolean throwErrors;

/**
* Constructor
*/
public ExecBuilder() { }

/**
* Sets the command to execute.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
*/
public class ResourceManagerCleanerExtension implements AfterAllCallback, AfterEachCallback {

private ResourceManagerCleanerExtension() {
// Private constructor to prevent instantiation
}

/**
* Enables ResourceManagerCleanerExtension for after All callback
* @param extensionContext context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
public class ResourceManagerExtension
implements BeforeAllCallback, BeforeEachCallback, AfterAllCallback, AfterEachCallback {

private ResourceManagerExtension() {
// Private constructor to prevent instantiation
}

@Override
public void beforeAll(ExtensionContext extensionContext) {
KubeResourceManager.getInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
*/
public class TestVisualSeparatorExtension implements BeforeEachCallback, AfterEachCallback {
private final Logger logger = LogManager.getLogger(TestVisualSeparatorExtension.class);

private TestVisualSeparatorExtension() {
// Private constructor to prevent instantiation
}

@Override
public void beforeEach(ExtensionContext extensionContext) {
LoggerUtils.logSeparator();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ public class KubeResourceManager {
private List<Consumer<HasMetadata>> createCallbacks = new LinkedList<>();
private List<Consumer<HasMetadata>> deleteCallbacks = new LinkedList<>();

private KubeResourceManager() {
// Private constructor to prevent instantiation
}

/**
* Retrieves the singleton instance of KubeResourceManager.
* @return The singleton instance of KubeResourceManager.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
public class Wait {
private static final Logger LOGGER = LogManager.getLogger(Wait.class);

private Wait() {
// Private constructor to prevent instantiation
}

/**
* For every poll (happening once each {@code pollIntervalMs}) checks if supplier {@code ready} is true.
* If yes, the wait is closed. Otherwise, waits another {@code pollIntervalMs} and tries again.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
* Abstract class containing methods that can be implemented in particular setup classes based on the installation type.
*/
public abstract class InstallationMethod {

private InstallationMethod() {
// Private constructor to prevent instantiation
}

/**
* Deploy deployment/operator abstract method
*/
Expand Down
Loading