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

Okapi Dependency Update from V. 0.36 to 1.43.0 #12

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

hylstonnb
Copy link

@hylstonnb hylstonnb commented Aug 14, 2023

Updating Okapi dependency to the latest version which supports java 8. (1.43.0)
Currently the latest version of Okapi is 1.45.0

@hylstonnb hylstonnb requested a review from a team August 14, 2023 19:51
@hylstonnb hylstonnb changed the title Okapi Dependency Update from V. 0.36 to 1.45.0 Okapi Dependency Update from V. 0.36 to 1.43.0 Aug 14, 2023
@hylstonnb hylstonnb marked this pull request as ready for review August 28, 2023 21:31
@aurambaj
Copy link
Collaborator

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;
Copy link
Collaborator

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;
Copy link
Collaborator

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?

Copy link
Author

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
Copy link
Collaborator

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.

Copy link
Author

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

Copy link
Collaborator

@aurambaj aurambaj left a 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'
@hylstonnb hylstonnb merged commit ef19494 into master Aug 29, 2023
2 checks passed
aurambaj pushed a commit that referenced this pull request Sep 2, 2023
…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'
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