-
Notifications
You must be signed in to change notification settings - Fork 15
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
Conversation
@@ -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(); |
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.
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(); |
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.
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); |
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.
Variable 'jaxbContext' should be declared final.
No description provided.