From d1b8a392f4f1ce0ba6d68d8627afbe83b15eaeb5 Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Mon, 22 Jul 2024 20:55:52 +0200 Subject: [PATCH] spotless Signed-off-by: Stephan Richter --- .../src/main/java/de/srsoftware/oidc/backend/Backend.java | 2 +- .../java/de/srsoftware/oidc/datastore/file/FileStore.java | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/de.srsoftware.oidc.backend/src/main/java/de/srsoftware/oidc/backend/Backend.java b/de.srsoftware.oidc.backend/src/main/java/de/srsoftware/oidc/backend/Backend.java index 8780d10..b9f485d 100644 --- a/de.srsoftware.oidc.backend/src/main/java/de/srsoftware/oidc/backend/Backend.java +++ b/de.srsoftware.oidc.backend/src/main/java/de/srsoftware/oidc/backend/Backend.java @@ -59,7 +59,7 @@ public class Backend extends PathHandler { var json = json(ex); var id = json.getString(CLIENT_ID); clients.getClient(id).ifPresent(clients::remove); - return sendEmptyResponse(HTTP_OK,ex); + return sendEmptyResponse(HTTP_OK, ex); } private boolean doLogin(HttpExchange ex) throws IOException { diff --git a/de.srsoftware.oidc.datastore.file/src/main/java/de/srsoftware/oidc/datastore/file/FileStore.java b/de.srsoftware.oidc.datastore.file/src/main/java/de/srsoftware/oidc/datastore/file/FileStore.java index c0b2cd0..7016639 100644 --- a/de.srsoftware.oidc.datastore.file/src/main/java/de/srsoftware/oidc/datastore/file/FileStore.java +++ b/de.srsoftware.oidc.datastore.file/src/main/java/de/srsoftware/oidc/datastore/file/FileStore.java @@ -207,7 +207,7 @@ public class FileStore implements ClientService, SessionService, UserService { @Override public Optional getClient(String clientId) { var clients = json.getJSONObject(CLIENTS); - if (clients.has(clientId)) return Optional.of(toClient(clientId,clients.getJSONObject(clientId))); + if (clients.has(clientId)) return Optional.of(toClient(clientId, clients.getJSONObject(clientId))); return Optional.empty(); } @@ -217,14 +217,13 @@ public class FileStore implements ClientService, SessionService, UserService { if (o instanceof String s) redirectUris.add(s); } return new Client(clientId, clientData.getString(NAME), clientData.getString(SECRET), redirectUris); - } @Override public List listClients() { var clients = json.getJSONObject(CLIENTS); var list = new ArrayList(); - for (var clientId : clients.keySet()) list.add(toClient(clientId,clients.getJSONObject(clientId))); + for (var clientId : clients.keySet()) list.add(toClient(clientId, clients.getJSONObject(clientId))); return list; }