Skip to content

Commit

Permalink
Removes warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Schnicke <[email protected]>
  • Loading branch information
FrankSchnicke committed Oct 4, 2023
1 parent f3a3103 commit 6127bb5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;

import org.eclipse.basyx.aas.metamodel.map.AssetAdministrationShell;
import org.eclipse.basyx.aas.metamodel.map.descriptor.AASDescriptor;
import org.eclipse.basyx.aas.metamodel.map.descriptor.SubmodelDescriptor;
Expand All @@ -40,7 +41,6 @@
import org.eclipse.basyx.extensions.shared.authorization.internal.ISubjectInformationProvider;
import org.eclipse.basyx.extensions.shared.authorization.internal.InhibitException;
import org.eclipse.basyx.extensions.shared.authorization.internal.NotAuthorizedException;
import org.eclipse.basyx.submodel.metamodel.api.ISubmodel;
import org.eclipse.basyx.submodel.metamodel.api.identifier.IIdentifier;
import org.eclipse.basyx.submodel.metamodel.api.reference.IReference;
import org.eclipse.basyx.vab.exception.provider.ProviderException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import java.util.Map;
import java.util.Optional;
import java.util.stream.Collectors;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.core.context.SecurityContextHolder;
Expand Down Expand Up @@ -97,6 +98,7 @@ private List<String> getResoureAccessRoles(JwtAuthenticationToken token) {
return resourceAccess.values().stream().map(this::getCategoryRoles).flatMap(List::stream).collect(Collectors.toList());
}

@SuppressWarnings("unchecked")
private List<String> getCategoryRoles(Object categoryObject) {
final Map<?, ?> category = (Map<?, ?>) categoryObject;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ private InputStream getInputStreamFromFile(final String filePath) throws IOExcep
throw new IOException("could not find " + filePath);
}

@SuppressWarnings("unused")
private static class RbacRuleMultiple {
String role;
String[] actions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@
******************************************************************************/
package org.eclipse.basyx.vab.protocol.http.server;

import org.apache.catalina.Context;
import org.springframework.lang.Nullable;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;

import javax.servlet.http.HttpServlet;

import org.springframework.lang.Nullable;

/**
* BaSyx context that contains an Industrie 4.0 Servlet infrastructure
*
Expand Down

0 comments on commit 6127bb5

Please sign in to comment.