Fix StaticVariableNameCheck (#18993)

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
This commit is contained in:
lsiepel
2025-07-21 23:58:29 +02:00
committed by GitHub
parent 7e3b22cd78
commit 6592ccaa18
6 changed files with 9 additions and 9 deletions
@@ -34,7 +34,7 @@ public class BambuLabBindingConstants {
public static final String BINDING_ID = "bambulab";
// misc consts
public static String NO_CAMERA_CERT = "none";
public static final String NO_CAMERA_CERT = "none";
// List of all Thing Type UIDs
public static final ThingTypeUID PRINTER_THING_TYPE = new ThingTypeUID(BINDING_ID, "printer");
@@ -47,7 +47,7 @@ public class DemandControl {
.map(day -> Map.entry(day, day.substring(0, 2)))
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
private static Gson GSON = new Gson();
private static final Gson GSON = new Gson();
public String ret = "";
@@ -35,8 +35,8 @@ public abstract class AWS4SignerBase extends SignerBase {
public static final String TERMINATOR = "aws4_request";
public static final String ISO8601_BASIC_FORMAT = "yyyyMMdd'T'HHmmss'Z'";
public static final String DATESTRING_FORMAT = "yyyyMMdd";
protected static String PAIR_SEPARATOR = "&";
protected static String VALEU_SEPARATOR = "=";
protected static final String PAIR_SEPARATOR = "&";
protected static final String VALEU_SEPARATOR = "=";
protected URL endpointUrl;
protected String httpMethod;
protected String serviceName;
@@ -27,9 +27,9 @@ import org.openhab.binding.folderwatcher.internal.api.util.HttpUtils;
*/
@NonNullByDefault
public abstract class AzureSignerBase extends SignerBase {
protected static String PAIR_SEPARATOR = "\n";
protected static String VALEU_SEPARATOR = ":";
protected static String HEADER_FILTER = "x-ms-";
protected static final String PAIR_SEPARATOR = "\n";
protected static final String VALEU_SEPARATOR = ":";
protected static final String HEADER_FILTER = "x-ms-";
protected URL endpointUrl;
protected String httpMethod;
protected String serviceName;
@@ -237,7 +237,7 @@ public class NetatmoConstants {
SECURITY(WELCOME_SCOPES, PRESENCE_SCOPES, SMOKE_SCOPES, DOORBELL_SCOPES, CARBON_MONOXIDE_SCOPES),
NONE();
public static String ALL_SCOPES = EnumSet.allOf(FeatureArea.class).stream().map(fa -> fa.scopes)
public static final String ALL_SCOPES = EnumSet.allOf(FeatureArea.class).stream().map(fa -> fa.scopes)
.flatMap(Set::stream).map(s -> s.name().toLowerCase()).collect(Collectors.joining(" "));
public final Set<Scope> scopes;
@@ -42,7 +42,7 @@ import org.openhab.core.types.Command;
public class NibeHeatPumpHandlerCommand2NibeTest {
private NibeHeatPumpHandler product; // the class under test
private Method m;
private static String METHOD_NAME = "convertCommandToNibeValue";
private static final String METHOD_NAME = "convertCommandToNibeValue";
private Class<?>[] parameterTypes;
private Object[] parameters;