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 #404: Utility classes should not have public constructors #405

Merged
merged 1 commit into from
Sep 29, 2022
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
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
*
* @author Roman Strobl, roman.strobl@wultra.com
*/
public class DateUtil {
public final class DateUtil {

private DateUtil() {
throw new IllegalStateException("Utility class");
}

/**
* Convert expiration time interval to minimal created date used for expiration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,15 @@
import io.getlime.security.powerauth.rest.api.spring.authentication.PowerAuthApiAuthentication;

/**
* PowerAuth utilities
* PowerAuth utilities.
*
* @author Lukas Lukovsky, lukas.lukovsky@wultra.com
*/
public class PowerAuthUtil {
public final class PowerAuthUtil {

private PowerAuthUtil() {
throw new IllegalStateException("Utility class");
}

/**
* Provides context data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@
import java.util.Map;

/**
* State context util
* State context util.
*
* @author Lukas Lukovsky, lukas.lukovsky@wultra.com
*/
public class StateContextUtil {
public final class StateContextUtil {

private StateContextUtil() {
throw new IllegalStateException("Utility class");
}

public static void setResponseOk(final StateContext<OnboardingState, OnboardingEvent> context, final Response response) {
Preconditions.checkArgument(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,15 @@
import java.io.InputStream;

/**
* Test utilities
* Test utilities.
*
* @author Lukas Lukovsky, lukas.lukovsky@wultra.com
*/
public class TestUtil {
public final class TestUtil {

private TestUtil() {
throw new IllegalStateException("Utility class");
}

/**
* Loads photo from a file
Expand Down