instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
apache__commons-bcel__188
apache/commons-bcel
188
defect
56483f6fda7ae16244ffdbc11213b98bf4e28193
7be293fc77070636f41d3935933a033c11d0971c
Verifier: test and coverage for SWAP instruction
Eclipse compiler is useful to generate specific .class file patterns. SWAP instruction is never emitted by javac. This PR contains a test for Verifier main method and SWAP input source file to be compiled with Eclipse Compiler (ecj) with source/target 1.4. I included ecj version 3.26.0 which is the last JDK8-compati...
diff --git a/pom.xml b/pom.xml index 7231153c78..92cadcd086 100644 --- a/pom.xml +++ b/pom.xml @@ -514,6 +514,13 @@ <scope>test</scope> </dependency> <!-- END very old jars for Justice verifier --> + <dependency> + <!-- Eclipse compiler: useful to generate specific .class file patterns --> ...
2
1
1
[{"id": "G0", "claim": "If compiling the SWAP.java fixture with ecj source/target 1.4 is really a requirement, a precompiled class file should be committed to the test resources instead; either the comment is wrong, or the class should be in the repo.", "category": "design", "verdict": "uncertain", "priority": "P3", "s...
null
apache__commons-bcel__213
apache/commons-bcel
213
defect
d9707556648d2835c0bef92ddc3d4aa1e5e55454
07cbedd12d0611e774e887049c7bda12c10ad73c
Fix null pointers in AnnotationEntry
I should probably be using the *Gen classes instead but still, the model is broken because of null pointers that raise from calling public methods. 1st commit is the failing unit test.
diff --git a/src/main/java/org/apache/bcel/classfile/AnnotationEntry.java b/src/main/java/org/apache/bcel/classfile/AnnotationEntry.java index 849ae873b7..946333044a 100644 --- a/src/main/java/org/apache/bcel/classfile/AnnotationEntry.java +++ b/src/main/java/org/apache/bcel/classfile/AnnotationEntry.java @@ -50,7 +50,...
4
4
0
[{"id": "G0", "claim": "Do not catch IOException in testDump and call fail(e); let the exception propagate instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Sort the test methods in alphabetical order.", "category": "maintainability", "ver...
null
apache__commons-bcel__221
apache/commons-bcel
221
defect
de3f85821dd82202d90331730bd1ca791e545d73
19121c0f5504981e8d4b5ad68c672a9d65793646
Fix for type.getType(...) use on non-signature type names
This is a fix for a small regression introduced by PR #171 with the use of Type.getType(...) on an internal type name which needs to be converted to a signature first (i.e. java/lang/String => Ljava/lang/String;)
diff --git a/src/main/java/org/apache/bcel/generic/LDC.java b/src/main/java/org/apache/bcel/generic/LDC.java index 85f1c7c219..eba856e946 100644 --- a/src/main/java/org/apache/bcel/generic/LDC.java +++ b/src/main/java/org/apache/bcel/generic/LDC.java @@ -108,7 +108,7 @@ public Object getValue(final ConstantPoolGen cpg)...
1
1
0
[{"id": "G0", "claim": "The hardcoded magic list of primitive-type strings in internalTypeNameToSignature should be replaced by reusing (or refactoring to public) an existing named constant such as InstructionFactory.SHORT_NAMES, since a hard-coded array of strings with no good name hurts readability.", "category": "ma...
null
apache__commons-bcel__29
apache/commons-bcel
29
defect
95b3c3f22a0f70449f2e45e53f54dfe8193b0f40
f1dc961d8e0b857c002b9aec97ebbd993d91019c
[BCEL-321] AbstractClassPathRepository to share findClass logic for repositories
# Problem to solve BCEL has different Repository classes with slight modification in its underlying cache: - ClassPathRepository uses HashMap<String, JavaClass> for JavaClass cache - MemorySensitiveClassPathRepository uses HashMap<String, SoftReference<JavaClass> - New LruCacheClassPathRepository by BCEL-320 will...
diff --git a/src/main/java/org/apache/bcel/util/AbstractClassPathRepository.java b/src/main/java/org/apache/bcel/util/AbstractClassPathRepository.java new file mode 100644 index 0000000000..c9aacd60a0 --- /dev/null +++ b/src/main/java/org/apache/bcel/util/AbstractClassPathRepository.java @@ -0,0 +1,138 @@ +/* + * Licen...
3
3
1
[{"id": "G0", "claim": "The class-level javadoc of AbstractClassPathRepository opens a <p> tag that is never closed with </p>.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The parentheses around (className == null) in loadClass are unnecessary a...
null
apache__commons-codec__219
apache/commons-codec
219
defect
44e4c4d778c3ab87db09c00e9d1c3260fd42dad5
f26c68a68efcdcf887dd21dd801623c3a5a804dd
CODEC-311: Fix possible ArrayIndexOutOfBoundException thrown by RefinedSoundex.getMappingCode()
This fixes a possible ArrayIndexOutOfBoundException in [src/main/java/org/apache/commons/codec/language/RefinedSoundex.java](https://github.com/apache/commons-codec/blob/master/src/main/java/org/apache/commons/codec/language/RefinedSoundex.java) thrown by `RefinedSoundex.getMappingCode()` method when handling out of ra...
diff --git a/src/main/java/org/apache/commons/codec/language/RefinedSoundex.java b/src/main/java/org/apache/commons/codec/language/RefinedSoundex.java index 30c7df9141..7d47bf736c 100644 --- a/src/main/java/org/apache/commons/codec/language/RefinedSoundex.java +++ b/src/main/java/org/apache/commons/codec/language/Refin...
2
2
1
[{"id": "G0", "claim": "The pull request needs a unit test to prove the RefinedSoundex.getMappingCode out-of-range fix works.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new test should use invalid.length instead of the magic number 256 as the lo...
null
apache__commons-codec__220
apache/commons-codec
220
defect
44e4c4d778c3ab87db09c00e9d1c3260fd42dad5
700dfb26f2e5550d3ed3c346b1394479ffa5440e
CODEC-312: Fix possible StringIndexOutOfBoundException thrown by MatchRatingApproachEncoder.encode() method
This fixes a possible StringIndexOutOfBoundException in [src/main/java/org/apache/commons/codec/language/MatchRatingApproachEncoder.java](https://github.com/apache/commons-codec/blob/master/src/main/java/org/apache/commons/codec/language/MatchRatingApproachEncoder.java) thrown by MatchRatingApproachEncoder.encode() met...
diff --git a/src/main/java/org/apache/commons/codec/language/MatchRatingApproachEncoder.java b/src/main/java/org/apache/commons/codec/language/MatchRatingApproachEncoder.java index 86f0843776..f2a9b566de 100644 --- a/src/main/java/org/apache/commons/codec/language/MatchRatingApproachEncoder.java +++ b/src/main/java/org...
4
4
1
[{"id": "G0", "claim": "The PR needs a unit test to prove what the changed MatchRatingApproachEncoder.encode() main code does.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The emptiness guards after cleanName() and removeVowels() should use isEmpty() ...
null
apache__commons-codec__221
apache/commons-codec
221
defect
44e4c4d778c3ab87db09c00e9d1c3260fd42dad5
4769376976bd7f36808afa544ec4d7c9d1d15f5d
CODEC-313: Fix possible ArrayIndexOutOfBoundsException thrown by QuotedPrintableCodec.encodeQuotedPrintable() method
This fixes a possible ArrayIndexOutOfBoundException in [src/main/java/org/apache/commons/codec/language/QuotedPrintableCodec.java](https://github.com/apache/commons-codec/blob/master/src/main/java/org/apache/commons/codec/language/QuotedPrintableCodec.java) thrown by `QuotedPrintableCodec.encodeQuotedPrintable()` metho...
diff --git a/src/main/java/org/apache/commons/codec/net/QuotedPrintableCodec.java b/src/main/java/org/apache/commons/codec/net/QuotedPrintableCodec.java index b6eea3ec66..739681241d 100644 --- a/src/main/java/org/apache/commons/codec/net/QuotedPrintableCodec.java +++ b/src/main/java/org/apache/commons/codec/net/QuotedP...
2
2
1
[{"id": "G0", "claim": "The pull request needs a unit test to prove what the main change does.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "If the number 3 is special, the strict-length check should refactor it into a named constant and document it.",...
null
apache__commons-codec__223
apache/commons-codec
223
defect
44e4c4d778c3ab87db09c00e9d1c3260fd42dad5
7a6ce1d8c92ba3bf1066d77a8b2433abae509376
CODEC-315: Fix possible IndexOutOfBoundException thrown by PhoneticEngine.encode method
This fixes possible StringIndexOutOfBoundsException and ArrayIndexOutOfBoundsException in [src/main/java/org/apache/commons/codec/language/bm/PhoneticEngine.java](https://github.com/apache/commons-codec/blob/master/src/main/java/org/apache/commons/codec/language/bm/PhoneticEngine.java) thrown by `PhoneticEngine.encode(...
diff --git a/src/main/java/org/apache/commons/codec/language/bm/PhoneticEngine.java b/src/main/java/org/apache/commons/codec/language/bm/PhoneticEngine.java index ef69a2a413..2e7c811d5b 100644 --- a/src/main/java/org/apache/commons/codec/language/bm/PhoneticEngine.java +++ b/src/main/java/org/apache/commons/codec/langu...
2
2
0
[{"id": "G0", "claim": "The new testInvalidEncode only wraps engine.encode(input) in assertDoesNotThrow and never checks the returned phonemes, so the reviewer asks why assertDoesNotThrow is used when nothing else runs after it.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ...
null
apache__commons-codec__29
apache/commons-codec
29
defect
1b9889762a86ae50657d5ce0048cbf9c5f62ffa7
a0447626dcffd6bcd4decd13e4dac1da4661d6f7
[CODEC-270] Base32/64: Fix masked check of the final bits to discard.
Fixed the Base32/64 mask check to ensure it checks all the bits to be discarded are zero. Added tests that enumerate all possible trailing characters. Only those with zero for the discarded bits should be decoded. Also fixed the BCodecTest data to use the RFC 1522 "encoded-word" header.
diff --git a/src/main/java/org/apache/commons/codec/binary/Base32.java b/src/main/java/org/apache/commons/codec/binary/Base32.java index a8ede4eb00..7009fcb0ae 100644 --- a/src/main/java/org/apache/commons/codec/binary/Base32.java +++ b/src/main/java/org/apache/commons/codec/binary/Base32.java @@ -114,8 +114,20 @@ publ...
1
1
0
[{"id": "G0", "claim": "The indentation of the guts of the new `if` block in `validateCharacter` is not quite right.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
apache__commons-codec__35
apache/commons-codec
35
defect
f5a61f0cd029f18666163f414f848ba0e1b39976
f9c0d79cbeea84928a3a087d432085141506fa47
[CODEC-280] Added strict decoding property to BaseNCodec.
The default is lenient encoding. Any trailing bits that cannot be interpreted as part of the encoding are discarded. Combinations of trailing characters that cannot be created by a valid encoding are partially interpreted. If set to strict encoding the codec will raise an exception when trailing bits are present...
diff --git a/src/changes/changes.xml b/src/changes/changes.xml index c907953156..969ed0ccf7 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -44,6 +44,7 @@ The <action> type attribute can be add,update,fix,remove. <release version="1.15" date="YYYY-MM-DD" description="Feature and fix release...
2
1
1
[{"id": "G0", "claim": "The BCodecTest.testBase64ImpossibleSamples test should be rewritten to match the new default (lenient) behaviour instead of being @Ignore'd.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The setStrictDecoding() method cannot be ...
null
apache__commons-codec__419
apache/commons-codec
419
defect
fde5c6b656eacc8aef95dd3d86c56b6689d98b92
c2358e969363cc3cae50ca7b3ada324da1a15546
[CODEC-333] Add separate methods for strict Standard and URL Safe Base64 decoding
This PR implements strict Base64 decoding mechanisms, as explained in [CODEC-333](https://issues.apache.org/jira/browse/CODEC-333). The proposed implementation keeps the current behavior that supports both "standard" and URL Safe Base64 characters on decoding by default, but adds supplementary methods allowing to en...
diff --git a/src/main/java/org/apache/commons/codec/binary/Base64.java b/src/main/java/org/apache/commons/codec/binary/Base64.java index 0b10809158..6521fd96ca 100644 --- a/src/main/java/org/apache/commons/codec/binary/Base64.java +++ b/src/main/java/org/apache/commons/codec/binary/Base64.java @@ -127,6 +127,58 @@ publ...
11
10
1
[{"id": "G0", "claim": "Revert the re-indentation of the DECODE_TABLE column-header comment line, which should not be edited.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The added Javadoc note 'this method threats both characters '+' and '/' ...
null
apache__commons-codec__427
apache/commons-codec
427
defect
f3b0eb5499266e99170bcc674c93d8a69790fc8b
0cf17cdcefcf01cb59b1a95a562e158de5ea2429
CODEC-335: Add `DigestUtils.gitBlob` and `DigestUtils.gitTree` methods
This change adds two methods to `DigestUtils` that compute generalized Git object identifiers using an arbitrary `MessageDigest`, rather than being restricted to SHA-1: - `gitBlob(digest, input)`: computes a generalized [Git blob object identifier](https://git-scm.com/book/en/v2/Git-Internals-Git-Objects) for a give...
diff --git a/src/changes/changes.xml b/src/changes/changes.xml index ce6e8d66cd..24a8e29d1f 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -51,6 +51,7 @@ The <action> type attribute can be add,update,fix,remove. <!-- ADD --> <action type="add" dev="ggregory" due-to="Inkeet, Gary Gre...
5
1
1
[{"id": "G0", "claim": "The new git-related code should live in a new GitDigest class instead of DigestUtils.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer asks whether this git digest functionality already exists in JGit, i.e. whether the PR...
null
apache__commons-codec__67
apache/commons-codec
67
defect
d720e8797233b467f17dc7ebdddfe482d08a374a
354ef3883333b850c32dcf8c27bdd2218be02717
[CODEC-295] Minor improvements
https://issues.apache.org/jira/browse/CODEC-295 Minor improvement - extra computations by getting the string size only once. - remove unused imports - add final String - add final method and var - FIx javadoc
diff --git a/src/main/java/org/apache/commons/codec/binary/BinaryCodec.java b/src/main/java/org/apache/commons/codec/binary/BinaryCodec.java index 590dd3e579..c7f383e2d3 100644 --- a/src/main/java/org/apache/commons/codec/binary/BinaryCodec.java +++ b/src/main/java/org/apache/commons/codec/binary/BinaryCodec.java @@ -8...
5
5
0
[{"id": "G0", "claim": "Stop using the single-letter local variable `l` in Hex.encodeHex, since it can look just like a \"1\" depending on the font.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the formatting of `inputs = new String[argsLe...
null
apache__commons-codec__79
apache/commons-codec
79
defect
482df6cabfb288acb6ab3e4a732fdb93aecfa7c2
b71233be7601e9710b6871e8743d34e86561b898
CODEC-296: Add support for Blake3 family of hashes
https://issues.apache.org/jira/browse/CODEC-296 Note that I've ported this from my own library https://github.com/o1c-dev/o1c which is ISC-licensed and based on [public domain code](https://github.com/BLAKE3-team/BLAKE3/blob/master/src/lib.rs).
diff --git a/pom.xml b/pom.xml index 5db14a2516..71a0e6b11f 100644 --- a/pom.xml +++ b/pom.xml @@ -117,6 +117,12 @@ limitations under the License. <id>chtompki</id> <email>chtompki@apache.org</email> </developer> + <developer> + <name>Matt Sicker</name> + <id>mattsicker</id> + <emai...
7
5
0
[{"id": "G0", "claim": "The block comment above the Blake3TestVectorsTest class should be turned into Javadoc.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Blake3TestVectorsTest constructor should get a simple Javadoc and some input validati...
null
apache__commons-collections__140
apache/commons-collections
140
defect
9831773447456466ae93b07e59ea76c8cce31787
2a9bdc00981621c21e95e2bac474e64384efacd2
Bloomfilter updates2
Fixing coverage. Updating the Shape object with more documentation and fixing the hash code implementation.
diff --git a/src/main/java/org/apache/commons/collections4/bloomfilter/BitSetBloomFilter.java b/src/main/java/org/apache/commons/collections4/bloomfilter/BitSetBloomFilter.java index 2781844d79..6ce3532254 100644 --- a/src/main/java/org/apache/commons/collections4/bloomfilter/BitSetBloomFilter.java +++ b/src/main/java/...
13
6
0
[{"id": "G0", "claim": "getBits() should track the maximum buffer index while collecting bits so it knows where to trim the array instead of decrementing from the end.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "Make HashFunctionValidator publi...
null
apache__commons-collections__300
apache/commons-collections
300
defect
9df6f64b7ea729fff5d11fce6407cba249baafaa
43e23dd6584ba81ef1e57554248441f35bee0195
[COLLECTIONS-802] Fix remove failed by removing set null to currentKe…
…y and currentValue. - The problem occur when the iterator called `hasNext` and return false, which set null to `currentKey`. Hence `remove` method calling `parent.remove(currentKey);` will not remove the current entry. - Propose to fix by removing lines setting null, other than releasing the reference earlier, ca...
diff --git a/src/main/java/org/apache/commons/collections4/map/AbstractReferenceMap.java b/src/main/java/org/apache/commons/collections4/map/AbstractReferenceMap.java index 684ed58a2b..a55825e003 100644 --- a/src/main/java/org/apache/commons/collections4/map/AbstractReferenceMap.java +++ b/src/main/java/org/apache/comm...
2
1
0
[{"id": "G0", "claim": "The new test could also be modified to be more similar to the one reported in the issue, e.g. asserting that the entry returned by next() has key 1 as in the attached suggestion diff.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim":...
null
apache__commons-collections__315
apache/commons-collections
315
defect
87647d0812f3ec8f10ead3d2059e60801f7538b7
8246b4e6fafc7a32499c700fd35e510d9d62c38c
replaced merge with old mergeInPlace
This change makes `merge()` act like other collections {{merge}} methods and update the item in place. The `mergeInPlace()` method is removed. Any previous use of `merge` should be replaced with ``` BloomFilter bf = bf1.copy(); bf.merge( thing ); ``` fixes https://issues.apache.org/jira/browse/COLLECTIONS-829
diff --git a/src/conf/checkstyle.orig b/src/conf/checkstyle.orig new file mode 100644 index 0000000000..0b79c22dca --- /dev/null +++ b/src/conf/checkstyle.orig @@ -0,0 +1,67 @@ +<?xml version="1.0"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTI...
1
1
1
[{"id": "G0", "claim": "The checkstyle configuration files src/conf/checkstyle.orig and src/conf/checkstyle2.xml that this pull request adds look unnecessary and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__commons-collections__406
apache/commons-collections
406
defect
99473dfa205a7c476a22190ee01f0b211091987b
eccfd03205c8628384269dc9d9e2d22fbc4e46e2
COLLECTIONS-844 - allow counting Bloom filters with cell size other than Integer.SIZE
Counting bloom filter tests are dependant upon the maximum value that can be stored in a cell in a Bloom filter. This pull adds a `getMaxValue()` method to the CountingBloomFilter interface. This is to indicate the maximum value that can be stored in a single cell of the counting filter. A cell is the counter that...
diff --git a/src/main/java/org/apache/commons/collections4/bloomfilter/ArrayCountingBloomFilter.java b/src/main/java/org/apache/commons/collections4/bloomfilter/ArrayCountingBloomFilter.java index 21d7ce7c9e..26d7eb8f8f 100644 --- a/src/main/java/org/apache/commons/collections4/bloomfilter/ArrayCountingBloomFilter.java...
12
10
2
[{"id": "G0", "claim": "The new capacity getter is named `getMaxValue`, which is out of context for a counting Bloom filter; it should be renamed (suggested `getMaxCount`) and documented as the maximum count a bit index can hold before the filter is invalidated.", "category": "design", "verdict": "supported", "priority...
null
apache__commons-collections__476
apache/commons-collections
476
defect
de7c51e3093fad1a56318f7612952b9c2d1fa3f2
646c5b1a42b2693ef2a662db5b9234a70e3ea015
[COLLECTIONS-852] Add layerd bloom filter clean method
Provides a method to call the LayerManager cleanup consumer without adding additional layers to the LayeredBloomFilter. fix for [COLLECTIONS-852](https://issues.apache.org/jira/browse/COLLECTIONS-852)
diff --git a/src/main/java/org/apache/commons/collections4/bloomfilter/LayerManager.java b/src/main/java/org/apache/commons/collections4/bloomfilter/LayerManager.java index a80d3c4ccf..e98791c108 100644 --- a/src/main/java/org/apache/commons/collections4/bloomfilter/LayerManager.java +++ b/src/main/java/org/apache/comm...
5
4
2
[{"id": "G0", "claim": "The public wrapper's name and javadoc should not lean on the similar package-private names clean/clear, and the method should get a more verbose name such as cleanUp/cleanup.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
apache__commons-collections__485
apache/commons-collections
485
defect
1dc530e6fa2e0c87e9bf1f377834312169a5fc3f
1de00d5e075392089b5ea76138c418f85b1c2fed
COLLECTIONS-842: deprecate Lists incompatible with Java 21, add new variant of AbstractLinkedList
This is a minimal PR. We may need to improve the deprecation notes. Coverage tests are failing; we'd need to add test coverage for the new variant, which IMHO requires having an implementation using it. I've verified that this change would work for Jackrabbit, see https://issues.apache.org/jira/browse/JCR-5049 fo...
diff --git a/src/main/java/org/apache/commons/collections4/list/AbstractLinkedList.java b/src/main/java/org/apache/commons/collections4/list/AbstractLinkedList.java index aecb2e9482..1d66a792fa 100644 --- a/src/main/java/org/apache/commons/collections4/list/AbstractLinkedList.java +++ b/src/main/java/org/apache/commons...
5
5
4
[{"id": "G0", "claim": "The DefaultAbstractLinkedListForJava21 inner class should be declared static, since a non-static inner class makes the serialization test serialize the enclosing (non-serializable) AbstractLinkedListForJava21Test.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "i...
null
apache__commons-collections__501
apache/commons-collections
501
defect
66e2c57640aa198cab6b4a39e7a09c9b9b92a9de
bb2fac47dc24033bae8a180bc59cb1e6e8769318
[COLLECTIONS-855] Fixed hashing calculation as per report
Fix for [COLLECTIONS-855](https://issues.apache.org/jira/browse/COLLECTIONS-855) Modified the loop counters as recommended in bug report. Adjusted test data accordingly.
diff --git a/src/main/java/org/apache/commons/collections4/bloomfilter/EnhancedDoubleHasher.java b/src/main/java/org/apache/commons/collections4/bloomfilter/EnhancedDoubleHasher.java index 761803e49f..37deb4c5ad 100644 --- a/src/main/java/org/apache/commons/collections4/bloomfilter/EnhancedDoubleHasher.java +++ b/src/m...
4
3
0
[{"id": "G0", "claim": "The loop computes the index update even on the final iteration where it is never used, which may be noticeable for a small number of hash functions (e.g. k=5), and the code should be fixed to compute the index update only when it will be used.", "category": "performance", "verdict": "supported",...
null
apache__commons-collections__564
apache/commons-collections
564
defect
63d30d55bfbc7203621c0443086a59b874611c0b
5727cfcb3bb873c6d747b9039dc40e92694b4fb0
COLLECTIONS-870: Added ExtendedIterator and tests
Implement COLLECTIONS-870 Adds an ExtendedIterator as defined in COLLECTIONS-870 as well as in the discussion on the mailing list. mailing list discussion: https://lists.apache.org/thread/rpcsoz3jwz7x9sp3cgzf315ls7pcd90w
diff --git a/src/main/java/org/apache/commons/collections4/iterators/ExtendedIterator.java b/src/main/java/org/apache/commons/collections4/iterators/ExtendedIterator.java new file mode 100644 index 0000000000..b794958fb4 --- /dev/null +++ b/src/main/java/org/apache/commons/collections4/iterators/ExtendedIterator.java @...
9
3
0
[{"id": "G0", "claim": "The class Javadoc should either fix the grammar (\"A\" -> \"An\") or be rephrased to start with \"Extends functionality to do ...\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The class Javadoc should add a `@since 4.5....
null
apache__commons-collections__633
apache/commons-collections
633
defect
d8c59cdbc79d41b1309720d745a39735b334ae86
da78928adffd1208cbcb08445406bbf022eed728
[collections-838] hasNext() value is now cached till next() or remove…
…() get invoked, thus reducing call load on hasNext() drastically in nested chained iterator scenarios. Before this change, the call-load on hasNext() grew exponentially with the number of nested IteratorChains. @ppkarwasz: I think, the fix is indeed this easy, please check. It raises the question, if the fix for ...
diff --git a/src/main/java/org/apache/commons/collections4/iterators/IteratorChain.java b/src/main/java/org/apache/commons/collections4/iterators/IteratorChain.java index 7c69f3f749..9ba4c933fb 100644 --- a/src/main/java/org/apache/commons/collections4/iterators/IteratorChain.java +++ b/src/main/java/org/apache/commons...
5
4
1
[{"id": "G0", "claim": "Even with the caching, each element still costs two hasNext() calls on the underlying iterators (one inside updateCurrentIterator(), one explicit in hasNext()), so the double-invocation performance problem remains; the code should be refactored so that hasNext() is invoked only once per element....
null
apache__commons-collections__665
apache/commons-collections
665
defect
41c23d70e58990d4d2eb87a6aac3da438861de62
355f42fa2713024cb0210b27f7391f8df34c262b
Add MultiValuedMap.inverted()
This PR adds an inverse method into the following multimap implementations: `ArrayListValuedHashMap` `ArrayListValuedLinkedHashMap` `HashSetValuedHashMap` `HashSetValuedLinkedHashMap` There is also an `inverseInto` method added to `MultiMapUtils` to handle the case of a heterogenous collector. As well as a ...
diff --git a/src/main/java/org/apache/commons/collections4/MultiMapUtils.java b/src/main/java/org/apache/commons/collections4/MultiMapUtils.java index ef7fc8c96cc..93c0d45ef48 100644 --- a/src/main/java/org/apache/commons/collections4/MultiMapUtils.java +++ b/src/main/java/org/apache/commons/collections4/MultiMapUtils....
10
9
3
[{"id": "G0", "claim": "The pull request fails the default Maven build and its checks; the author should run plain 'mvn' and fix the errors before pushing.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "unclear"}, {"id": "G1", "claim": "The new instance method should be named inverted() in...
null
apache__commons-imaging__301
apache/commons-imaging
301
defect
038666a450fbcb7388407807191047855d3601b2
a4983f3fde28063ab3f652921cc69539a4fbca73
[IMAGING-355] Add option to skip reading GIF metadata
IMAGING-355 - Large animated GIF takes too much heap memory in getMetadata
diff --git a/src/main/java/org/apache/commons/imaging/formats/gif/GifImageParser.java b/src/main/java/org/apache/commons/imaging/formats/gif/GifImageParser.java index 7e48e656bc..fa3785208a 100644 --- a/src/main/java/org/apache/commons/imaging/formats/gif/GifImageParser.java +++ b/src/main/java/org/apache/commons/imagi...
1
1
1
[{"id": "G0", "claim": "The hard-coded true/false stopBeforeImageData argument to readFile should instead be exposed on GifImagingParameters (e.g. as stopReadingBeforeImageData) so client call sites can decide, and the change should come with unit tests.", "category": "design", "verdict": "supported", "priority": "P1",...
null
apache__commons-imaging__337
apache/commons-imaging
337
defect
459a54a7b2d7c8a53d2c263ab0d2b48398deded0
3813dced1c1a1f55e435c818e313c1f66350ae10
[IMAGING-337] Make ImageInfo state correct color type
This change addresses issues 337 and 361. 361 is redundant with 337. The ImageInfo for TIFF was giving the wrong ColorType value for some TIFF files (it was hardwired to RGB). I also made one unrelated cosmetic change on lines 619-626 where I fixed the indentation to match the Commons Imaging standard. A new JU...
diff --git a/src/main/java/org/apache/commons/imaging/formats/tiff/TiffImageParser.java b/src/main/java/org/apache/commons/imaging/formats/tiff/TiffImageParser.java index 5dd24bbfff..7638de76a4 100644 --- a/src/main/java/org/apache/commons/imaging/formats/tiff/TiffImageParser.java +++ b/src/main/java/org/apache/commons...
3
3
0
[{"id": "G0", "claim": "Remove the extra blank line between the last testSet entry and the closing brace of the array initializer.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Eliminate the unnecessary 'q' local variable in getValue and return the subst...
null
apache__commons-imaging__55
apache/commons-imaging
55
defect
deefaf6b9a5f4aeb5d7676b1dd83c4bd76870d72
f8435b08724eedeece26480e8b667689c02bf46d
[IMAGING-236] Add support to read multiple images from GIF
This PR adds support to read more than one image from a GIF file. It also allows reading of metadata needed for visualization (such as the offset for each image). I did not yet create a jira account but will do so for any future pull requests. I quickly dug into code as I got frustrated with an old [bug](https://stacko...
diff --git a/src/main/java/org/apache/commons/imaging/formats/gif/GifImageData.java b/src/main/java/org/apache/commons/imaging/formats/gif/GifImageData.java new file mode 100644 index 0000000000..1a6ea12f9c --- /dev/null +++ b/src/main/java/org/apache/commons/imaging/formats/gif/GifImageData.java @@ -0,0 +1,27 @@ +pack...
5
4
2
[{"id": "G0", "claim": "Travis reports checkstyle errors: an AvoidStarImport error for 'import java.awt.*;' and a RedundantModifier error for a redundant 'final' modifier in GifImageParser.java, which fail the build.", "category": "style", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "...
null
apache__commons-lang__1062
apache/commons-lang
1,062
defect
2b42b185f0d95592f9f314e7868189d323e170e1
ba99453e39adb5caefa0aad6d31074bd3725fbde
Syntax for optional tokens in DurationFormatUtils
Relatively simple low-impact implementation of optional tokens within DurationFormatUtils. Useful when you need more human readable duration strings. Brackets [] are used to denote optional tokens. Optional tokens are only printed if non-zero. Optional literals are only printed if the preceding non-literal was non-z...
diff --git a/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java b/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java index da4b9769f68..83904b205b3 100644 --- a/src/main/java/org/apache/commons/lang3/time/DurationFormatUtils.java +++ b/src/main/java/org/apache/commons/lang3/time/Dura...
3
3
3
[{"id": "G0", "claim": "The parser should handle an unbalanced \"]\" and multiple \"[\" or \"]\" characters instead of silently treating them as optional-block markers.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The optional-token support also a...
null
apache__commons-lang__1069
apache/commons-lang
1,069
defect
f4665d0bc604ed9bb1aae3c93e99d4eee5027c1a
089277774194b58df5f09a0b44e7b3d6c1d3a419
[LANG-1647] Add and ExceptionUtils.isChecked() and isUnchecked()
--created method in ExceptionUtils that checks if a given Throwable represents a checked exception. --created method in ExceptionUtils that checks if a given Throwable represents an unchecked exception.
diff --git a/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java b/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java index 08f038af920..b535bae7c80 100644 --- a/src/main/java/org/apache/commons/lang3/exception/ExceptionUtils.java +++ b/src/main/java/org/apache/commons/lang3/exception...
2
2
1
[{"id": "G0", "claim": "ConcurrentUtils (and elsewhere in Commons Lang) should reuse the new isChecked/isUnchecked APIs instead of duplicating existing code patterns, as the linked LANG-1647 issue describes.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": ...
null
apache__commons-lang__1096
apache/commons-lang
1,096
defect
255db44501865a41f9f4082e73ac085ab99eb4b5
d9ba517395b9d9b0e1fc0f7c33ebb1018491cbcb
Improve performance of StringUtils.isMixedCase()
The changes optimize the mixed-case detecting function in StringUtils.java by reducing redundant character property checks. The loop will now return early when both uppercase and lowercase are present, preventing further unnecessary operations. It also introduces a local variable to store the character being checked, r...
diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index fa92e285d50..88614bbaa80 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -3628,16 +3628,17 @@ public ...
2
2
1
[{"id": "G0", "claim": "The PR's claimed speed-up of StringUtils.isMixedCase is unsubstantiated, so a JMH benchmark should be added to the PR to show it is faster.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test file StringUtilsIsMixedCaseTe...
null
apache__commons-lang__1120
apache/commons-lang
1,120
defect
11d2deca1f53f43a1b0806dfbe6fdadbe96f275d
18ebf60aa2f554469704d6a5bd389884c828f7ef
Add method ConcurrentInitializer#isInitialized()
This is associated with https://issues.apache.org/jira/browse/LANG-1716 See also discussion on #1119 ------ This pull request adds a method `isInitialized()` to all implementations of ConcurrentInitializer. Here are the design decisions I made, and the rationales for them: * Using `NO_INIT` for `AtomicIni...
diff --git a/src/main/java/org/apache/commons/lang3/concurrent/AbstractConcurrentInitializer.java b/src/main/java/org/apache/commons/lang3/concurrent/AbstractConcurrentInitializer.java index 8e064a73f34..7786c805705 100644 --- a/src/main/java/org/apache/commons/lang3/concurrent/AbstractConcurrentInitializer.java +++ b/...
4
4
1
[{"id": "G0", "claim": "The NO_INIT sentinel field should be `static` so a new `Object` instance is not created for each new initializer instance.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The NO_INIT sentinel should be created with `new Object()` i...
null
apache__commons-lang__1128
apache/commons-lang
1,128
defect
5b5656a8b403fd91284b0d2acc893dac7ebd5c29
3d284657f503ef6b5ecf14ed629152c05c9b047c
LANG-1717: support RISC-V in ArchUtils
Add RISC-V support to ArchUtils and its dependency class, Processor.
diff --git a/src/main/java/org/apache/commons/lang3/ArchUtils.java b/src/main/java/org/apache/commons/lang3/ArchUtils.java index efc5b0a18f8..72d07fb1813 100644 --- a/src/main/java/org/apache/commons/lang3/ArchUtils.java +++ b/src/main/java/org/apache/commons/lang3/ArchUtils.java @@ -47,6 +47,8 @@ private static void i...
1
1
0
[{"id": "G0", "claim": "The new test constants RISCV64/RISCV32 should be renamed RISC_64/RISC_32 to follow the class's existing RISC_NUM-style naming convention.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__commons-lang__1140
apache/commons-lang
1,140
defect
c52fec6932b9f595e0a5ad22c18f561c228291a4
5793dee95d8aff7fd396c757398700e2b5af9d0b
[LANG-1721] Fix wrong number check that cause StringIndexOutOfBoundsException
https://issues.apache.org/jira/browse/LANG-1721 `NumberUtils.createNumber(String)` method implements lots of number checks to ensure the provided string is indeed a number. But there is a wrong conditional checking in the code, that could result in unexpected StringIndexOutOfBoundsException if a specially crafted in...
diff --git a/src/main/java/org/apache/commons/lang3/math/NumberUtils.java b/src/main/java/org/apache/commons/lang3/math/NumberUtils.java index 11da21db324..03e1b938a18 100644 --- a/src/main/java/org/apache/commons/lang3/math/NumberUtils.java +++ b/src/main/java/org/apache/commons/lang3/math/NumberUtils.java @@ -361,7 +...
1
1
1
[{"id": "G0", "claim": "The new testInvalidNumber test does not assert anything, so it should verify the expected NumberFormatException instead of just calling createNumber.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__commons-lang__1148
apache/commons-lang
1,148
defect
cb3cbd356feb56c002a8f7fa173a4e0b3cb9f919
f741cfe69316d43ae3818007623fe117cc630629
Address minor redundancies after code inspection
This time the focus is on unnecessary string concatenation and redundant local assignments.
diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index 19f13c597ad..bb52b383fe8 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -438,7 +438,7 @@ private sta...
10
8
0
[{"id": "G0", "claim": "The `dev` variable in chiSquare should be declared inside the for loop instead of left declared outside it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In testRandomStringUtilsHomog the `gen` variable should be declare...
null
apache__commons-lang__1201
apache/commons-lang
1,201
defect
3a1b5adfc284743c8d99724739e7d7fd13eb3ec5
af3112f9e35f50790e5a00e2e5fd1d7cee9cc9c2
StringUtils.stripAccents() should handle ligatures, UTF32 math blocks, etc.
Changed normalizer form to NFKD. See [Unicode Standard Annex 15](https://unicode.org/reports/tr15/) This fixes the issue for the most part. See additional tests in StringUtilsTrimStripTest.testStripAccents. This does not appear to fix LANG-1655
diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index 360bf848c75..20996dac08f 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -8135,12 +8135,11 @@ public ...
4
2
1
[{"id": "G0", "claim": "Inside StringUtils itself the null/empty check need not use the fully qualified name, i.e. StringUtils.isEmpty(input) should be isEmpty(input).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Javadoc is now wrong: it s...
null
apache__commons-lang__1215
apache/commons-lang
1,215
defect
8133410b1cc5a058b73ffcaa096c28c109ae9a36
547eded53f35cee5c50d92d78c97170a7d71ba3c
[LANG-1733] Add null-safe Consumers.accept() and Functions.apply()
JIRA Ticket: [LANG-1733](https://issues.apache.org/jira/projects/LANG/issues/LANG-1733?filter=allissues) Suggestion: Introduce null handling features working with with the java.util.function package, or more generally, with Java 8 lambdas. - It simplifies null handling by eliminating unnecessary steps such as us...
diff --git a/src/main/java/org/apache/commons/lang3/function/NullSafeOperations.java b/src/main/java/org/apache/commons/lang3/function/NullSafeOperations.java new file mode 100644 index 00000000000..2f51c767f7a --- /dev/null +++ b/src/main/java/org/apache/commons/lang3/function/NullSafeOperations.java @@ -0,0 +1,56 @@ ...
2
2
1
[{"id": "G0", "claim": "The null-safe accept/apply features should follow the pattern established by the Suppliers class and be implemented inside the existing Consumers and Functions classes instead of a new NullSafeOperations class.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
apache__commons-lang__1323
apache/commons-lang
1,323
defect
451ee1bf91168df0e26f57d39476b0ec6b32dfa6
2874dafd53ed4628faf8beea4a365fa4fd8a9602
Improve container detection by mimicking systemd
- [x] Read the [contribution guidelines](CONTRIBUTING.md) for this project. - [x] Run a successful build using the default [Maven](https://maven.apache.org/) goal with `mvn`; that's `mvn` on the command line by itself. - [x] Write unit tests that match behavioral changes, where the tests fail if the changes to the ...
diff --git a/src/main/java/org/apache/commons/lang3/RuntimeEnvironment.java b/src/main/java/org/apache/commons/lang3/RuntimeEnvironment.java index 66b93d86cb9..65571d95315 100644 --- a/src/main/java/org/apache/commons/lang3/RuntimeEnvironment.java +++ b/src/main/java/org/apache/commons/lang3/RuntimeEnvironment.java @@ ...
1
1
1
[{"id": "G0", "claim": "inContainer() should mimic SystemD's detect_container logic - checking the container environment variable of process 1 as opt-in (empty=false, non-empty=true, absent=continue) and only the /.dockerenv and /run/.containerenv files - with a link to the reference project in a comment.", "category":...
null
apache__commons-lang__1327
apache/commons-lang
1,327
defect
17ba8b9da6a87791446917250b3d92b6925cbff0
f74224a1d71985d6d9a1896e7ffbd43c58b40229
[StringUtils::indexOfAnyBut] redesign due to inconsistent/faulty behavior regarding UTF-16 surrogates
<strike>depends/stacked on #1326 (tests only)</strike> Both signatures of `StringUtils::indexOfAnyBut` currently behave inconsistently in matching UTF-16 supplementary characters and single UTF-16 surrogate characters (i.e. paired and unpaired surrogates), since they differ unnecessarily in their algorithmic impl...
diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index e78a13307a4..02aea5844d8 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -17,16 +17,21 @@ package or...
7
6
2
[{"id": "G0", "claim": "The pull request makes unnecessary changes - renaming method parameters and inlining the isEmpty()/null checks - that make it noisy and harder to review, and it should be kept to only the changes required to fix the bug.", "category": "maintainability", "verdict": "supported", "priority": "P2", ...
null
apache__commons-lang__1379
apache/commons-lang
1,379
defect
a511a163b579fdaafa81fb6ca908034d32291871
702ec009dfc78ba65110cbe4fee4c8433f187a94
[LANG-1772] Restrict size of cache to prevent overflow errors
https://issues.apache.org/jira/browse/LANG-1772 Added a length restriction to `RandomStringutils`, limiting the cache to 60M entries. Because of rejections the bitIndex in the underling cache can overflow when right shifting. Also added a test to verify the fix. This test takes quite a while to run, so if nece...
diff --git a/pom.xml b/pom.xml index b45bb43b67f..24542aa5451 100644 --- a/pom.xml +++ b/pom.xml @@ -110,7 +110,10 @@ </distributionManagement> <properties> - <argLine>-Xmx512m</argLine> + <heapSize>-Xmx512m</heapSize> + <extraArgs/> + <systemProperties/> + <argLine>${heapSize} ${extraArgs} ${sys...
5
4
2
[{"id": "G0", "claim": "The integer overflow of bitIndex in CachedRandomBits should instead be addressed by changing bitIndex to long and refactoring the cacheSize expression so it cannot overflow.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The ...
null
apache__commons-lang__1494
apache/commons-lang
1,494
defect
162575cc6727316621b3761ade5e51fac0f497dd
b5d0665dc3d6330a9173a9f4c68f1ac972bea331
ClassUtils now throws `IllegalArgumentException` when array is greater than JVM spec limit (255)
ClassUtils now throws `IllegalArgumentException` if a class name represents an array with more dimensions than the JVM spec allow, `255` Affects `ClassUtils` methods: - `getClass(ClassLoader, String, boolean)`, - `getClass(ClassLoader, String)`, - `getClass(String, boolean)`, - `getClass(String)` See also [...
diff --git a/src/main/java/org/apache/commons/lang3/ClassUtils.java b/src/main/java/org/apache/commons/lang3/ClassUtils.java index 2e811b4f4d4..055f8ea21f1 100644 --- a/src/main/java/org/apache/commons/lang3/ClassUtils.java +++ b/src/main/java/org/apache/commons/lang3/ClassUtils.java @@ -48,6 +48,8 @@ */ public clas...
2
1
0
[{"id": "G0", "claim": "The Javadoc for the new MAX_JVM_ARRAY_DIMENSION constant should link to the JVM spec sections (JVMS 4.4.1) defining the array-dimension limit.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The @throws Javadoc should be mor...
null
apache__commons-lang__1495
apache/commons-lang
1,495
defect
345bc18b46f1df7d9495eba119757c71fb9678da
3e34be24d5bb250f076079ce0d297ab60715cd56
Bugfix/class utils to canonical name length check
The class `ClassUtils` now throws `IllegalArgumentException` if a class name is > 65535. This affects: - `getClass(ClassLoader, String, boolean)`, - `ClassUtils.getClass(ClassLoader, String)`, - `ClassUtils.getClass(String, boolean)`, - `ClassUtils.getClass(String)` Before you push a pull request, review ...
diff --git a/src/main/java/org/apache/commons/lang3/ClassUtils.java b/src/main/java/org/apache/commons/lang3/ClassUtils.java index 38962488f41..7e138d79b19 100644 --- a/src/main/java/org/apache/commons/lang3/ClassUtils.java +++ b/src/main/java/org/apache/commons/lang3/ClassUtils.java @@ -49,9 +49,22 @@ public class Cl...
5
3
0
[{"id": "G0", "claim": "The new 65,535-character cap is too low for canonical names of deeply nested arrays, since a 255-dimension array adds one '[]' per dimension so the limit should be about MAX_CLASS_NAME_LENGTH + 2 * MAX_JVM_ARRAY_DIMENSION; the reviewer also suggests possibly setting the limit at 4095 and seeing ...
null
apache__commons-lang__1519
apache/commons-lang
1,519
defect
a917a66b1b74097875deed89a66b9b45e3f77e71
112c1b15256d83b7d3959ba7a1bb2d829e6d1718
[LANG-1707] Add ArrayUtils.concat methods for concatenating multiple arrays
Implementation of the [LANG-1707](https://issues.apache.org/jira/browse/LANG-1707) suggestion: added the concat methods to ArrayUtils for convenient concatenation of multiple arrays in a single call. - [x] Read the [contribution guidelines](CONTRIBUTING.md) for this project. - [x] Read the [ASF Generative Tooling G...
diff --git a/src/main/java/org/apache/commons/lang3/ArrayUtils.java b/src/main/java/org/apache/commons/lang3/ArrayUtils.java index abcb0373de4..4f1c82c2ac2 100644 --- a/src/main/java/org/apache/commons/lang3/ArrayUtils.java +++ b/src/main/java/org/apache/commons/lang3/ArrayUtils.java @@ -9305,6 +9305,262 @@ public stat...
5
5
1
[{"id": "G0", "claim": "The totalLength computation must short-circuit and throw an IllegalArgumentException as soon as it exceeds SAFE_MAX_ARRAY_LENGTH; Math.addExact() alone still allows totals above SAFE_MAX_ARRAY_LENGTH but below Integer.MAX_VALUE.", "category": "correctness", "verdict": "supported", "priority": "P...
null
apache__commons-lang__1559
apache/commons-lang
1,559
defect
037880852770c3124f8d61c2dbf2b31f34a75508
6f115f95060be48a519ed5e42770dd67c86494f1
[LANG-1810] Deprecate SOFT_MAX_ARRAY_LENGTH in favor of MAX_ARRAY_LENGTH
## Overview Addresses **LANG-1810** by transitioning the non-final field `SOFT_MAX_ARRAY_LENGTH` to a final constant. ## Changes - **Deprecation**: Marked `SOFT_MAX_ARRAY_LENGTH` as `@Deprecated`. - **New Constant**: Added `public static final int SAFE_ARRAY_LENGTH` as a safe alternative. ## Why To resolve th...
diff --git a/src/main/java/org/apache/commons/lang3/ArrayUtils.java b/src/main/java/org/apache/commons/lang3/ArrayUtils.java index 4369d4f7e03..1d2886ce6e9 100644 --- a/src/main/java/org/apache/commons/lang3/ArrayUtils.java +++ b/src/main/java/org/apache/commons/lang3/ArrayUtils.java @@ -194,9 +194,18 @@ public class A...
2
2
1
[{"id": "G0", "claim": "The @deprecated Javadoc on SOFT_MAX_ARRAY_LENGTH should instead read: \"This variable will be final in 4.0; to guarantee immutability now, use {@link #SAFE_MAX_ARRAY_LENGTH}.\"", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
apache__commons-lang__1572
apache/commons-lang
1,572
defect
1db59d54a7863943014c3d6ed12f17e88f5d05a3
c7f79c7a42f3e68bebfe9cb0a19fe7a8fb08bd89
StringUtils.abbreviate(String, String, int) contract violations
Added unit tests demonstrating incorrect behaviour of `StringUtils.abbreviate` on short strings (between `abbrevMarker.length + 1` and `abbrevMarker.length * 2`). The documentation states that the offset character will always appear somewhere in the result, but when an offset is applied to a short string, it may not...
diff --git a/src/test/java/org/apache/commons/lang3/StringUtilsAbbreviateTest.java b/src/test/java/org/apache/commons/lang3/StringUtilsAbbreviateTest.java index 8ef0cfc855c..ccd2ad21168 100644 --- a/src/test/java/org/apache/commons/lang3/StringUtilsAbbreviateTest.java +++ b/src/test/java/org/apache/commons/lang3/String...
2
2
0
[{"id": "G0", "claim": "The extra blank lines added in the tests are unnecessary since // comments already separate the cases, so remove them.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The existing unit tests for abbreviate-with-offset are ...
null
apache__commons-lang__1577
apache/commons-lang
1,577
defect
ac91ddd6ad1c09e0fadf0c6422bf04ba4aed37a9
66dcd5294b355de70af6758388737af527f7016e
Fix ClassNotFoundException message in ClassUtils.getClass(String)
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); yo...
diff --git a/src/main/java/org/apache/commons/lang3/ClassUtils.java b/src/main/java/org/apache/commons/lang3/ClassUtils.java index b4bfd4d22b0..5c2cf099d19 100644 --- a/src/main/java/org/apache/commons/lang3/ClassUtils.java +++ b/src/main/java/org/apache/commons/lang3/ClassUtils.java @@ -601,7 +601,7 @@ public static C...
1
1
1
[{"id": "G0", "claim": "Add unit tests to demonstrate the intent of the ClassNotFoundException message change and prevent regressions, since it is not clear the change actually alters the shown message.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__commons-lang__1591
apache/commons-lang
1,591
defect
cebde0312d37eb5b9f8efb1974ef322bdb25142c
52f321079a3f05c397ca552e430167976f3b6494
LANG-1818: Fix ClassUtils.getShortClassName(Class) to correctly handle $ in valid class names
This issue is tracked in https://issues.apache.org/jira/browse/LANG-1818 ## Problem `ClassUtils.getShortClassName(Class)` currently delegates to the string-based `getShortClassName(String)` using `cls.getName()`. The string-based method is inherently heuristic and, as documented, cannot reliably distinguish pa...
diff --git a/src/main/java/org/apache/commons/lang3/ClassUtils.java b/src/main/java/org/apache/commons/lang3/ClassUtils.java index 5c2cf099d19..42a2443521f 100644 --- a/src/main/java/org/apache/commons/lang3/ClassUtils.java +++ b/src/main/java/org/apache/commons/lang3/ClassUtils.java @@ -18,9 +18,11 @@ import java.l...
4
4
0
[{"id": "G0", "claim": "Inline the local variable `result` in the new test methods instead of assigning the call to it and asserting on it separately.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Javadoc of getShortClassName(Class) should ...
null
apache__commons-lang__1609
apache/commons-lang
1,609
defect
41ff88094519308750fdcca6b1f7525550bde55f
6266942d1cf44ab3cbd7df2f33cbd8f724237a6d
LANG-771 Fix DateUtils.ceiling increment on exact boundary
Fixes LANG-771. ### What Fixes an issue where DateUtils.ceiling() incorrectly increments a field when the input date is already aligned to the specified field boundary. ### Why Previously, calling ceiling() on a date at the boundary would advance the field even if no truncation was needed. This caused subtle ...
diff --git a/src/main/java/org/apache/commons/lang3/time/DateUtils.java b/src/main/java/org/apache/commons/lang3/time/DateUtils.java index f8abf1429b7..09e0998c8a4 100644 --- a/src/main/java/org/apache/commons/lang3/time/DateUtils.java +++ b/src/main/java/org/apache/commons/lang3/time/DateUtils.java @@ -1115,6 +1115,8 ...
5
3
2
[{"id": "G0", "claim": "The author should provide a reference (e.g. a tracking issue in the issue tracker) backing up the statement that StopWatchTest.testSuspend is a 'known' flaky test.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The author...
null
apache__commons-lang__186
apache/commons-lang
186
defect
1a1fc65b04bcbe2e95d0fa300fce110e1224906e
71d9e00d42b278ce9d216b33bf1a9c8606fbcb49
LANG-1252: rename isNumber, isCreatable. Accommodate for java 6 "+" handing.
Associated with: https://issues.apache.org/jira/browse/LANG-1252 @britter, do you have any thoughts on this. I think that it sufficiently covers the issue, but I wasn't sure about the mechanics about predicating functionality on java version. The main issue is that `new java.math.BigInteger("+2")` works for Java 1.7 a...
diff --git a/pom.xml b/pom.xml index 4d3110736f9..ee294398c77 100644 --- a/pom.xml +++ b/pom.xml @@ -191,6 +191,15 @@ <role>Java Developer</role> </roles> </developer> + <developer> + <name>Rob Tompkins</name> + <id>chtompki</id> + <email>chtompki@apache.org</email> + <timezo...
4
4
2
[{"id": "G0", "claim": "The Java 6 detection should use SystemUtils (or the upcoming extended JavaVersion) instead of the raw System.getProperty(\"java.version\") call.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR should not remove the ...
null
apache__commons-lang__336
apache/commons-lang
336
defect
c241b096d32f9ece918466f3614c143e8679dac5
2521d9619fe1f052ced8ea1107851ac98a1b7488
LANG-1402: Null/index safe get methods for ArrayUtils
@chtompki If this is deemed worthy or needs improvement - let me know.
diff --git a/src/main/java/org/apache/commons/lang3/ArrayUtils.java b/src/main/java/org/apache/commons/lang3/ArrayUtils.java index daf9596b9cd..c7f73fe75a4 100644 --- a/src/main/java/org/apache/commons/lang3/ArrayUtils.java +++ b/src/main/java/org/apache/commons/lang3/ArrayUtils.java @@ -8672,4 +8672,53 @@ public stati...
6
6
4
[{"id": "G0", "claim": "The new get methods return Object, so user code has to cast the return value to make use of it; the API should not force that cast.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A negative index should return the default value in...
null
apache__commons-lang__451
apache/commons-lang
451
defect
5e7d64d6b2719afb1e5f4785d80d24ac5a19a782
81343ac53f86234ac4ae9a7e557397a51c4a70c5
LANG-1485 : Add getters for lhs and rhs objects in DiffResult
As explained in the [JIRA ticket](https://issues.apache.org/jira/browse/LANG-1485) I add a getter for the `lhs` and `rhs` objects of the `DiffResult` Tests included
diff --git a/src/main/java/org/apache/commons/lang3/builder/DiffResult.java b/src/main/java/org/apache/commons/lang3/builder/DiffResult.java index d6d031c95e1..d790a85fc12 100644 --- a/src/main/java/org/apache/commons/lang3/builder/DiffResult.java +++ b/src/main/java/org/apache/commons/lang3/builder/DiffResult.java @@ ...
4
2
0
[{"id": "G0", "claim": "The Javadoc on the new getters should not wrap the first sentence in <p> tags.", "category": "documentation", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The getters' Javadoc sentences should end with a period, start with \"Gets ...\" instead of \"Retur...
null
apache__commons-lang__471
apache/commons-lang
471
defect
9b3b49036019c85b12cfaf82fd10c55e75554047
f873d0ac37bff96fe63e486b36f9d86d87561309
[LANG-1177] Added indexesOf methods and simplified removeAllOccurences
Based of the opened issue. Tests for indexesOf were also added.
diff --git a/src/main/java/org/apache/commons/lang3/ArrayUtils.java b/src/main/java/org/apache/commons/lang3/ArrayUtils.java index 0c8d75b2b74..06c513de1b0 100644 --- a/src/main/java/org/apache/commons/lang3/ArrayUtils.java +++ b/src/main/java/org/apache/commons/lang3/ArrayUtils.java @@ -3254,6 +3254,57 @@ public stati...
4
4
1
[{"id": "G0", "claim": "The newly provided indexesOf methods should have @since tags in their Javadoc.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In removeAllOccurences, the 'foundBits' local variable could be inlined instead of stored.", "cat...
null
apache__commons-lang__475
apache/commons-lang
475
defect
54afdb303535a62fe00e49e3ad5100ca9fc55d1e
b8339538e9845496d4959ba640efbf988ea328d4
LANG-1495 Add EnumUtils getEnum() methods with default values
Add Overloading Methods getEnum and getEnumIgnoreCase To EnumUtils
diff --git a/src/main/java/org/apache/commons/lang3/EnumUtils.java b/src/main/java/org/apache/commons/lang3/EnumUtils.java index 0ebca28ee6a..4b245f1d426 100644 --- a/src/main/java/org/apache/commons/lang3/EnumUtils.java +++ b/src/main/java/org/apache/commons/lang3/EnumUtils.java @@ -119,13 +119,29 @@ public static <E ...
1
1
0
[{"id": "G0", "claim": "Provide a @since tag for the new getEnum(enumClass, enumName, defaultEnum) method.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__commons-lang__477
apache/commons-lang
477
defect
8445d3a9911ec67f07b76c0c44cc4c8ac0c16178
ab3577177bfdab393e79a1e5015ff4352ffbc2a5
Lang 1463: StringUtils abbreviate returns String of length greater than maxWidth
added handling of abbrevMarker being an empty string
diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index fe2d78fecb7..a6e2bbfff5f 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -293,7 +293,6 @@ public stat...
2
2
0
[{"id": "G0", "claim": "Add spaces around the `>` operator in the new abbreviate marker condition.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use the class constant `EMPTY` instead of the hard-coded magic string `\"\"` in the abbreviate mark...
null
apache__commons-lang__529
apache/commons-lang
529
defect
bd147ae86c646cb6b03235ad924e35c42cec842c
b4556b0c845e49e64b759973332ee9f4faef4a51
[LANG-1545] CharSequenceUtils.regionMatches is wrong dealing with Georgian.
see details in tests. https://issues.apache.org/jira/browse/LANG-1545
diff --git a/src/main/java/org/apache/commons/lang3/CharSequenceUtils.java b/src/main/java/org/apache/commons/lang3/CharSequenceUtils.java index 58c04536e46..fdb91220bb2 100644 --- a/src/main/java/org/apache/commons/lang3/CharSequenceUtils.java +++ b/src/main/java/org/apache/commons/lang3/CharSequenceUtils.java @@ -294...
2
2
0
[{"id": "G0", "claim": "The test should be narrowed from a blanket 0-1000 character sweep to target the specific characters that are known to be wrong.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test's magic character values should be written in...
null
apache__commons-lang__680
apache/commons-lang
680
defect
bed6b1128d2cd89651aec0ba7e41e2625df38e23
8bb3703f828c61b891e5cb79c34f572051f958ff
[LANG-1544] MethodUtils.invokeMethod NullPointerException in case of null in args list
- Null guards in place to handle one or more nulls specified as one of the parameters of the method to invoke. - Check for an exact match of the actual parameter types against all of the methods on the class. This prevents picking an "upcasted" method (i.e. int specified but a method with a double is chosen). - Throw...
diff --git a/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java b/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java index 8f0db7153a4..5c2dfc8f4af 100644 --- a/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java +++ b/src/main/java/org/apache/commons/lang3/reflect/MethodUtils.java...
4
4
0
[{"id": "G0", "claim": "The IllegalStateException message hard-codes Linux-specific new-line characters; if new-lines are wanted they should be produced portably, e.g. with %n via String.format().", "category": "portability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Param...
null
apache__commons-lang__682
apache/commons-lang
682
defect
b4456352bcbe3672afba526ea143fca7a53f7843
ced8a0b0f78e80c906363a20027fdea2cf474b69
[LANG-1631] Add short circuits in CharSequenceUtils if a character is not defined
Crash when the the char to be searched value it's out of range >= '\u0000' <= '\uFFFF' Getting the next error --> `java.lang.IllegalArgumentException: Not a valid Unicode code point: 0xFFFFF936` Basically the problem is that when it is verified that the character to search is less than MIN_SUPPLEMENTARY_CODE_...
diff --git a/src/main/java/org/apache/commons/lang3/CharSequenceUtils.java b/src/main/java/org/apache/commons/lang3/CharSequenceUtils.java index 8681b7f98f5..a5a0afbe659 100644 --- a/src/main/java/org/apache/commons/lang3/CharSequenceUtils.java +++ b/src/main/java/org/apache/commons/lang3/CharSequenceUtils.java @@ -99,...
5
4
0
[{"id": "G0", "claim": "The pull request mixes the bug-fix change with unrelated -1-to-NOT_FOUND clean-ups, making it hard to find the new test, so the clean-ups should be kept out of this PR.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The n...
null
apache__commons-lang__74
apache/commons-lang
74
defect
102b75cd923c30fb81047211ea1eb0b12cfe1a43
fb7335ab163588fe6ee67ef26d3b3edad5cf4bd5
fix JsonToStringStyle
except number, boolean, Array and nested object structures, other types like char, String, Date etc. in java should be `appendAsString`. add method `appendDetail(StringBuffer buffer, String fieldName, char value)` to `JsonToStringStyle` modify `appendDetail(StringBuffer buffer, String fieldName, Object value)`
diff --git a/src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java b/src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java index 658556bfa09..1227018de6a 100644 --- a/src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java +++ b/src/main/java/org/apache/commons/lang3/builder/ToStringSt...
2
2
2
[{"id": "G0", "claim": "The new test file fails to compile on Travis because the java.util.Date import it needs is missing.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The new appendDetail logic quotes every non-Number/non-Boolean value as a stri...
null
apache__commons-lang__754
apache/commons-lang
754
defect
950ab130d616a67c39921b1d8c2c5b877ee8ad55
ea1eb5e3ecd3e689334050d890b8bbc5739c4445
LANG-1659 - Add null-safe ObjectUtils.isArray()
The idea it's have a method that determine whether the given object is an array. Change all the reference of `.getClass().isArray()` in favor of `ObjectUtils.isArray(value)`
diff --git a/src/main/java/org/apache/commons/lang3/AnnotationUtils.java b/src/main/java/org/apache/commons/lang3/AnnotationUtils.java index bc51037c7c2..ee7566127a2 100644 --- a/src/main/java/org/apache/commons/lang3/AnnotationUtils.java +++ b/src/main/java/org/apache/commons/lang3/AnnotationUtils.java @@ -232,7 +232,...
5
5
0
[{"id": "G0", "claim": "The return statement in the new isArray method need not wrap its expression in extra parentheses.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The HTML tags in the new isArray Javadoc should be closed.", "category": "do...
null
apache__commons-lang__766
apache/commons-lang
766
defect
a3a064587470d9ac3be469d0d6dd88f1b95dc669
fc5316df4c060c9dc58e9abcb86c150a4b9b7e14
LANG-1172: Support dash as a delimiter in locales
This pull request is a partial fix for [LANG-1172](https://issues.apache.org/jira/browse/LANG-1172) adding support for dashes as delimiters for locales as per [BCP47](https://tools.ietf.org/html/bcp47#section-4) thus enabling parsing of locales such as `en-GB` in addition to the previously supported (but not to spec) `...
diff --git a/src/main/java/org/apache/commons/lang3/LocaleUtils.java b/src/main/java/org/apache/commons/lang3/LocaleUtils.java index b57e3c04fe6..9cc48791321 100644 --- a/src/main/java/org/apache/commons/lang3/LocaleUtils.java +++ b/src/main/java/org/apache/commons/lang3/LocaleUtils.java @@ -248,7 +248,9 @@ private sta...
4
3
0
[{"id": "G0", "claim": "Introduce named constants (e.g. \"UNDERSCORE\") for the delimiter literals in parseLocale instead of inline underscore/dash literals.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In toLocale, use constants (or possibly ...
null
apache__commons-lang__78
apache/commons-lang
78
defect
8e7ea70a33ecb8db5207849ea6371b4a5a8ffd26
6f653f6bb82757963a87d725808c080109e7e3e8
Add ThreadUtils (2nd PR)
Add org.apache.commons.lang3.ThreadUtils which provide helper methods related to java.lang.Thread (2nd PR) This PR replaces https://github.com/apache/commons-lang/pull/61 ThreadUtils class exposes the following static methods: findThreadById(long) findThreadById(long, String) findThreadById(long, ThreadGroup) findThr...
diff --git a/src/main/java/org/apache/commons/lang3/ThreadUtils.java b/src/main/java/org/apache/commons/lang3/ThreadUtils.java new file mode 100644 index 00000000000..602facee94c --- /dev/null +++ b/src/main/java/org/apache/commons/lang3/ThreadUtils.java @@ -0,0 +1,459 @@ +/* + * Licensed to the Apache Software Foundat...
5
5
0
[{"id": "G0", "claim": "The NamePredicate is the same in every loop iteration of findThreadsByName, so only one instance is needed and it should be created once outside the for loop.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In findThreadById, ...
null
apache__commons-lang__869
apache/commons-lang
869
defect
90e0a9bb234683abb502a6b61f36848bb4d65aa6
7ba015d0b8c605af8c589ab086d4c932b48b2714
Add missing exception javadoc/tests for some null arguments
Hello! I added some missing javadoc for null arguments and wrote tests when they didn't exist. I tried to keep the diffs as small as possible and the sentences consistent. I will be happy to change anything if needed. Thanks.
diff --git a/src/main/java/org/apache/commons/lang3/ArrayUtils.java b/src/main/java/org/apache/commons/lang3/ArrayUtils.java index 033a2367cf9..75a1e0e446d 100644 --- a/src/main/java/org/apache/commons/lang3/ArrayUtils.java +++ b/src/main/java/org/apache/commons/lang3/ArrayUtils.java @@ -3790,6 +3790,7 @@ public static...
2
2
1
[{"id": "G0", "claim": "The javadoc this PR adds to ArrayUtils.isSorted says @throws IllegalArgumentException if {@code comparator == null}, but in git master the method throws a NullPointerException, so it should be worded as {@code comparator} is null instead of the code-like {@code comparator == null} form.", "categ...
null
apache__commons-lang__940
apache/commons-lang
940
defect
ef68684cb3d49888a0b8a7c94699afb9c56f63d3
825bc553b23377834334534dcad5d88886b2cf21
Deprecate getNanosOfMiili() method with typo and create proper getNanosOfMilli()
Same as [b16050](https://github.com/apache/commons-lang/pull/939/commits/b160500b936998ab11cce9e7e1159bf5d296cbc6) but without breaking compatibility.
diff --git a/src/main/java/org/apache/commons/lang3/time/DurationUtils.java b/src/main/java/org/apache/commons/lang3/time/DurationUtils.java index 5bf2ebbaed7..10eced865a9 100644 --- a/src/main/java/org/apache/commons/lang3/time/DurationUtils.java +++ b/src/main/java/org/apache/commons/lang3/time/DurationUtils.java @@ ...
2
2
0
[{"id": "G0", "claim": "Both calls (the deprecated getNanosOfMiili and the new getNanosOfMilli) should be tested explicitly, so the test method should be cloned so the deprecated method keeps its own test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
apache__commons-net__161
apache/commons-net
161
defect
5d1344062524e658969fe0e9230cf12be15a31e4
8349a596e30b3189ec4493d2190a34478e46622f
Add Base64 missing tests and documentation fixes
- Adds missing tests for Base64 decoding and encoding (example Base64 data comes from [Base64 - Wikipedia](https://en.wikipedia.org/wiki/Base64) and [RFC - 4648](https://datatracker.ietf.org/doc/html/rfc4648)) - Updates Base64 documentation to reflect code and fixes some typos FYI @garydgregory @kinow
diff --git a/src/main/java/org/apache/commons/net/util/Base64.java b/src/main/java/org/apache/commons/net/util/Base64.java index 46e18dd01..3a9fd50ab 100644 --- a/src/main/java/org/apache/commons/net/util/Base64.java +++ b/src/main/java/org/apache/commons/net/util/Base64.java @@ -114,10 +114,10 @@ public class Base64 {...
1
1
0
[{"id": "G0", "claim": "The new @return Javadoc on decode(byte[]) should read \"is {@code null}\" instead of \"is null\" (wrap null in a {@code} tag).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__commons-net__162
apache/commons-net
162
defect
dd0ae5d5892d06087f48b0b511233ac93c86296f
5fb7bceab199aea33939b985f26e19410c5325c2
Add FTPFile tests and fix Javadoc typos
- Fixed some typos in Javadoc and adjusted documentation to code - Replaced HTML snippets with Javadoc counterparts - Moved serialization-related methods under the "serialization comment" - Adds FTPFile tests FYI @kinow @garydgregory
diff --git a/src/main/java/org/apache/commons/net/ftp/FTPFile.java b/src/main/java/org/apache/commons/net/ftp/FTPFile.java index 1408e6017..a04c20422 100644 --- a/src/main/java/org/apache/commons/net/ftp/FTPFile.java +++ b/src/main/java/org/apache/commons/net/ftp/FTPFile.java @@ -60,9 +60,8 @@ public class FTPFile impl...
4
4
0
[{"id": "G0", "claim": "The PR should not move existing methods; the serialization methods should be put back in their original position so the file keeps its alphabetical (AB) method order.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new...
null
apache__commons-net__165
apache/commons-net
165
defect
876d69767fa313e05453c1b3a22db5f9022ac6cc
68a1404b8ca19bc8d5dfbe3656c310c57d4b191c
Add IMAPReply tests and documentation fixes
- Updates ImapReply::isContinuation documentation to reflect method contract - Fixes some Javadoc typos in AuthenticatingIMAPClient::AUTH_METHOD - Migrates IMAPTest to JUnit5 - Adds IMAPReply tests (all data for tests comes from [RFC-3501)](https://datatracker.ietf.org/doc/html/rfc3501)) I also wonder, can we may...
diff --git a/src/main/java/org/apache/commons/net/imap/AuthenticatingIMAPClient.java b/src/main/java/org/apache/commons/net/imap/AuthenticatingIMAPClient.java index 20d54208d..6758fce7c 100644 --- a/src/main/java/org/apache/commons/net/imap/AuthenticatingIMAPClient.java +++ b/src/main/java/org/apache/commons/net/imap/A...
2
1
0
[{"id": "G0", "claim": "Asks whether the `kate: indent...` editor-modeline comments in the source are necessary, implying they may be unnecessary and could be removed.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The pull request contains co...
null
apache__commons-net__166
apache/commons-net
166
defect
80d3d14c0239a6277468a275630a349c8c00d53e
68fc62b4e95326de1bb0ee48efff64d88f20607f
Add IMAP package tests, include junit-jupiter-params artifact
- Adds [junit-jupiter-params](https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-params) artifact - Adds tests for various IMAP package classes that do not require a real (or mock) IMAP server - Refactored IMAPReplyTest to use [ParameterizedTest](https://junit.org/junit5/docs/current/user-guide/#writi...
diff --git a/pom.xml b/pom.xml index c60e9f23c..a638c9c17 100644 --- a/pom.xml +++ b/pom.xml @@ -106,6 +106,11 @@ Supported protocols include: Echo, Finger, FTP, NNTP, NTP, POP3(S), SMTP(S), Tel <artifactId>junit-jupiter-engine</artifactId> <scope>test</scope> </dependency> + <...
1
1
0
[{"id": "G0", "claim": "The getter's Javadoc summary in IMAPCommand.java should read \"Gets ...\" to match the Javadoc convention used across Commons instead of \"Returns ...\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__commons-net__204
apache/commons-net
204
defect
cb42a71dc3a6ed2580cf5c52c48a731d6372eb72
c1e5fd18dd0e5ec7fea3ef10b612518ba8d73ea0
[NET-726] Add protected getters to FTPSClient
relates to https://issues.apache.org/jira/browse/NET-726 Aim is to make it easier to subclass FTPSClient. I have only added protected getters for some private fields, ones with primitive or String return types. This is enough for my use case. More can be added, if the consensus is to add more. I haven't change...
diff --git a/src/main/java/org/apache/commons/net/ftp/FTPSClient.java b/src/main/java/org/apache/commons/net/ftp/FTPSClient.java index 98457ac7c..c9aaf184f 100644 --- a/src/main/java/org/apache/commons/net/ftp/FTPSClient.java +++ b/src/main/java/org/apache/commons/net/ftp/FTPSClient.java @@ -1052,5 +1052,73 @@ protecte...
2
2
2
[{"id": "G0", "claim": "The PR needs tests added to prove that the new FTPSClient getter methods do the right job.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Returning the internal suites and protocols arrays from the new getters without making a de...
null
apache__commons-net__331
apache/commons-net
331
defect
1d55795f509a9f20849563ab9bef68dd30db93b7
6a8940a57994b83c0c6f1bf854f551b7cfc461b5
[NET-727] Enable accessing options map for TFTP request packet and allow using `blksize` option
relates to existing https://issues.apache.org/jira/browse/NET-727 This changes includes the mapping of options map in TFTPRequestPacket (according to RFC-2347) and allowing to use `blksize` (according to the RFC-2348) when doing a TFTP buffered send/receive.
diff --git a/src/main/java/org/apache/commons/net/tftp/TFTP.java b/src/main/java/org/apache/commons/net/tftp/TFTP.java index 63472345d..6fdf19002 100644 --- a/src/main/java/org/apache/commons/net/tftp/TFTP.java +++ b/src/main/java/org/apache/commons/net/tftp/TFTP.java @@ -112,6 +112,12 @@ public static final String get...
23
23
5
[{"id": "G0", "claim": "Fix the spelling of the field name `buffersInityialized`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "New public and protected elements should have a Javadoc @since tag, in this case for 3.12.0.", "category": "document...
null
apache__commons-net__391
apache/commons-net
391
defect
76c240b21eb0a89463be3ac6391d13e02790bfca
2972763966d8788f4ab0553ed10821987ef91bf7
[NET-741] Add subnet IPv6 handling
This PR adds `SubnetUtils6` to also support IPv6 CIDR notation, as the end user could possibly need handling not just the IPv4 stack. Moreover, I have added tests to cover this functionality accordingly.
diff --git a/src/main/java/org/apache/commons/net/examples/cidr/SubnetUtils6Example.java b/src/main/java/org/apache/commons/net/examples/cidr/SubnetUtils6Example.java new file mode 100644 index 000000000..35fd25d67 --- /dev/null +++ b/src/main/java/org/apache/commons/net/examples/cidr/SubnetUtils6Example.java @@ -0,0 +...
3
3
0
[{"id": "G0", "claim": "A test class or method should specifically test all the examples in RFC 5952.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Javadoc should point to RFC 5952.", "category": "documentation", "verdict": "supported", "priority":...
null
apache__cordova-android__1015
apache/cordova-android
1,015
defect
ce735256d3cd5e9329e93e354cb149590160aa10
cb5a0993ac94931db3501ecc1021123de54d4509
Remove unnecessary stuff
### Motivation and Context <!-- Why is this change required? What problem does it solve? --> <!-- If it fixes an open issue, please link to the issue here. --> Keep Cordova maintainable. ### Description <!-- Describe your changes in detail --> See individual commits. AFAICT no public interfaces are affecte...
diff --git a/LICENSE b/LICENSE index 292d876978..c2f944b422 100644 --- a/LICENSE +++ b/LICENSE @@ -200,68 +200,3 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - - ADDITIONAL LICEN...
2
1
0
[{"id": "G0", "claim": "The `which` package is still used, so removing its license section from LICENSE may be unwarranted.", "category": "documentation", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Keep the bin/clean_test.js script instead of deleting it, updating its paths t...
null
apache__cordova-android__1113
apache/cordova-android
1,113
defect
335b0f2575bdcb432583132f17b5f141c64e7c0b
cb7738465c8778fe79f569eff1822eefdbc31caa
Features/webp support for splashscreen
<!-- Please make sure the checklist boxes are all checked before submitting the PR. The checklist is intended as a quick reference, for complete details please see our Contributor Guidelines: http://cordova.apache.org/contribute/contribute_guidelines.html Thanks! --> ### Platforms affected Android ### ...
diff --git a/bin/templates/cordova/lib/prepare.js b/bin/templates/cordova/lib/prepare.js index ba68244859..a8e918ca5e 100644 --- a/bin/templates/cordova/lib/prepare.js +++ b/bin/templates/cordova/lib/prepare.js @@ -336,15 +336,27 @@ function updateSplashes (cordovaProject, platformResourcesDir) { if (resource....
4
4
2
[{"id": "G0", "claim": "Replace the webp if/else target-path branching added in updateSplashes with a single const expression that derives the destination name from the source extension, dropping the dangling `var targetPath;` declaration.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scop...
null
apache__cordova-android__1213
apache/cordova-android
1,213
defect
9c165cb94ffe8dbacf1d1fede93142f2fd090f1f
f955903943d3b9d6db557966434657251b98de7f
feat: unify `create` default values & stop project name transform
<!-- Please make sure the checklist boxes are all checked before submitting the PR. The checklist is intended as a quick reference, for complete details please see our Contributor Guidelines: http://cordova.apache.org/contribute/contribute_guidelines.html Thanks! --> ### Platforms affected Android ### ...
diff --git a/README.md b/README.md index e787ff298d..3a9bee81aa 100644 --- a/README.md +++ b/README.md @@ -30,10 +30,10 @@ Cordova Android is an Android application library that allows for Cordova-based [Apache Cordova](https://cordova.apache.org) is a project of The Apache Software Foundation (ASF). -## Requires ...
4
3
1
[{"id": "G1", "claim": "The README should say `framework` instead of `CordovaLib`, since Android calls it framework and `CordovaLib` is confusing next to the cordova-lib CLI repo.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "The further-reading ...
null
apache__cordova-android__1214
apache/cordova-android
1,214
defect
9c165cb94ffe8dbacf1d1fede93142f2fd090f1f
09cef1da639670af2fc493c425d31ebb17a94a82
fix: display project name in Android Studio
<!-- Please make sure the checklist boxes are all checked before submitting the PR. The checklist is intended as a quick reference, for complete details please see our Contributor Guidelines: http://cordova.apache.org/contribute/contribute_guidelines.html Thanks! --> ### Platforms affected Android ### ...
diff --git a/bin/lib/create.js b/bin/lib/create.js index a38ecf97c2..7459a508b1 100755 --- a/bin/lib/create.js +++ b/bin/lib/create.js @@ -36,7 +36,6 @@ exports.copyScripts = copyScripts; exports.copyBuildRules = copyBuildRules; exports.writeProjectProperties = writeProjectProperties; exports.prepBuildFiles = prepBu...
3
3
2
[{"id": "G0", "claim": "The pull request needs to be rebased with master.", "category": "process", "verdict": "supported", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "Running `cordova build android` makes `rootProject.name` become `undefined` in the generated settings.gradle.", "category": "corre...
null
apache__cordova-android__1229
apache/cordova-android
1,229
defect
1b7874607e8c2c6ae092149379be80a590849674
44676ed54f9d9ffc44820b319a986521dd7031ae
feat: CORDOVA_JAVA_HOME env variable
<!-- Please make sure the checklist boxes are all checked before submitting the PR. The checklist is intended as a quick reference, for complete details please see our Contributor Guidelines: http://cordova.apache.org/contribute/contribute_guidelines.html Thanks! --> ### Platforms affected Android ### ...
diff --git a/bin/templates/cordova/lib/env/java.js b/bin/templates/cordova/lib/env/java.js index 6eed6f6009..8e613e49f6 100644 --- a/bin/templates/cordova/lib/env/java.js +++ b/bin/templates/cordova/lib/env/java.js @@ -73,8 +73,10 @@ const java = { } const javacPath = utils.forgivingWhichSync('javac...
3
3
0
[{"id": "G0", "claim": "The new test should assert the exact hard-coded value (the bin path of '/tmp/jdk') instead of deriving the expected PATH entry from env.JAVA_HOME, so it would still fail if the business logic changed and stopped using CORDOVA_JAVA_HOME in the correct way.", "category": "testing", "verdict": "sup...
null
apache__cordova-android__1606
apache/cordova-android
1,606
defect
2252c09a49f0e0ff6de40a7ceb988e61c330ffc7
0a1fd901acd494b17ef3b75198e1e13ab534abf8
fix: Gradle Args parsing
<!-- Please make sure the checklist boxes are all checked before submitting the PR. The checklist is intended as a quick reference, for complete details please see our Contributor Guidelines: http://cordova.apache.org/contribute/contribute_guidelines.html Thanks! --> ### Platforms affected Android / Gradl...
diff --git a/lib/build.js b/lib/build.js index ad71093b84..d90b825792 100644 --- a/lib/build.js +++ b/lib/build.js @@ -21,6 +21,7 @@ const path = require('path'); const fs = require('fs'); const nopt = require('nopt'); const untildify = require('untildify'); +const ARGVParser = require('string-argv'); const Adb =...
2
2
1
[{"id": "G0", "claim": "It would be good to add a test case covering the splitting of gradleArgs into multiple extraArgs tokens.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use the destructured import parseArgsStringToArgv from string-argv directly, ...
null
apache__cordova-android__445
apache/cordova-android
445
defect
2c3db1931055e0959faf801c7af7cfe32ea79ac0
8167646621d00d754f57b25d6645c32450656c0d
(android) Add unit tests for run and retryPromise
<!-- Please make sure the checklist boxes are all checked before submitting the PR. The checklist is intended as a quick reference, for complete details please see our Contributor Guidelines: http://cordova.apache.org/contribute/contribute_guidelines.html Thanks! --> ### Platforms affected Android ### W...
diff --git a/bin/templates/cordova/lib/retry.js b/bin/templates/cordova/lib/retry.js index 3ea8f1436e..00d413a917 100644 --- a/bin/templates/cordova/lib/retry.js +++ b/bin/templates/cordova/lib/retry.js @@ -27,21 +27,20 @@ var events = require('cordova-common').events; * Retry a promise-returning function a number of...
6
6
4
[{"id": "G0", "claim": "The tests fail on AppVeyor because its setup includes Node 4, which does not support the ES2015 features the new tests use; Node 4 should be removed from the AppVeyor setup and Node 10 added.", "category": "build", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "c...
null
apache__cordova-android__572
apache/cordova-android
572
defect
f1396c7aad169445204638df32d086730f6ad691
688bf03377b97327e29de4533dc2ed696319b1fc
Resolve issue with plugin target-dir="app*" subdirs
(subdirectories) such as "appco", with unit tests to verify correct operation Needed for @katzer plugins that use `de/appplant` subdirectory, for example: * <https://github.com/katzer/cordova-plugin-local-notifications>, with `target-dir="src/de/appplant/cordova/plugin/notification"` * <https://github.com/katzer/c...
diff --git a/bin/templates/cordova/lib/pluginHandlers.js b/bin/templates/cordova/lib/pluginHandlers.js index 794154b547..25890ba235 100644 --- a/bin/templates/cordova/lib/pluginHandlers.js +++ b/bin/templates/cordova/lib/pluginHandlers.js @@ -295,7 +295,7 @@ function generateAttributeError (attribute, element, id) { f...
2
2
0
[{"id": "G0", "claim": "The Test#006j install test title should say the target-dir includes \"app\" (the substring whose inclusion caused the bug) rather than \"appco\".", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Test#019j uninstall test title s...
null
apache__cordova-android__655
apache/cordova-android
655
defect
73692e60d81f49f148ba9f8b4bc230b2f4d968a4
32fd2a75406e4e66bef616fa62b5161b2d2791a9
Use custom Gradle properties to read minSdkVersion value from config.xml
Based on proposal by @erisu in <https://github.com/apache/cordova-android/issues/508#issuecomment-461672598>, along with a few more changes: - some minor fixes to GradlePropertiesParser configuration - quick fix to handle `minSdkVersion` correctly - updates from review - now limited to `minSdkVersion` setting I ...
diff --git a/bin/templates/cordova/lib/config/GradlePropertiesParser.js b/bin/templates/cordova/lib/config/GradlePropertiesParser.js index ac7f386346..b45c0a674f 100644 --- a/bin/templates/cordova/lib/config/GradlePropertiesParser.js +++ b/bin/templates/cordova/lib/config/GradlePropertiesParser.js @@ -46,11 +46,17 @@ c...
3
2
2
[{"id": "G0", "claim": "The gradle.properties key written from the android-minSdkVersion preference should be cdv-prefixed (`cdvMinSdkVersion`) to match what build.gradle reads, rather than the unprefixed `minSdkVersion`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"i...
null
apache__cordova-android__815
apache/cordova-android
815
defect
bd1697dbd27411d8b12d9ad0902babaaae327efa
6e511c7fe803b6cca7744a0e842ec91416f8fafc
Bugfix: Fixes clean command
<!-- Please make sure the checklist boxes are all checked before submitting the PR. The checklist is intended as a quick reference, for complete details please see our Contributor Guidelines: http://cordova.apache.org/contribute/contribute_guidelines.html Thanks! --> ### Platforms affected Android ### ...
diff --git a/bin/templates/cordova/lib/builders/ProjectBuilder.js b/bin/templates/cordova/lib/builders/ProjectBuilder.js index 35ce906b91..eee9d0e573 100644 --- a/bin/templates/cordova/lib/builders/ProjectBuilder.js +++ b/bin/templates/cordova/lib/builders/ProjectBuilder.js @@ -51,6 +51,8 @@ class ProjectBuilder { ...
1
1
0
[{"id": "G0", "claim": "Assign the `cmd` value to `buildCmd` already at its declaration (i.e. `let buildCmd = cmd;`) so the else blocks are removed and `buildCmd` is only overwritten in the debug and release cases.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__cordova-android__859
apache/cordova-android
859
defect
fcaab36484cd8a275178f13e4aaa85d14ad43a71
73a9c14c9905c4ecba58659c83e0755a5aac85ad
[Major] Removed unnecessary project name restriction
<!-- Please make sure the checklist boxes are all checked before submitting the PR. The checklist is intended as a quick reference, for complete details please see our Contributor Guidelines: http://cordova.apache.org/contribute/contribute_guidelines.html Thanks! --> ### Platforms affected Android ##...
diff --git a/bin/lib/create.js b/bin/lib/create.js index 3c4b83730c..31b0b5adae 100755 --- a/bin/lib/create.js +++ b/bin/lib/create.js @@ -209,7 +209,7 @@ function validatePackageName (package_name) { } /** - * Test whether a project name is acceptable for use as an android class. + * Test whether a project name is...
2
2
0
[{"id": "G0", "claim": "If the project name is no longer used as a Java class name, the CordovaActivity check is probably superfluous and validateProjectName degenerates to a truthiness check that could be removed altogether.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"...
null
apache__cordova-android__901
apache/cordova-android
901
defect
64ef13c6e0a6916686501736d5bd388b208be860
0a90447abbe7d1132bd849c4645609f9a5846b58
feat: add androidx support
### Motivation, Context, & Description Adds AndroidX Support Removes the need for the `cordova-plugin-androidx` plugin. closes: https://github.com/apache/cordova-android/issues/565 ### Testing - `npm t` - `cordova platform add` - `cordova build android` ### Checklist - [x] I've run the tests to see...
diff --git a/bin/templates/cordova/lib/config/GradlePropertiesParser.js b/bin/templates/cordova/lib/config/GradlePropertiesParser.js index 59d9eac3a9..147086f1fa 100644 --- a/bin/templates/cordova/lib/config/GradlePropertiesParser.js +++ b/bin/templates/cordova/lib/config/GradlePropertiesParser.js @@ -37,7 +37,11 @@ cl...
1
1
1
[{"id": "G0", "claim": "Because the existing test app (/test/app/build.gradle) still uses the old com.android.support:appcompat-v7, it is better to add a new test app for Android X (using androidx.appcompat) to exercise the AndroidX support this PR adds.", "category": "testing", "verdict": "supported", "priority": "P1"...
null
apache__cordova-android__910
apache/cordova-android
910
defect
6372ca3fac2462aa8a805c250c1bdd309ad5b346
3ec288446145b3c44fe6e00c8603baa3c1a1d8ce
refactor (eslint): use cordova-eslint
### Motivation and Context Code syntax cleanup https://github.com/apache/cordova/issues/142 ### Description * replace dependencies with @cordova/eslint-config * update eslint config * eslint corrections ### Testing - `npm t` - `npm run eslint` ### Checklist - [x] I've run the tests to see all...
diff --git a/.eslintrc.yml b/.eslintrc.yml index f6aae321cc..760eceb0b3 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -1,10 +1,27 @@ -root: true -extends: semistandard -rules: - indent: - - error - - 4 - camelcase: off - padded-blocks: off - operator-linebreak: off - no-throw-literal: off +# Licensed to ...
1
1
0
[{"id": "G0", "claim": "The eslint auto-fix in this PR unquoted only some of the version-string keys in version_string_to_api_level ('4.1' through '5.1') while leaving the rest quoted, so the reviewer asks why not all of these properties were changed.", "category": "maintainability", "verdict": "supported", "priority":...
null
apache__cordova-android__948
apache/cordova-android
948
defect
6402e7b75504bcfb9e52e0f3df4abe07c4cfef58
3285cbc7cf14c0243c7404eb73b55028a1c62a5a
Feature: JVM Args flag
<!-- Please make sure the checklist boxes are all checked before submitting the PR. The checklist is intended as a quick reference, for complete details please see our Contributor Guidelines: http://cordova.apache.org/contribute/contribute_guidelines.html Thanks! --> ### Platforms affected Android ### ...
diff --git a/bin/templates/cordova/Api.js b/bin/templates/cordova/Api.js index 3d80ddc37a..6de476ac1b 100644 --- a/bin/templates/cordova/Api.js +++ b/bin/templates/cordova/Api.js @@ -34,6 +34,7 @@ var PluginManager = require('cordova-common').PluginManager; var CordovaLogger = require('cordova-common').CordovaLogger; ...
3
2
0
[{"id": "G0", "claim": "Use a template string instead of string concatenation when emitting the unknown-memory-size-unit warning.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Move the KILOBYTE, MEGABYTE and GIGABYTE constants to something more...
null
apache__cordova-cli__290
apache/cordova-cli
290
defect
49f32e6edc05807d256a7ccebecfdfa769cd4b94
41f1ed352caf09bc932bbd6504902be24c39a047
CB-13055: removed nofetch option
<!-- Please make sure the checklist boxes are all checked before submitting the PR. The checklist is intended as a quick reference, for complete details please see our Contributor Guidelines: http://cordova.apache.org/contribute/contribute_guidelines.html Thanks! --> ### Platforms affected ### What doe...
diff --git a/doc/config.txt b/doc/config.txt index 3d24d3663..2b0b35f0f 100644 --- a/doc/config.txt +++ b/doc/config.txt @@ -24,12 +24,6 @@ Options Allows the user to set save to true or false when adding platforms or plugins. When false, platforms/plugins are not saved to `config.xml` and `package.json`. - fetch...
1
1
1
[{"id": "G0", "claim": "The test suite shows 10 failures in tests that still pass --nofetch now that the option is removed, so the tests need to be updated or removed.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
apache__cordova-cli__493
apache/cordova-cli
493
defect
11ce340a47719060b57bcfe18852b20f21a69c65
5e84f0aa9369151dfd440a8e7827bc151c6baaa6
refactor: eslint setup
### Description * replace eslint dependencies with @cordova/eslint-config * update eslint config * eslint corrections * combine testing and core configs ### Testing - `npm t` ### Checklist - [x] I've run the tests to see all new and existing tests pass
diff --git a/.eslintrc.yml b/.eslintrc.yml index f6aae321c..5e6a8804a 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -1,10 +1,23 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +#...
1
1
1
[{"id": "G0", "claim": "The renamed lint script must keep linting bin/cordova, otherwise it would no longer be linted.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
apache__cordova-plugin-file__165
apache/cordova-plugin-file
165
defect
f231e7c001b5fb79b96bbad71d465d79f6d25855
fdb0734b29b132cbee86b123371e0328bdf474cd
CB-10636 Add JSHint for plugins
[Jira issue](https://issues.apache.org/jira/browse/CB-10636) Fixed file.spec.115
diff --git a/.gitignore b/.gitignore index 9752a6f66..069949238 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ Thumbs.db *.user /.project +node_modules diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 000000000..edeb5791c --- /dev/null +++ b/.jshintrc @@ -0,0 +1,24 @@ +{ + "browser": tru...
4
2
0
[{"id": "G0", "claim": "Remove the commented-out `//var size = args[1];` line in src/firefoxos/FileProxy.js or add a message explaining why it is commented out rather than removed.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Address the TODO ...
null
apache__curator__11
apache/curator
11
defect
6e98562d8f0b15fc008ac4a0cd682837813a842a
27c70aab9a3d86ba9a8a20e3ae28ef5bed147300
CURATOR-114 - Modified the TestingServer to expose the restart() method
Modified the TestingServer to expose the restart() method on the underlying TestingZooKeeperServer. Modified all unit tests that were previously using the stop() and then recreate using existing temporary directory and port approach for restarting the server, so that they now just call the restart() method.
diff --git a/curator-client/src/test/java/org/apache/curator/BasicTests.java b/curator-client/src/test/java/org/apache/curator/BasicTests.java index b886f3c1de..d25ae611fa 100644 --- a/curator-client/src/test/java/org/apache/curator/BasicTests.java +++ b/curator-client/src/test/java/org/apache/curator/BasicTests.java @...
2
2
2
[{"id": "G0", "claim": "restart() should work from any state (like a Unix service doing stop-then-start) rather than being valid only if the server has previously been stopped.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new TestingServer(boolean ...
null
apache__curator__1250
apache/curator
1,250
defect
f0646f93c54a14546afcd2ff7ebca78546154fe9
3fba8a7b6446b1c39f71e4b56c2e46e19ef80701
GH-1246. Asynchronously initialize cache before reading II
This is an alternative, simpler implementation to https://github.com/apache/curator/pull/1247 with the same motivation, namely to solve https://github.com/apache/curator/issues/1246
diff --git a/curator-x-async/src/main/java/org/apache/curator/x/async/modeled/details/CachedModeledFrameworkImpl.java b/curator-x-async/src/main/java/org/apache/curator/x/async/modeled/details/CachedModeledFrameworkImpl.java index acccbfecf..791e04523 100644 --- a/curator-x-async/src/main/java/org/apache/curator/x/asyn...
3
2
1
[{"id": "G0", "claim": "In testNoNodeException the post-read assertion should call checkExists on the client itself (complete(client.checkExists().whenComplete(...))) instead of on client.child(asyncModel), which passes the read's AsyncStage where a child is expected.", "category": "testing", "verdict": "supported", "p...
null
apache__curator__1260
apache/curator
1,260
defect
e4a47562799de085c69a9dafa8d84a2ef54edc61
6ab7b1db17999d3661d3b4b0177e88c37da20489
Fix PersistentTtlNode not deleted if touch node is never created
This closes #1258 . Thanks to Kezhu Wang for the suggestion in the solution
diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentTtlNode.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentTtlNode.java index 2b2ba561a..93c2bd403 100644 --- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/...
5
5
0
[{"id": "G0", "claim": "Tests should be able to skip touch node creation via an overrideable method (e.g. a \"scheduleTouchTask\" method, similar to \"deleteNode\") rather than relying on timing or a testing-only member like the skipTouch flag.", "category": "design", "verdict": "supported", "priority": "P2", "scope": ...
null
apache__curator__1278
apache/curator
1,278
defect
3bc3ea1904c62b7e3e0b94a079a13fd88790df1b
8d3113755e0a0ee94a541aa973d633d0208ec29a
GH-1277 SafeNotifyService threads leak in CuratorFrameWorkImpl
CURATOR-495 introduced a new runSafeService field in CuratorFrameworkImpl class, and this field is either initialized by an external ExecutorService via the builder, or it is created internally within the class. In the CuratorFrameworkImpl#close method though, this Executor is never closed, so the threads that are o...
diff --git a/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java b/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java index ae4ba3a81..f1d8032f7 100644 --- a/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFramewor...
2
2
0
[{"id": "G0", "claim": "The close() path now has two maxCloseWaitMs waits (executorService and runSafeService) applied sequentially, and the reviewer is ok with it for now but asks for improvement in a separate PR.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1...
null
apache__curator__131
apache/curator
131
defect
4e4072b08be2da21a656bd6a328ffbfb2efa6906
ea643a2fda23065477e7cdf21c996239cc60d213
Major re-work of Watcher wrappers
Major re-work of Watcher wrappers. It really isn't necessary to keep a map of watchers. It was originally done so that watcher identity was maintained, but this can be achieved much easier using special-purpose hashCode() and equals() on NamespaceWatcher.
diff --git a/curator-framework/src/main/java/org/apache/curator/framework/WatcherRemoveCuratorFramework.java b/curator-framework/src/main/java/org/apache/curator/framework/WatcherRemoveCuratorFramework.java index 871b53c7b6..149289869d 100644 --- a/curator-framework/src/main/java/org/apache/curator/framework/WatcherRem...
7
1
1
[{"id": "G0", "claim": "The @deprecated javadoc on the super declaration may no longer be the most accurate comment and should be updated to reflect that recipes must call newWatcherRemoveCuratorFramework() and removeWatchers() themselves.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope"...
null
apache__curator__140
apache/curator
140
defect
3d1fca23108fbb5840e544c3e68d9af2b71de949
f4dcec3e6f80616f76f428c25787ff3293273a5a
[CURATOR-310] Race in PersistentNode startup
This is a semi-punt but a reasonable one. The simple solution is for the client to call waitForInitialCreate() before calling setData(). So, now, setData() throws an exception if the initial create has not occurred.
diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentNode.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentNode.java index c472fdd3df..bf11f81efe 100644 --- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/Pers...
3
1
0
[{"id": "G0", "claim": "The new Preconditions.checkState in setData() may throw an exception that breaks legacy clients, depending on how they handle exceptions thrown from this method.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new contract (...
null
apache__curator__154
apache/curator
154
defect
eefdf8ee93ae9708ac52711e4981a2925bba2c40
f59f23c703815317d4ef1d39e2b815e402d1559b
[CURATOR-332] Internal watcher tracking for new WatcherRemoveCuratorFramework feature is not correct
Reworked WatcherRemovalManager. It now stores watchers only on successful operations. This is more like how ZK does it. Also, exists watcher must be stored when there is a NoNode result.
diff --git a/curator-framework/pom.xml b/curator-framework/pom.xml index d6575cc49e..1a658989db 100644 --- a/curator-framework/pom.xml +++ b/curator-framework/pom.xml @@ -88,4 +88,18 @@ </dependency> </dependencies> + <build> + <plugins> + <plugin> + <artifactId>maven...
1
1
0
[{"id": "G0", "claim": "The outstanding-counter bookkeeping in EnsembleTracker.reset() could also be formulated more safely: increment after the background call succeeds and do the decrement in a finally block.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__curator__157
apache/curator
157
defect
d27a70c283cfd2829b96147c8670a1e7dd59659e
ef36275585fb883bb54db5a1396c58bb42b9b25b
Long session timeout issue
Fix for issue where LOST events were created at 4/3 of the session timeout rather than at the end of session timeout.
diff --git a/curator-framework/src/main/java/org/apache/curator/framework/state/ConnectionStateManager.java b/curator-framework/src/main/java/org/apache/curator/framework/state/ConnectionStateManager.java index cbb8d167dd..c420a12d1f 100644 --- a/curator-framework/src/main/java/org/apache/curator/framework/state/Connec...
2
2
1
[{"id": "G0", "claim": "When startOfSuspendedEpoch is 0 the poll wait is the entire session timeout; a 50% factor (useSessionTimeoutMs / 2) should be applied instead, as waiting the full session time when there is no suspended state seems unsafe.", "category": "design", "verdict": "supported", "priority": "P1", "scope"...
null
apache__curator__202
apache/curator
202
defect
caf6406e94e2c398a6c1f69a1fe7b360bc14b172
127efd5ee1fc186b5027717119c953c85267f506
[CURATOR-391] Cannot use only Stat version to determine node change
Using only Stat version to note node change (for UPDATE event) is not enough. In a split brain if a node delete plus a recreate is missed, the Stat version can appear to be the same. So, when data is available in the cache, compare the data not the stat version
diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/PathChildrenCache.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/PathChildrenCache.java index 568d03d3dc..c39b2c7d78 100644 --- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cach...
2
1
1
[{"id": "G0", "claim": "The new change detection can miss a node that was deleted and recreated with the same data (no CHILD_UPDATED is fired), so the comparison should use a stronger signal such as mtime or mzxid instead of data-or-version.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"...
null
apache__curator__205
apache/curator
205
defect
87a145ca3346cd1bab8a4fbdc3b1d3d9fe237dc7
9b73d11bc03c6e37567e237e96c36cdf93e4ff66
[CURATOR-392] Fixing connection string construction for wildcard client addresses
The client address in Zookeeper can be a wildcard (0.0.0.0), and if this is used by Curator, it will attempt to create a new connection to 0.0.0.0 instead of the correct server address. It is also possible that no client address or port is set, which should be counted as invalid by Curator, since the appropriate inform...
diff --git a/curator-framework/src/main/java/org/apache/curator/framework/imps/EnsembleTracker.java b/curator-framework/src/main/java/org/apache/curator/framework/imps/EnsembleTracker.java index 7245ceb22f..97d8d8cbbb 100644 --- a/curator-framework/src/main/java/org/apache/curator/framework/imps/EnsembleTracker.java ++...
4
1
1
[{"id": "G0", "claim": "Skipping servers whose clientAddr is null drops addresses that are still valid, since a null clientAddr only means the optional client port address is absent.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The code should just ...
null
apache__curator__235
apache/curator
235
defect
15eb063fa22569e797f850fb8d60a0949f52fbf5
b01926d1be18775fa6d3255038e9267a32325479
[CURATOR-430] deletingChildrenIfNeeded maybe cannot delete children completely when multi-client delete concurrently
use `curatorFramework.delete().deletingChildrenIfNeeded().forPath(path)`, this sync api doesn't ignore the NoNodeException, causes the rest of children nodes will not be deleted perhaps. `zookeeper.getChildren(path, null)` maybe throw NoNodeException, if the path doesn't exist.
diff --git a/curator-client/src/main/java/org/apache/curator/utils/ZKPaths.java b/curator-client/src/main/java/org/apache/curator/utils/ZKPaths.java index 17fa913633..91e65eac77 100644 --- a/curator-client/src/main/java/org/apache/curator/utils/ZKPaths.java +++ b/curator-client/src/main/java/org/apache/curator/utils/ZK...
3
2
1
[{"id": "G0", "claim": "The pull request should include a test (something like the code posted in the issue), with TestFrameworkEdges.java suggested as the place for it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment added on the NoNodeExcep...
null
apache__curator__236
apache/curator
236
defect
15eb063fa22569e797f850fb8d60a0949f52fbf5
931f1de5c4f72b71e96ea2071add297194e053bd
CURATOR-431 - Fixed stat population during create
-The stat object was not being populated if the create failed due to the node already existing.
diff --git a/curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java b/curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.java index 11050f3cd5..f79658424c 100644 --- a/curator-framework/src/main/java/org/apache/curator/framework/imps/CreateBuilderImpl.j...
1
1
0
[{"id": "G0", "claim": "CreateBuilderImpl should use ZooKeeper's DataTree#copyStat() instead of hand-copying each stat field into storingStat.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
apache__curator__242
apache/curator
242
defect
d502dde1c4601b2abc6d831d764561a73316bf00
c49f037ce87ce527bc244a94b4d2d1160c9ef012
[CURATOR-443] CuratorFrameworkImpl may sleep in foreground even if inBackground is called
To avoid massive spinning, background operations are paused for 1 second when there is no connection. However, this can hurt performance terribly if background operations are queued, for example, prior to initial connection. This changes the behavior so that the sleeps are cleared when the connection is re-established....
diff --git a/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java b/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java index 7488793d24..c91758ae2c 100644 --- a/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFramew...
8
4
2
[{"id": "G0", "claim": "Removing slept operations from the DelayQueue and re-adding them to force a resort (and the sleep added earlier) might affect operation order, so more testing in that area is needed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai...
null
apache__curator__252
apache/curator
252
defect
f57206d6bd1744a71f7416438e010775f2e50adb
1e2a9061bfb38275e129cf491c080c5a29978233
[CURATOR-455] Curator's EnsembleProvider.getConnectionString() is not re-called once the session expiration has been injected
When the connection is lost client.getZookeeperClient().getZooKeeper() needs to be called periodically so that the ensemble provider may update the connection string, etc.
diff --git a/curator-framework/src/main/java/org/apache/curator/framework/state/ConnectionStateManager.java b/curator-framework/src/main/java/org/apache/curator/framework/state/ConnectionStateManager.java index 251baa98e2..0c8ddf8064 100644 --- a/curator-framework/src/main/java/org/apache/curator/framework/state/Connec...
1
1
1
[{"id": "G0", "claim": "There may be a race condition in the test: the CONNECTED event can fire before the connection-state listener is added because the client is started before the listener is registered.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null