summaryrefslogtreecommitdiff
path: root/core/src
AgeCommit message (Collapse)AuthorFilesLines
2016-08-08Minor follow on to last QR code version hint commitSean Owen3-29/+19
2016-08-08Add ability to specify a QR code version hint. (#637)germinator3-21/+84
* Add ability to specify a QR code version hint. * Checkstyle.
2016-08-08Fix one code warning; update pluginsSean Owen1-2/+2
2016-08-08Aztec decoder fix: return to Upper mode after U/S B/S sequence. (#643)fgrieu4-5/+10
* Update Decoder.java * Add files via upload dlusbs.png and dlusbs.txt is a test case for the D/L [digit] U/S B/S sequence, which should end in Upper mode, not Digit mode * Update number of test cases * Comment logic of the fix * Mention fixed issue #642
2016-07-24A bunch of inspection changes, including some dead code removal and ↵Sean Owen49-344/+131
tightening visibility, removing unnecessary casts
2016-07-08Don't interpret very long strings.with.dots.like.this to be interpreted as URIsSean Owen2-1/+2
2016-07-02Crush some PNGs that could benefit from itSean Owen29-0/+0
2016-06-24Oops, fix fat finger typo from last changeSean Owen1-1/+1
2016-06-24Implement more style checks around whitespaceSean Owen39-151/+163
2016-06-21Fix typo (#615)Sebastian Buchwald1-1/+1
2016-06-20Closes #610 : avoid AIOOBE in pure-barcode mode for obviously wrong caseSean Owen1-0/+4
2016-06-10Closes Issue #607 : guard against very narrow images which would otherwise ↵Sean Owen1-12/+19
cause an exception
2016-06-08Remove unneeded .gitignore, and unneeded libs copy step for Android targets. ↵Sean Owen2-0/+4
Update plugins. Fix javadoc warning / checkstyle problem.
2016-06-05Enable some additional checkstyle rulesSean Owen4-5/+9
2016-06-04Add minimal javadoc to all classes (and enforce with checkstyle); minor ↵Sean Owen28-25/+126
refactoring to of array sum code
2016-05-25Simplified pieces of code (#601)Nayuki9-116/+66
* Simplify code in bit-twiddling methods, using APIs introduced in Java 5. * Align code by adjusting whitespace and adding `+0`. * Convert qrcode DataMask to enum to reduce source code size, which shouldn't change behavior. * Simplify lists of character constants using string initializer instead of array. * Remove redundant `+ 0` operations from a recent change. * Delete the function DataMask.forReference() and inline the logic into all its callers.
2016-05-23Compute locale-specific expected date strings in test for JDK 9 compatibilitySean Owen1-7/+27
2016-05-12Simplified some code (#596)Taneli Huuskonen2-46/+23
* Fixed bug #593 Bug #593 was misleadingly reported as pertaining to another project, but testing revealed it affected this project as well. The Code128 encoding algorithm failed when an odd number of digits were followed by FNC1 and other digits. The code selection algorithm was rewritten. A test case showing the bug was added, and an old test case was updated to expect the result of the new algorithm - another valid encoding of the same length as the old one. * Fixed bug #593 Bug #593 was misleadingly reported as pertaining to another project, but testing revealed it affected this project as well. The Code128 encoding algorithm failed when an odd number of digits were followed by FNC1 and other digits. The code selection algorithm was rewritten. A test case showing the bug was added, and an old test case was updated to expect the result of the new algorithm - another valid encoding of the same length as the old one. * Cleaning up Added a private enum and changed some names to improve readability. Also some trivial cosmetic changes. * Further cleanup of Code128 writer test Removed a private one-liner method used exactly once, alphabetized imports. * Simplify conversion RGB -> luminance Removed testing every pixel for greyness in RGBLuminanceSource, as it did not appreciably change the speed of converting a greyscale image and slowed down the conversion of a colour image by a few percent. Besides, there was no need to treat every row separately; the total number of pixels was enough. * Minor improvements to BitArray Simplified some code, added more accurate error checking, and corrected small inaccuracies in comments.
2016-05-08Fix for bug #593Taneli Huuskonen2-18/+92
* Fixed bug #593 Bug #593 was misleadingly reported as pertaining to another project, but testing revealed it affected this project as well. The Code128 encoding algorithm failed when an odd number of digits were followed by FNC1 and other digits. The code selection algorithm was rewritten. A test case showing the bug was added, and an old test case was updated to expect the result of the new algorithm - another valid encoding of the same length as the old one. * Fixed bug #593 Bug #593 was misleadingly reported as pertaining to another project, but testing revealed it affected this project as well. The Code128 encoding algorithm failed when an odd number of digits were followed by FNC1 and other digits. The code selection algorithm was rewritten. A test case showing the bug was added, and an old test case was updated to expect the result of the new algorithm - another valid encoding of the same length as the old one. * Cleaning up Added a private enum and changed some names to improve readability. Also some trivial cosmetic changes. * Further cleanup of Code128 writer test Removed a private one-liner method used exactly once, alphabetized imports.
2016-05-08Revert inadvertent change to non-private APISean Owen1-1/+1
2016-05-08Minor changes from inspectionSean Owen10-77/+47
2016-05-05Cleaned up previous commitTaneli Huuskonen2-26/+19
Following Sean Owen's suggestions, I cleaned up my code in the Aztec decoder and its tests as follows: 1. Made convertBoolArrayToByteArray() package-private. 2. Replaced my own assertEqualByteArrays() with existing assertArrayEquals(). 3. Replaced C-style array declarations with more Javaish ones.
2016-05-05Aztec decoder returns raw bytesTaneli Huuskonen2-2/+57
The Aztec decoder now packs the code bits into bytes and returns them as "raw bytes", even though the error correction codes and stuffing have been already removed. Also added a couple of tests for the byte-packing function.
2016-04-20Fix spelling mistake in error messageAlex Hatzenbuhler1-1/+1
2016-01-21Update plugins, dependencies, and clean up small code inspection issuesSean Owen16-41/+45
2015-12-03Update ITFWriter.javaKbhredsox1-2/+2
Fixed spelling of text within "invalid input" exception.
2015-12-02QRCode Encoder: Support NUMERIC/ALPHANUMERIC Mode in Shift_JISsato yoshiyuki2-2/+77
2015-11-11Closes issue #496 : correct checksum for certain Code 39 inputsSean Owen2-7/+8
2015-10-19Added a Code 93 encodermmagician3-2/+121
2015-10-05Alter many encode hints to accept String equivalentsSean Owen7-42/+43
2015-10-01change the commentwood1-1/+3
Change the comment
2015-09-23Fix two rare crashes from bad input / stateSean Owen1-1/+5
2015-09-04Add support encoding UPC-E formatRX12264-2/+111
2015-09-01Ignore additional PDF417 barcode rowsGuenther Grau5-4/+7
Some barcode generators (e.g. Okapi) seem to generate additional barcode rows at the end of the barcode, which can be decoded as valid barcode rows, but actually contain garbage. The barcode metadata states that these additional rows are not part of the barcode. So we ignore those addional rows when parsing the barcode. This could potentially also happen (though quite unlikely) if data after the barcode looks like a barcode row.
2015-08-14Merge pull request #441 from gredler/pdf417-error-correction-levelSean Owen2-3/+13
PDF417Writer shouldn't ignore ERROR_CORRECTION hint
2015-08-14PDF417Writer shouldn't ignore ERROR_CORRECTION hintDaniel Gredler2-3/+13
2015-07-21Issue #428 Fix Code 93 escapes above %FSean Owen1-2/+12
2015-07-15Set PDF_417 lineThickness to 1Andreas Wenger1-3/+2
- fine-grained scaling for PDF_417 generation
2015-07-02Merge pull request #412 from strguntbr/multibyteFixSean Owen2-1/+7
Fixed substring call
2015-07-02Added unittest for PDF417 encoder using ISO-8859-1 with special charsMarcus Winkler1-0/+6
2015-07-02Fixed substring callMarcus Winkler1-1/+1
2015-06-06Remove spurious stack trace from singleton exception, and various minor editsSean Owen7-7/+15
2015-05-26Fix javadoc 8 error; actually enable enforcer; update pluginsSean Owen1-0/+1
2015-05-20Fixed multibyte charset problem when encoding PDF417 with Compaction AUTOMarcus Winkler1-15/+11
2015-05-20Added unit test for multibyte problemMarcus Winkler1-0/+7
2015-05-15Revert another change that causes a whirr failure, fix rat warnings, and one ↵Sean Owen7-27/+20
more error on Android generated files
2015-05-15Enable RAT check in build; enable checkstyle; fix some violations; update ↵Sean Owen13-67/+48
Jetty/Android plugin
2015-05-13Fixes from coveritySean Owen3-6/+1
2015-05-03Update plugins (now requires Maven 3.2); fix javadoc warningSean Owen1-0/+11
2015-05-03Revert "minSize from provided sizes"Sean Owen1-1/+1