Commit graph

3779 commits

Author SHA1 Message Date
Sean Owen 58f748a451 Remove unneeded .gitignore, and unneeded libs copy step for Android targets. Update plugins. Fix javadoc warning / checkstyle problem. 2016-06-08 15:15:06 +01:00
Sean Owen 032e1547ae Enable some additional checkstyle rules 2016-06-04 22:40:48 +01:00
Sean Owen 389f69f4b2 Add minimal javadoc to all classes (and enforce with checkstyle); minor refactoring to of array sum code 2016-06-04 15:36:32 +01:00
Nayuki 7cf49565c2 Simplified pieces of code (#601)
* 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-25 06:46:44 -05:00
Sean Owen c2eb20d976 Compute locale-specific expected date strings in test for JDK 9 compatibility 2016-05-23 07:18:48 -05:00
Sean Owen 2a5a62e373 Don't build source, javadoc in Travis 2016-05-22 22:33:04 -05:00
Sean Owen 0ef26e3948 Use java.util.Base64 in Java 8+ only, to remove javax.xml.bind dependency in javase, which doesn't exist by default in Java 9 2016-05-22 22:24:19 -05:00
Sean Owen ce072f02f9 Better info logging in web app, and better clearing of buffers 2016-05-18 14:57:03 +01:00
Sean Owen 1f14baf6f2 Set up for app 4.7.6 2016-05-12 10:10:11 +01:00
Taneli Huuskonen cc16a72c85 Simplified some code (#596)
* 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-12 10:06:04 +01:00
Taneli Huuskonen f0dfcdfed5 Fix for bug #593
* 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-08 15:01:41 +01:00
Sean Owen a064c719e6 Update plugins 2016-05-08 09:32:07 +01:00
Sean Owen 84d08ef61f Revert inadvertent change to non-private API 2016-05-08 09:30:51 +01:00
Sean Owen 30bb62bf4f Minor changes from inspection 2016-05-08 09:13:41 +01:00
Sean Owen a8d01bd85f Fix missing closing </body> tags 2016-05-08 09:13:41 +01:00
Sean Owen 7a4e0935b5 Merge pull request #591 from tanelihuuskonen/master
Aztec decoder returns raw bytes
2016-05-05 21:28:33 +01:00
Taneli Huuskonen ee48b3e5d3 Cleaned up previous commit
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-05 21:58:37 +03:00
Taneli Huuskonen e9896d03a6 Aztec decoder returns raw bytes
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-05-05 15:10:44 +03:00
Sean Owen a8b78c16f5 Merge pull request #589 from tanelihuuskonen/master
Polish corrections
2016-05-04 21:32:40 +01:00
Taneli Huuskonen 05a415f1a0 Attempt to further improve Polish translations
I tried to correct some Polish translations that I at least suspected
were erroneous, unclear, and/or awkward.  However, my attempts should be
carefully checked by a native speaker.
2016-05-04 21:29:35 +03:00
Taneli Huuskonen 05353e1300 Obvious corrections in Polish translation
Corrected a couple of obviously mistaken automatic translations in the
Polish version.
2016-05-04 18:32:16 +03:00
Sean Owen 48366e74e1 Merge pull request #582 from ahatzz11/master
Fix spelling mistake in error message
2016-04-20 21:14:53 +01:00
Alex Hatzenbuhler 8b53e448db Fix spelling mistake in error message 2016-04-20 14:50:35 -05:00
Sean Owen d5058a71c6
Test signed commit and update minor deps, plugin 2016-04-05 22:51:25 +01:00
Sean Owen 88c0076aee Merge pull request #573 from Veve2/patch-1
Added a port to PHP
2016-03-24 16:00:38 +00:00
Veve2 59541cc451 Added a port to PHP 2016-03-24 16:57:34 +01:00
Sean Owen b189fd1d56 More for issue #557: remove another constant that's not present in API 23+ 2016-03-09 11:54:29 +00:00
Sean Owen c7e8045d80 Merge pull request #567 from tacsipacsi/patch-1
Correct Hungarian translation
2016-03-03 04:53:59 +00:00
tacsipacsi 312d21a746 Correct Hungarian translation
Correct spelling and/or grammar mistakes in the translated strings.
2016-03-02 23:35:26 +01:00
Sean Owen 87802ac463 Add issue template and move supported files to .github 2016-03-02 12:45:45 +00:00
Sean Owen 85f5d0597d Update plugins, slf4j, jetty 2016-03-01 00:32:30 +00:00
Sean Owen 55e2148df3 Merge pull request #564 from maplejune/kr-translation
Improved Korean Translation
2016-02-28 09:28:04 +00:00
maplejune ea24016bbe Improved Korean Translation
Replaced machine translations with actual translations.
2016-02-28 18:19:11 +09:00
Sean Owen 08cd614050 Merge pull request #560 from lucaswiman/fix_println_race_condition
Use StringWriter to prevent race condition in println
2016-02-15 21:37:24 +00:00
Lucas Wiman 70ee6c601c Use StringWriter to prevent race condition in println 2016-02-15 13:21:33 -08:00
Sean Owen 715be9a1a9 Closes #557 : Remove refs to Browser.BookmarkColumns which isn't in API 23 / 6.0 2016-02-15 14:02:48 +00:00
Sean Owen 1fbefcac31 New profile to limit memory usage in Travis 2016-02-08 14:38:18 +00:00
Sean Owen 3b4fc7a244 Closes issue #540 : handle file paths with space 2016-02-08 14:08:13 +00:00
Sean Owen 1eaa66dbfa Merge pull request #549 from az-ericso/az-ericso-patch-1
Added the "Get Started Developing" link in the README.md
2016-01-30 10:54:56 +04:00
az-ericso 685a1e8a4d Update README.md 2016-01-29 13:19:42 -08:00
az-ericso e761c64b39 Update README.md 2016-01-29 11:44:46 -08:00
az-ericso 532c4af32b Added the "Get Started" link in the README.md
It is really hard to find the instruction.
2016-01-28 16:53:58 -08:00
Sean Owen 05b9f0af9b Fix possible NPE from null action 2016-01-23 21:34:43 +00:00
Sean Owen 308d91de1c Update plugins, dependencies, and clean up small code inspection issues 2016-01-21 14:46:48 +01:00
Sean Owen 3912f3fd9f Closes issue #539 : handle relative files again 2016-01-14 13:49:52 +00:00
Sean Owen 4e3abafe30 Closes issue #518 : build assembly jar for javase to include dependencies like jcommander now. Also updates some plugins. 2015-12-09 14:25:10 +00:00
Sean Owen 58108dfe5e Closes issue #517 : crude email validator in encoder web app should not restrict last domain element to 6 chars. "foo@bar.marketing" should be fine 2015-12-07 22:17:14 +00:00
Sean Owen d5c6fabfef Merge pull request #514 from yoshi389111/help-rotate
Added a method "onSaveInstanceState()" in HelpActivity.java
2015-12-05 14:25:33 +00:00
sato yoshiyuki 1732b82fc8 Added a method "onSaveInstanceState()" in HelpActivity.java
Related Issue#504
"Help screen" goes blank on screen orientation change.

Checked Nexus5 (Android6.0/MRA58N)
2015-12-05 23:16:34 +09:00
sato yoshiyuki 1d3b41346f Merge remote-tracking branch 'refs/remotes/zxing/master' 2015-12-05 18:27:53 +09:00