From 032556774bdc312a1c4e63dc4fd6f90e4b4ea87f Mon Sep 17 00:00:00 2001 From: Ainur <59531286+yagudin10@users.noreply.github.com> Date: Tue, 19 Sep 2023 11:40:03 +0200 Subject: [PATCH] CB-3945 code style fix --- .../service/security/CBEmbeddedSecurityController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/bundles/io.cloudbeaver.service.security/src/io/cloudbeaver/service/security/CBEmbeddedSecurityController.java b/server/bundles/io.cloudbeaver.service.security/src/io/cloudbeaver/service/security/CBEmbeddedSecurityController.java index 8c70b8e9a88..c02eafa0220 100644 --- a/server/bundles/io.cloudbeaver.service.security/src/io/cloudbeaver/service/security/CBEmbeddedSecurityController.java +++ b/server/bundles/io.cloudbeaver.service.security/src/io/cloudbeaver/service/security/CBEmbeddedSecurityController.java @@ -653,7 +653,7 @@ public void setUserCredentials( } String encodedValue = CommonUtils.toString(cred.getValue()); encodedValue = property.getEncryption().encrypt(userId, encodedValue); - return new String[]{propertyName, encodedValue}; + return new String[]{propertyName, encodedValue }).collect(Collectors.toList()); } catch (Exception e) { throw new DBCException(e.getMessage(), e); @@ -2628,7 +2628,7 @@ public Set getFilteredSubjects(Set allSubjects) { result.add(dbResult.getString(1)); } } - }; + } return result; } catch (SQLException e) { log.error("Error getting all subject ids from database", e); @@ -2647,7 +2647,7 @@ private SMSubjectType getSubjectType(@NotNull String subjectId) { return SMSubjectType.fromCode(dbResult.getString(1)); } } - }; + return null; } catch (SQLException e) { log.error("Error getting all subject ids from database", e);