Fix SAT warnings (#14214)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
@@ -74,7 +74,7 @@ public class NetworkUtils {
|
||||
/**
|
||||
* Adds cors headers to the given response and returns it.
|
||||
*/
|
||||
public static ResponseBuilder ResponseWithCors(ResponseBuilder response) {
|
||||
public static ResponseBuilder responseWithCors(ResponseBuilder response) {
|
||||
return response.encoding(StandardCharsets.UTF_8.name()) //
|
||||
.header("Access-Control-Allow-Origin", "*")
|
||||
.header("Access-Control-Allow-Headers", "origin, content-type, accept, authorization")
|
||||
|
||||
@@ -95,7 +95,7 @@ public class CommonSetup {
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public <T> Storage<T> getStorage(String name) {
|
||||
if (name.equals("hueEmulationUsers")) {
|
||||
if ("hueEmulationUsers".equals(name)) {
|
||||
return (Storage<T>) new DummyUsersStorage();
|
||||
}
|
||||
throw new IllegalStateException();
|
||||
|
||||
@@ -122,7 +122,7 @@ public class UsersAndConfigTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void UnauthorizedAccessTest() {
|
||||
public void unauthorizedAccessTest() {
|
||||
// Unauthorized config
|
||||
Response response;
|
||||
response = commonSetup.client.target(commonSetup.basePath + "/config").request().get();
|
||||
|
||||
Reference in New Issue
Block a user