Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
core
Merge requests
!1651
fix validator in java 17
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix validator in java 17
bugfix/ci-issues
into
master
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Piotr Gawron
requested to merge
bugfix/ci-issues
into
master
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
0
0
Merge request reports
Viewing commit
794506ba
Show latest version
2 files
+
12
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
794506ba
fix validator in java 17
· 794506ba
Piotr Gawron
authored
1 year ago
persist/src/main/java/lcsb/mapviewer/persist/ObjectValidator.java
+
4
−
2
Options
@@ -205,12 +205,14 @@ public class ObjectValidator {
@Override
public
void
doWith
(
final
Field
arg0
)
{
try
{
// skip static
if
(
java
.
lang
.
reflect
.
Modifier
.
isStatic
(
arg0
.
getModifiers
()))
{
return
;
}
arg0
.
setAccessible
(
true
);
Object
property
=
arg0
.
get
(
object
);
if
(
isIgnoredClass
(
arg0
.
getType
()))
{
// skip
}
else
if
(
java
.
lang
.
reflect
.
Modifier
.
isStatic
(
arg0
.
getModifiers
()))
{
// skip static
}
else
if
(
property
==
null
||
property
instanceof
String
||
property
instanceof
Double
Loading