-
Notifications
You must be signed in to change notification settings - Fork 3
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
Okapi Dependency Update from V. 0.36 to 1.43.0 #12
Conversation
896a436
to
d01b8c8
Compare
d01b8c8
to
b1dc2a5
Compare
71587f8
to
ba4b577
Compare
Thank you @hylstonn! this is promising. Would you mind updating the commit message with more detail about each change required? |
@@ -10,8 +10,8 @@ | |||
import java.util.regex.Matcher; | |||
import java.util.regex.Pattern; | |||
import net.sf.okapi.common.Event; | |||
import net.sf.okapi.common.annotation.XLIFFNote; | |||
import net.sf.okapi.common.annotation.XLIFFNoteAnnotation; |
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.
was that class removed?
import net.sf.okapi.common.annotation.XLIFFNote; | ||
import net.sf.okapi.common.annotation.XLIFFNoteAnnotation; | ||
import net.sf.okapi.common.annotation.Note; | ||
import net.sf.okapi.common.annotation.NoteAnnotation; |
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.
is that a new class in addition to XLIFFNoteAnnotation or is replacing it?
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.
its a replacement, XLIFFNoteAnnotation was deprecated and got removed already.
maxLength: 18 |
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.
does the source file contain the extra line? Wondering if it is now keeping it as what's in the source, or if it adds an extra line.
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.
yes, the source file contains the extra line. Probably a bug they fixed in Okapi
ba4b577
to
5d3ffae
Compare
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.
Looks good, thank you!
…rsion supporting java 8 extractNoteFromXMLComment fix - replaced textUnit.getProperty to textUnitUtils.getNote method getNote fix - return textUnit.getProperty(NoteAnnotation.LOC_NOTE) if the property is not null adding empty line at the end of the yaml files. The source file has the empty line at the end, so okapi version upgrade should have fixed it. XLIFFNoteAnnotation was deprecated and removed. NoteAnnotation class came as a replacement for the old XLIFFNoteAnnotation class. XLIFFNote was deprecated and removed. Note class came as a replacement for the old XLIFFNote class. Property.NOTE string constant was deprecated and removed. It as replaced by NoteAnnotation.LOC_NOTE. The value of the string constant is no longer the same. Property.NOTE value was 'note' and NoteAnnotation.LOC_NOTE value is 'developer'
5d3ffae
to
d302d49
Compare
…rsion supporting java 8 (#12) extractNoteFromXMLComment fix - replaced textUnit.getProperty to textUnitUtils.getNote method getNote fix - return textUnit.getProperty(NoteAnnotation.LOC_NOTE) if the property is not null adding empty line at the end of the yaml files. The source file has the empty line at the end, so okapi version upgrade should have fixed it. XLIFFNoteAnnotation was deprecated and removed. NoteAnnotation class came as a replacement for the old XLIFFNoteAnnotation class. XLIFFNote was deprecated and removed. Note class came as a replacement for the old XLIFFNote class. Property.NOTE string constant was deprecated and removed. It as replaced by NoteAnnotation.LOC_NOTE. The value of the string constant is no longer the same. Property.NOTE value was 'note' and NoteAnnotation.LOC_NOTE value is 'developer'
Updating Okapi dependency to the latest version which supports java 8. (1.43.0)
Currently the latest version of Okapi is 1.45.0