-
Notifications
You must be signed in to change notification settings - Fork 99
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
PDF417: Automated structured append #103
Conversation
Thanks, will review this week! |
2414de7
to
6c4e714
Compare
@gredler I have rebased this change and applied slight improvements. Please let me know what you think. |
Will do -- this is high on my to-do list. |
FYI, I did now also extensive manual testing. Generated a series of e-tax 27 barcodes with both J4L and Okapi with the same input, and compared the output. All generated barcodes are 100% equal (pixel-by-pixel). |
I'm a little hesitant to coordinate this code review via PR comments, but let's give it a try and see how it goes :-) One high-level item to start: Can you resolve the conflicts? It looks like I caused a one- or two-line conflict with my recent line ending fix. |
6c4e714
to
41b073b
Compare
Done. |
41b073b
to
a62060a
Compare
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #103 +/- ##
============================================
+ Coverage 87.25% 87.31% +0.05%
- Complexity 4299 4317 +18
============================================
Files 68 69 +1
Lines 13934 14006 +72
Branches 3254 3264 +10
============================================
+ Hits 12158 12229 +71
- Misses 1126 1127 +1
Partials 650 650 ☔ View full report in Codecov by Sentry. |
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.
Reviewed original PR last week
src/main/java/uk/org/okapibarcode/backend/Pdf417AutoStructuredAppend.java
Outdated
Show resolved
Hide resolved
src/main/java/uk/org/okapibarcode/backend/Pdf417AutoStructuredAppend.java
Outdated
Show resolved
Hide resolved
src/main/java/uk/org/okapibarcode/backend/Pdf417AutoStructuredAppend.java
Outdated
Show resolved
Hide resolved
src/main/java/uk/org/okapibarcode/backend/Pdf417AutoStructuredAppend.java
Outdated
Show resolved
Hide resolved
src/main/java/uk/org/okapibarcode/backend/Pdf417AutoStructuredAppend.java
Outdated
Show resolved
Hide resolved
a62060a
to
15dfc47
Compare
15dfc47
to
e37ae03
Compare
@gredler I have now added more test cases which cover boundary cases, and thus also found & fixes some issues uncovered by these. |
0d315b4
to
31016ab
Compare
src/main/java/uk/org/okapibarcode/backend/Pdf417AutoStructuredAppend.java
Outdated
Show resolved
Hide resolved
31016ab
to
8242cb9
Compare
src/main/java/uk/org/okapibarcode/backend/Pdf417AutoStructuredAppend.java
Outdated
Show resolved
Hide resolved
I think the PR is looking good! I need to dig into the core of Let's move the implementation from The JavaDoc for the byte[] version mentions I think we can rename The copyright in the I'll try to check that last little bit in |
8242cb9
to
5e139e3
Compare
Thanks. Just pushed an update which addresses your comments. |
String remainingData = data; | ||
while (!remainingData.isEmpty()) { | ||
int low = 0; | ||
int high = remainingData.length(); |
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.
@gredler Do you think we can limit the high
? I.e. is there a way to calculate the maximum ever possible data amount for a specified symbol? That would allow us to optimize performance.
(Adding comment again there in order to make it visible after moving code around.)
Resolves #92