Skip to content

Commit

Permalink
Update method name and fix catch clause
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaminduR committed Oct 11, 2023
1 parent 5c53803 commit aeb3a7c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public APIResource addAPIResource(APIResource apiResource, Integer tenantId) thr
prepStmt.setString(4, apiResource.getIdentifier());
prepStmt.setString(5, apiResource.getDescription());
prepStmt.setInt(6, tenantId);
prepStmt.setBoolean(7, apiResource.isRequiresAuthorization());
prepStmt.setBoolean(7, apiResource.isAuthorizationRequired());
prepStmt.executeUpdate();
prepStmt.clearParameters();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected void activate(ComponentContext context) {
BundleContext bundleCtx = context.getBundleContext();
bundleCtx.registerService(APIResourceManager.class, APIResourceManagerImpl.getInstance(), null);
LOG.debug("API resource management bundle is activated");
} catch (Throwable e) {
} catch (Exception e) {
LOG.error("Error while initializing API resource management component.", e);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public void testUpdateAPIResource(APIResource apiResource, String updatedName, S
.scopes(createdAPIResource.getScopes())
.type(createdAPIResource.getType())
.identifier(createdAPIResource.getIdentifier())
.requiresAuthorization(createdAPIResource.isRequiresAuthorization());
.requiresAuthorization(createdAPIResource.isAuthorizationRequired());

if (updatedName != null) {
apiResourceBuilder.name(updatedName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public Integer getTenantId() {
return tenantId;
}

public boolean isRequiresAuthorization() {
public boolean isAuthorizationRequired() {

return requiresAuthorization;
}
Expand Down

0 comments on commit aeb3a7c

Please sign in to comment.