-
Notifications
You must be signed in to change notification settings - Fork 7
Improving validation utils #770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/main/java/edu/ie3/datamodel/utils/validation/ValidationUtils.java
Outdated
Show resolved
Hide resolved
…ad-of-returning-Optionals' into ms/#758-improving-ValidationUtils
src/main/java/edu/ie3/datamodel/utils/validation/ValidationUtils.java
Outdated
Show resolved
Hide resolved
…ad-of-returning-Optionals' into ms/#758-improving-ValidationUtils
src/main/java/edu/ie3/datamodel/utils/validation/ConnectorValidationUtils.java
Outdated
Show resolved
Hide resolved
🛠 Lift Auto-fixSome of the Lift findings in this PR can be automatically fixed. You can download and apply these changes in your local project directory of your branch to review the suggestions before committing.1 # Download the patch
curl https://lift.sonatype.com/api/patch/github.com/ie3-institute/PowerSystemDataModel/770.diff -o lift-autofixes.diff
# Apply the patch with git
git apply lift-autofixes.diff
# Review the changes
git diff Want it all in a single command? Open a terminal in your project's directory and copy and paste the following command: curl https://lift.sonatype.com/api/patch/github.com/ie3-institute/PowerSystemDataModel/770.diff | git apply Once you're satisfied, commit and push your changes in your project. Footnotes |
# Conflicts: # CHANGELOG.md # src/test/groovy/edu/ie3/datamodel/io/source/csv/CsvRawGridSourceTest.groovy
!test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's also impractical usages of forEach
in CsvRawGridSourceTest
, could you fix them as well?
src/main/java/edu/ie3/datamodel/models/input/container/InputContainer.java
Outdated
Show resolved
Hide resolved
src/main/java/edu/ie3/datamodel/models/input/container/InputContainer.java
Outdated
Show resolved
Hide resolved
src/test/groovy/edu/ie3/datamodel/utils/validation/ValidAssetInput.groovy
Outdated
Show resolved
Hide resolved
…s' into ms/#758-improving-ValidationUtils
Removed rarely used methods of Try Enhanced tests for Try
Removed unnecessary type parameters and method definitions
Reinstated narrower checking of syspart. validation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, we got it know imho. I only adapted some minor stuff. Thanks for doing the large part of the job, @staudtMarius!
Resolves #758