Skip to content

Commit 05d4623

Browse files
fix "error: ... is not public in TokenInfo; cannot be accessed… (#59)
* fix "error: ... is not public in TokenInfo; cannot be accessed from outside package" * Update build.yml * Update build.yml --------- Co-authored-by: lukasmatusiewicz <77617779+lukasmatusiewicz@users.noreply.github.com>
1 parent 7785dd5 commit 05d4623

2 files changed

Lines changed: 34 additions & 34 deletions

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ jobs:
5757
git push
5858
fi
5959
60-
- name: Comment on PR with coverage percentages
61-
if: ${{ github.event_name == 'pull_request' }}
62-
run: |
63-
REPORT=$(<.github/badges/coverage-summary.json)
64-
COVERAGE=$(jq -r '.coverage' <<< "$REPORT")%
65-
BRANCHES=$(jq -r '.branches' <<< "$REPORT")%
66-
NEWLINE=$'\n'
67-
BODY="## JaCoCo Test Coverage Summary Statistics${NEWLINE}* __Coverage:__ ${COVERAGE}${NEWLINE}* __Branches:__ ${BRANCHES}"
68-
gh pr comment ${{github.event.pull_request.number}} -b "${BODY}"
69-
env:
70-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
# - name: Comment on PR with coverage percentages
61+
# if: ${{ github.event_name == 'pull_request' }}
62+
# run: |
63+
# REPORT=$(<.github/badges/coverage-summary.json)
64+
# COVERAGE=$(jq -r '.coverage' <<< "$REPORT")%
65+
# BRANCHES=$(jq -r '.branches' <<< "$REPORT")%
66+
# NEWLINE=$'\n'
67+
# BODY="## JaCoCo Test Coverage Summary Statistics${NEWLINE}* __Coverage:__ ${COVERAGE}${NEWLINE}* __Branches:__ ${BRANCHES}"
68+
# gh pr comment ${{github.event.pull_request.number}} -b "${BODY}"
69+
# env:
70+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

src/main/java/org/privacyidea/TokenInfo.java

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -26,27 +26,27 @@
2626
*/
2727
public class TokenInfo
2828
{
29-
boolean active = false;
30-
int count = 0;
31-
int countWindow = 0;
32-
String description = "";
33-
int failCount = 0;
34-
int id = 0;
35-
final Map<String, String> info = new HashMap<>();
36-
boolean locked = false;
37-
int maxFail = 0;
38-
int otpLen = 0;
39-
final List<String> realms = new ArrayList<>();
40-
String resolver = "";
41-
boolean revoked = false;
42-
String rolloutState = "";
43-
String serial = "";
44-
String image = "";
45-
int syncWindow = 0;
46-
String tokenType = "";
47-
boolean userEditable = false;
48-
String userID = "";
49-
String userRealm = "";
50-
String username = "";
51-
String rawJson = "";
29+
public boolean active = false;
30+
public int count = 0;
31+
public int countWindow = 0;
32+
public String description = "";
33+
public int failCount = 0;
34+
public int id = 0;
35+
public final Map<String, String> info = new HashMap<>();
36+
public boolean locked = false;
37+
public int maxFail = 0;
38+
public int otpLen = 0;
39+
public final List<String> realms = new ArrayList<>();
40+
public String resolver = "";
41+
public boolean revoked = false;
42+
public String rolloutState = "";
43+
public String serial = "";
44+
public String image = "";
45+
public int syncWindow = 0;
46+
public String tokenType = "";
47+
public boolean userEditable = false;
48+
public String userID = "";
49+
public String userRealm = "";
50+
public String username = "";
51+
public String rawJson = "";
5252
}

0 commit comments

Comments
 (0)