Skip to content

Commit

Permalink
dbeaver-vscode#3 cleanup servlets
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-skoblikov committed Sep 3, 2024
1 parent dc2866c commit 2141d08
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ public static WebSQLContextInfo getSQLContext(WebSQLProcessor processor, String

@Override
public void addServlets(WebApplication application, DBWServletContext servletContext) throws DBException {
if (!application.isMultiuser()) {
return;
}
servletContext.addServlet(
"sqlResultValueViewer",
new WebSQLResultServlet(application, getServiceImpl()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ public void bindWiring(DBWBindingContext model) throws DBWebException {

@Override
public void addServlets(CBApplication application, DBWServletContext servletContext) throws DBException {
if(!application.isMultiuser()) {

Check warning on line 205 in server/bundles/io.cloudbeaver.service.admin/src/io/cloudbeaver/service/admin/WebServiceBindingAdmin.java

View check run for this annotation

Jenkins-CI-integration / CheckStyle Java Report

server/bundles/io.cloudbeaver.service.admin/src/io/cloudbeaver/service/admin/WebServiceBindingAdmin.java#L205

if is not followed by whitespace.

Check warning on line 205 in server/bundles/io.cloudbeaver.service.admin/src/io/cloudbeaver/service/admin/WebServiceBindingAdmin.java

View check run for this annotation

Jenkins-CI-integration / CheckStyle Java Report

server/bundles/io.cloudbeaver.service.admin/src/io/cloudbeaver/service/admin/WebServiceBindingAdmin.java#L205

WhitespaceAround: if is not followed by whitespace. Empty blocks may only be represented as [] when not part of a multi-block statement (4.1.3)
return;
}
servletContext.addServlet("adminLogs", new WebAdminLogsServlet(application), application.getServicesURI() + "logs/*");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ public void bindWiring(DBWBindingContext model) {

@Override
public void addServlets(CBApplication application, DBWServletContext servletContext) throws DBException {
if (!application.isMultiuser()) {
return;
}
servletContext.addServlet(
"dataTransfer",
new WebDataTransferServlet(application, getServiceImpl()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ public void bindWiring(DBWBindingContext model) throws DBWebException {

@Override
public void addServlets(CBApplication application, DBWServletContext servletContext) throws DBException {
if (!application.isMultiuser()) {
return;
}
servletContext.addServlet(
"fileSystems",
new WebFSServlet(application, getServiceImpl()),
Expand Down

0 comments on commit 2141d08

Please sign in to comment.