Skip to content
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

Fixed problem with e-ark validator #260

Merged
merged 1 commit into from
Mar 13, 2024
Merged

Conversation

carlosjepard
Copy link
Contributor

No description provided.

@@ -45,7 +45,8 @@ public InstatiateMets(final InputStream stream) {
* if some parse error occurs.
*/
public Mets instatiateMetsFile() throws JAXBException, SAXException {
final JAXBContext jaxbContext = JAXBContext.newInstance(Mets.class);
org.glassfish.jaxb.runtime.v2.JAXBContextFactory contextFactory = new org.glassfish.jaxb.runtime.v2.JAXBContextFactory();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck> reported by reviewdog 🐶
Line is longer than 120 characters (found 125).

@@ -45,7 +45,8 @@ public InstatiateMets(final InputStream stream) {
* if some parse error occurs.
*/
public Mets instatiateMetsFile() throws JAXBException, SAXException {
final JAXBContext jaxbContext = JAXBContext.newInstance(Mets.class);
org.glassfish.jaxb.runtime.v2.JAXBContextFactory contextFactory = new org.glassfish.jaxb.runtime.v2.JAXBContextFactory();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck> reported by reviewdog 🐶
Variable 'contextFactory' should be declared final.

@@ -45,7 +45,8 @@ public InstatiateMets(final InputStream stream) {
* if some parse error occurs.
*/
public Mets instatiateMetsFile() throws JAXBException, SAXException {
final JAXBContext jaxbContext = JAXBContext.newInstance(Mets.class);
org.glassfish.jaxb.runtime.v2.JAXBContextFactory contextFactory = new org.glassfish.jaxb.runtime.v2.JAXBContextFactory();
JAXBContext jaxbContext = contextFactory.createContext(new Class[]{Mets.class}, null);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck> reported by reviewdog 🐶
Variable 'jaxbContext' should be declared final.

@hmiguim hmiguim merged commit f768176 into development Mar 13, 2024
3 checks passed
@hmiguim hmiguim deleted the cafonso-devJAXBfix branch March 13, 2024 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants