Skip to content

Commit

Permalink
remove @serial annotation as it's only supported starting with Java 14
Browse files Browse the repository at this point in the history
  • Loading branch information
liga-oz committed Jul 21, 2023
1 parent c2bafc9 commit 24e219f
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import org.slf4j.LoggerFactory;

import javax.annotation.Nullable;
import java.io.Serial;
import java.time.DateTimeException;
import java.time.Instant;
import java.util.*;
Expand All @@ -24,7 +23,6 @@
*/
public class DefaultJsonObject implements JsonObject {

@Serial
private static final long serialVersionUID = 2204172045251807L;

private static final Logger LOGGER = LoggerFactory.getLogger(DefaultJsonObject.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import com.sap.cloud.security.xsuaa.Assertions;

import java.io.Serial;
import java.util.Collection;
import java.util.LinkedHashSet;
import java.util.Set;
Expand All @@ -20,7 +19,6 @@
*/
public class XsuaaScopeConverter implements ScopeConverter {

@Serial
private static final long serialVersionUID = 2204172290850251807L;

private final Pattern globalScopePattern;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.io.Serial;
import java.security.Principal;
import java.util.LinkedHashSet;
import java.util.Optional;
Expand All @@ -28,7 +27,6 @@
*/
public class XsuaaToken extends AbstractToken implements AccessToken {

@Serial
private static final long serialVersionUID = 3304172041930251807L;
static final String UNIQUE_USER_NAME_FORMAT = "user/%s/%s"; // user/<origin>/<logonName>
static final String UNIQUE_CLIENT_NAME_FORMAT = "client/%s"; // client/<clientid>
Expand Down
4 changes: 2 additions & 2 deletions samples/deploy_and_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,8 +785,8 @@ def __panic_user_not_found(self, username):
def __get_access_token(self):
token = self.http_util.get_token(
xsuaa_service_url=self.xsuaa_service_url,
clientid=self.data.get('credentials').get('clientid'),
clientsecret=self.data.get('credentials').get('clientsecret'),
clientid=self.data.get('clientid'),
clientsecret=self.data.get('clientsecret'),
grant_type='client_credentials')
return token.get('access_token')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.Serial;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
import java.util.regex.Pattern;
Expand Down Expand Up @@ -60,7 +59,6 @@ private String base64Decode(String encoded) {

static class DecodedJwtImpl implements DecodedJwt {

@Serial
private static final long serialVersionUID = 1454353454555430987L;

private final String header;
Expand Down

0 comments on commit 24e219f

Please sign in to comment.