[jira] [Created] (JEXL-222) The ability to declare indexed property getter/setter in customised JexlArithmetic implementation
Dmitri Blinov created JEXL-222: -- Summary: The ability to declare indexed property getter/setter in customised JexlArithmetic implementation Key: JEXL-222 URL: https://issues.apache.org/jira/browse/JEXL-222 Project: Commons JEXL Issue Type: Improvement Affects Versions: 3.0 Reporter: Dmitri Blinov Priority: Minor At the moment we have the ability to declare a specific getter/setter method in customized JexlArithmetic class that will be used by Jexl engine when engine tries to get access to a property of some object. This is great extension point of the Jexl but I have come to a situation where I need the same technics to be applied to indexed properties. For example I'm scripting org.w3c.dom.Element object by setting its attributes via its {code}Element.setAttribute(java.lang.String name, java.lang.String value) {code} method. In Jexl I use standard indexed property access syntax like the following: {code} node.attribute.id = "12345"; {code} The problem lies with the last argument of the setAttribute method which is of String class. And for Jexl standard indexed property setter to work I should always remember that in script I need to cast specified property value to a string, which is error-prone and lacks, in my understanding, scripting easiness. I see the solution as to introduce custom indexed property setter in more generalized form, accepting Object type as a value so it could cast a value to String before calling {{Element.setAttribute}} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[GitHub] commons-lang issue #231: Evaluate Architecure
Github user coveralls commented on the issue: https://github.com/apache/commons-lang/pull/231 [![Coverage Status](https://coveralls.io/builds/10550474/badge)](https://coveralls.io/builds/10550474) Coverage decreased (-0.02%) to 94.513% when pulling **85ea6ce337b63392d37747a961e199ff6df5ad48 on Tomschi:master** into **d43e1d01981d321b85a8ccae788da4d818548dbe on apache:master**. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[jira] [Commented] (VFS-620) FileObject.moveTo(FileObject) API doesn't work well for a Linux FTP
[ https://issues.apache.org/jira/browse/VFS-620?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15906486#comment-15906486 ] Gary Gregory commented on VFS-620: -- Thank you for the patch. I'll take a look this week unless someone else gets there first. Gary > FileObject.moveTo(FileObject) API doesn't work well for a Linux FTP > --- > > Key: VFS-620 > URL: https://issues.apache.org/jira/browse/VFS-620 > Project: Commons VFS > Issue Type: Bug >Affects Versions: 2.1 > Environment: ubuntu vsftpd >Reporter: stevezhuang > Attachments: VFS-620.patch > > > FileObject.moveTo(FileObject) API doesn't work well for a Linux FTP, > especially for setting a user directory as its root directory case, > For example, for a ubuntu vsftpd, which is having "/home/user1" as its root > directory, when renaming "/test/test.txt" to "/test1/test1.txt", it will > throw an exception. > In this case, it should consider the workingDirectory(would be "/home/user1") > together and append it to the from/to path to make the API work. > Sample codes, > FileObject fileObject = null; > FileObject toFileObject = null; > try { > StandardFileSystemManager fsManager = new > StandardFileSystemManager(); > fsManager.init(); > FileSystemOptions fsOpts = new FileSystemOptions(); > FtpFileSystemConfigBuilder.getInstance().setPassiveMode(fsOpts, > true); > FtpFileSystemConfigBuilder.getInstance().setUserDirIsRoot(fsOpts, > true); > UserAuthenticator auth = new StaticUserAuthenticator(null, > "", ""); > > DefaultFileSystemConfigBuilder.getInstance().setUserAuthenticator(fsOpts, > auth); > fileObject = fsManager.resolveFile("ftp:// address>/test/test.txt", fsOpts); > System.out.println("File exists:" + fileObject.exists()); > toFileObject = fsManager.resolveFile("ftp:// address>/test1/test1.txt", fsOpts); > System.out.println("File exists:" + toFileObject.exists()); > if (!toFileObject.exists()) { > toFileObject.createFile(); > } > fileObject.moveTo(toFileObject); > } catch (FileSystemException ex) { > ex.printStackTrace(); > } finally { > if (fileObject != null) { > try { > fileObject.close(); > } catch (FileSystemException ex) { > } > } > if (toFileObject != null) { > try { > toFileObject.close(); > } catch (FileSystemException ex) { > } > } > } > And the output, > File exists:true > File exists:false > org.apache.commons.vfs2.FileSystemException: Could not rename > "ftp:///test/test.txt" to "ftp:// address>/test1/test1.txt". > at > org.apache.commons.vfs2.provider.AbstractFileObject.moveTo(AbstractFileObject.java:1902) > at TestFTP.main(TestFTP.java:59) > Caused by: org.apache.commons.vfs2.FileSystemException: Could not rename FTP > file "ftp:///test/test.txt" to "ftp:// address>/test1/test1.txt". > at > org.apache.commons.vfs2.provider.ftp.FtpFileObject.doRename(FtpFileObject.java:524) > at > org.apache.commons.vfs2.provider.AbstractFileObject.moveTo(AbstractFileObject.java:1887) -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Created] (LANG-1316) Deprecate classes/methods moved to commons-text
Pascal Schumacher created LANG-1316: --- Summary: Deprecate classes/methods moved to commons-text Key: LANG-1316 URL: https://issues.apache.org/jira/browse/LANG-1316 Project: Commons Lang Issue Type: Task Reporter: Pascal Schumacher Assignee: Pascal Schumacher Fix For: 3.6 Deprecate classes/methods moved to commons-text: * org.apache.commons.lang3.text.translate - every class * org.apache.commons.lang3.text - every class beside WordUtils * StringEscapeUtils - whole class * StringUtils: getLevenshteinDistance, getFuzzyDistance and getJaroWinklerSimilarity methods * ObjectUtils: identityToString(final StrBuilder builder, final Object object) method (StrBuilder was moved to commons-text) -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[GitHub] commons-lang pull request #255: LANG-1316: Deprecate classes/methods moved t...
GitHub user PascalSchumacher opened a pull request: https://github.com/apache/commons-lang/pull/255 LANG-1316: Deprecate classes/methods moved to commons-text * org.apache.commons.lang3.text.translate - every class * org.apache.commons.lang3.text - every class beside WordUtils * StringEscapeUtils - whole class * StringUtils: getLevenshteinDistance, getFuzzyDistance and getJaroWinklerSimilarity methods * ObjectUtils: identityToString(final StrBuilder builder, final Object object) method (StrBuilder was moved to commons-text) You can merge this pull request into a Git repository by running: $ git pull https://github.com/PascalSchumacher/commons-lang deprecated_classes_methods_move_to_commons_text Alternatively you can review and apply these changes as the patch at: https://github.com/apache/commons-lang/pull/255.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #255 commit 3140567b22c6e86aa92bb72186abb6a1a0179bab Author: pascalschumacher Date: 2017-03-12T13:53:40Z LANG-1316: Deprecate classes/methods moved to commons-text * org.apache.commons.lang3.text.translate - every class * org.apache.commons.lang3.text - every class beside WordUtils * StringEscapeUtils - whole class * StringUtils: getLevenshteinDistance, getFuzzyDistance and getJaroWinklerSimilarity methods * ObjectUtils: identityToString(final StrBuilder builder, final Object object) method (StrBuilder was moved to commons-text) --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[jira] [Commented] (LANG-1316) Deprecate classes/methods moved to commons-text
[ https://issues.apache.org/jira/browse/LANG-1316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15906527#comment-15906527 ] ASF GitHub Bot commented on LANG-1316: -- GitHub user PascalSchumacher opened a pull request: https://github.com/apache/commons-lang/pull/255 LANG-1316: Deprecate classes/methods moved to commons-text * org.apache.commons.lang3.text.translate - every class * org.apache.commons.lang3.text - every class beside WordUtils * StringEscapeUtils - whole class * StringUtils: getLevenshteinDistance, getFuzzyDistance and getJaroWinklerSimilarity methods * ObjectUtils: identityToString(final StrBuilder builder, final Object object) method (StrBuilder was moved to commons-text) You can merge this pull request into a Git repository by running: $ git pull https://github.com/PascalSchumacher/commons-lang deprecated_classes_methods_move_to_commons_text Alternatively you can review and apply these changes as the patch at: https://github.com/apache/commons-lang/pull/255.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #255 commit 3140567b22c6e86aa92bb72186abb6a1a0179bab Author: pascalschumacher Date: 2017-03-12T13:53:40Z LANG-1316: Deprecate classes/methods moved to commons-text * org.apache.commons.lang3.text.translate - every class * org.apache.commons.lang3.text - every class beside WordUtils * StringEscapeUtils - whole class * StringUtils: getLevenshteinDistance, getFuzzyDistance and getJaroWinklerSimilarity methods * ObjectUtils: identityToString(final StrBuilder builder, final Object object) method (StrBuilder was moved to commons-text) > Deprecate classes/methods moved to commons-text > --- > > Key: LANG-1316 > URL: https://issues.apache.org/jira/browse/LANG-1316 > Project: Commons Lang > Issue Type: Task >Reporter: Pascal Schumacher >Assignee: Pascal Schumacher > Fix For: 3.6 > > > Deprecate classes/methods moved to commons-text: > * org.apache.commons.lang3.text.translate - every class > * org.apache.commons.lang3.text - every class beside WordUtils > * StringEscapeUtils - whole class > * StringUtils: getLevenshteinDistance, getFuzzyDistance and > getJaroWinklerSimilarity methods > * ObjectUtils: identityToString(final StrBuilder builder, final Object > object) method (StrBuilder was moved to commons-text) -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[GitHub] commons-lang issue #255: LANG-1316: Deprecate classes/methods moved to commo...
Github user coveralls commented on the issue: https://github.com/apache/commons-lang/pull/255 [![Coverage Status](https://coveralls.io/builds/10551777/badge)](https://coveralls.io/builds/10551777) Coverage remained the same at 94.528% when pulling **3140567b22c6e86aa92bb72186abb6a1a0179bab on PascalSchumacher:deprecated_classes_methods_move_to_commons_text** into **31a9fa0cce769c976d74cdcb6e6ce8831793db7b on apache:master**. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[jira] [Commented] (LANG-1316) Deprecate classes/methods moved to commons-text
[ https://issues.apache.org/jira/browse/LANG-1316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15906528#comment-15906528 ] ASF GitHub Bot commented on LANG-1316: -- Github user coveralls commented on the issue: https://github.com/apache/commons-lang/pull/255 [![Coverage Status](https://coveralls.io/builds/10551777/badge)](https://coveralls.io/builds/10551777) Coverage remained the same at 94.528% when pulling **3140567b22c6e86aa92bb72186abb6a1a0179bab on PascalSchumacher:deprecated_classes_methods_move_to_commons_text** into **31a9fa0cce769c976d74cdcb6e6ce8831793db7b on apache:master**. > Deprecate classes/methods moved to commons-text > --- > > Key: LANG-1316 > URL: https://issues.apache.org/jira/browse/LANG-1316 > Project: Commons Lang > Issue Type: Task >Reporter: Pascal Schumacher >Assignee: Pascal Schumacher > Fix For: 3.6 > > > Deprecate classes/methods moved to commons-text: > * org.apache.commons.lang3.text.translate - every class > * org.apache.commons.lang3.text - every class beside WordUtils > * StringEscapeUtils - whole class > * StringUtils: getLevenshteinDistance, getFuzzyDistance and > getJaroWinklerSimilarity methods > * ObjectUtils: identityToString(final StrBuilder builder, final Object > object) method (StrBuilder was moved to commons-text) -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (LANG-1316) Deprecate classes/methods moved to commons-text
[ https://issues.apache.org/jira/browse/LANG-1316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pascal Schumacher updated LANG-1316: Description: Deprecate classes/methods moved to commons-text: * org.apache.commons.lang3.text.translate - every class * org.apache.commons.lang3.text - every class beside WordUtils (WordUtils is not in commons-text 1.0) * StringEscapeUtils - whole class * StringUtils: getLevenshteinDistance, getFuzzyDistance and getJaroWinklerSimilarity methods * ObjectUtils: identityToString(final StrBuilder builder, final Object object) method (StrBuilder was moved to commons-text) was: Deprecate classes/methods moved to commons-text: * org.apache.commons.lang3.text.translate - every class * org.apache.commons.lang3.text - every class beside WordUtils * StringEscapeUtils - whole class * StringUtils: getLevenshteinDistance, getFuzzyDistance and getJaroWinklerSimilarity methods * ObjectUtils: identityToString(final StrBuilder builder, final Object object) method (StrBuilder was moved to commons-text) > Deprecate classes/methods moved to commons-text > --- > > Key: LANG-1316 > URL: https://issues.apache.org/jira/browse/LANG-1316 > Project: Commons Lang > Issue Type: Task >Reporter: Pascal Schumacher >Assignee: Pascal Schumacher > Fix For: 3.6 > > > Deprecate classes/methods moved to commons-text: > * org.apache.commons.lang3.text.translate - every class > * org.apache.commons.lang3.text - every class beside WordUtils (WordUtils is > not in commons-text 1.0) > * StringEscapeUtils - whole class > * StringUtils: getLevenshteinDistance, getFuzzyDistance and > getJaroWinklerSimilarity methods > * ObjectUtils: identityToString(final StrBuilder builder, final Object > object) method (StrBuilder was moved to commons-text) -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Resolved] (NET-626) SubnetUtils#SubnetUtils - improved comment
[ https://issues.apache.org/jira/browse/NET-626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sebb resolved NET-626. -- Resolution: Fixed Fix Version/s: 3.7 URL: http://svn.apache.org/viewvc?rev=1786587&view=rev Log: NET-626 SubnetUtils#SubnetUtils - improved comment Modified: commons/proper/net/trunk/src/changes/changes.xml commons/proper/net/trunk/src/main/java/org/apache/commons/net/util/SubnetUtils.java > SubnetUtils#SubnetUtils - improved comment > -- > > Key: NET-626 > URL: https://issues.apache.org/jira/browse/NET-626 > Project: Commons Net > Issue Type: Improvement >Reporter: Makoto Sakaguchi >Priority: Minor > Fix For: 3.7 > > > Describe of CIDR value was more clearly. > https://github.com/apache/commons-net/pull/16 -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (LANG-1301) Moving apache-rat-plugin configuration into pluginManagement
[ https://issues.apache.org/jira/browse/LANG-1301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15906537#comment-15906537 ] Pascal Schumacher commented on LANG-1301: - So it does actually work? > Moving apache-rat-plugin configuration into pluginManagement > > > Key: LANG-1301 > URL: https://issues.apache.org/jira/browse/LANG-1301 > Project: Commons Lang > Issue Type: Improvement > Components: General >Affects Versions: 3.5 >Reporter: Karl Heinz Marbaise >Assignee: Pascal Schumacher >Priority: Minor > Fix For: 3.6 > > Attachments: apache-rat.patch > > > Currently the configuration for the {{apache-rat-plugin}} is done in the > reporting area which results in not being taken if you call {{mvn > apache-rat:check}}. This can simply being solved by moving this into a > {{pluginManagement}} area which will be used for both command line calling a > goal or running during the life cycle. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (LANG-1110) Implement HashSetvBitSetTest using JMH
[ https://issues.apache.org/jira/browse/LANG-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pascal Schumacher updated LANG-1110: Fix Version/s: (was: 3.6) > Implement HashSetvBitSetTest using JMH > -- > > Key: LANG-1110 > URL: https://issues.apache.org/jira/browse/LANG-1110 > Project: Commons Lang > Issue Type: Test > Components: lang.* >Reporter: Benedikt Ritter > Fix For: Patch Needed > > Attachments: HashSetvBitSetTest.java > > > HashSetvBitSetTest currently writes to Std out, which is bad practice for > unit tests. Since HashSetvBitSetTest is really a performance test and not a > unit test, we should reimplement it using OpenJMH. The results could then be > published on our website. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (LANG-1201) Add a TimeUnit-like classes for base 2 and base 10 digital conversions (bits, bytes, KB, MB, and so on)
[ https://issues.apache.org/jira/browse/LANG-1201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pascal Schumacher updated LANG-1201: Fix Version/s: (was: 3.6) > Add a TimeUnit-like classes for base 2 and base 10 digital conversions (bits, > bytes, KB, MB, and so on) > --- > > Key: LANG-1201 > URL: https://issues.apache.org/jira/browse/LANG-1201 > Project: Commons Lang > Issue Type: New Feature >Reporter: Gary Gregory >Assignee: Gary Gregory > > Add a TimeUnit-like class for digital conversions (bits, bytes, KB, MB, and > so on) -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (LANG-1268) Add methods for comparing numbers/compareables against each others to Validate
[ https://issues.apache.org/jira/browse/LANG-1268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pascal Schumacher updated LANG-1268: Fix Version/s: (was: 3.6) > Add methods for comparing numbers/compareables against each others to Validate > -- > > Key: LANG-1268 > URL: https://issues.apache.org/jira/browse/LANG-1268 > Project: Commons Lang > Issue Type: Improvement > Components: lang.* >Reporter: Benedikt Ritter > > Follow up to LANG-1134. The methods for comparing numbers against each others > have been removed in > http://git-wip-us.apache.org/repos/asf/commons-lang/commit/09686fad > Problems with the proposed APIs: > - we should use lessThan instead of smaller > - "object" suffix for methods taking object references as parameters > - different vs. notEquals -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (LANG-1227) Add XMLCharacter class
[ https://issues.apache.org/jira/browse/LANG-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pascal Schumacher updated LANG-1227: Fix Version/s: (was: 3.6) > Add XMLCharacter class > -- > > Key: LANG-1227 > URL: https://issues.apache.org/jira/browse/LANG-1227 > Project: Commons Lang > Issue Type: New Feature > Components: lang.* > Environment: Apache Maven 3.3.9 > (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T08:41:47-08:00) > Maven home: E:\Java\apache-maven-3.3.9\bin\.. > Java version: 1.8.0_91, vendor: Oracle Corporation > Java home: C:\Program Files\Java\jdk1.8.0_91\jre > Default locale: en_US, platform encoding: Cp1252 > OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos" >Reporter: Gary Gregory >Assignee: Gary Gregory > > Add XMLCharacter class. Helps toward [LANG-1184]. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (LANG-1304) Add a method in StringUtils to check for mixed case in string
[ https://issues.apache.org/jira/browse/LANG-1304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pascal Schumacher updated LANG-1304: Fix Version/s: (was: 3.6) > Add a method in StringUtils to check for mixed case in string > - > > Key: LANG-1304 > URL: https://issues.apache.org/jira/browse/LANG-1304 > Project: Commons Lang > Issue Type: New Feature > Components: lang.* >Reporter: Arshad Basha >Priority: Minor > > It would be nice to have a method that check whether the string has mixed > (lower and upper) case. > Examples: > StringUtils.isMixedCase("passWORD"); //true > StringUtils.isMixedCase("PASSWORD"); //false > StringUtils.isMixedCase("password"); //false -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (LANG-1272) Array shuffling
[ https://issues.apache.org/jira/browse/LANG-1272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pascal Schumacher updated LANG-1272: Fix Version/s: (was: 3.6) > Array shuffling > --- > > Key: LANG-1272 > URL: https://issues.apache.org/jira/browse/LANG-1272 > Project: Commons Lang > Issue Type: Improvement >Reporter: Emmanuel Bourg >Priority: Minor > > I'd like to suggest the addition of methods in ArrayUtils shuffling the > content of an array (Objects or primitives). This would be similar to the > {{java.util.Collections.shuffle()}} methods. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Reopened] (LANG-1270) Add StringUtils#isAnyNotEmpty and #isAnyNotBlank
[ https://issues.apache.org/jira/browse/LANG-1270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pascal Schumacher reopened LANG-1270: - > Add StringUtils#isAnyNotEmpty and #isAnyNotBlank > > > Key: LANG-1270 > URL: https://issues.apache.org/jira/browse/LANG-1270 > Project: Commons Lang > Issue Type: Improvement > Components: lang.* >Reporter: Pascal Schumacher >Assignee: Pascal Schumacher >Priority: Minor > -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (LANG-1270) Add StringUtils#isAnyNotEmpty and #isAnyNotBlank
[ https://issues.apache.org/jira/browse/LANG-1270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pascal Schumacher updated LANG-1270: Fix Version/s: (was: 3.6) > Add StringUtils#isAnyNotEmpty and #isAnyNotBlank > > > Key: LANG-1270 > URL: https://issues.apache.org/jira/browse/LANG-1270 > Project: Commons Lang > Issue Type: Improvement > Components: lang.* >Reporter: Pascal Schumacher >Assignee: Pascal Schumacher >Priority: Minor > -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (LANG-1270) Add StringUtils#isAnyNotEmpty and #isAnyNotBlank
[ https://issues.apache.org/jira/browse/LANG-1270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15906578#comment-15906578 ] Pascal Schumacher commented on LANG-1270: - Reverted in favor of [LANG-1293] because a committer did not support adding both. See discussion at [https://github.com/apache/commons-lang/pull/221] for details. If there is enough support we still may add these methods in the future. > Add StringUtils#isAnyNotEmpty and #isAnyNotBlank > > > Key: LANG-1270 > URL: https://issues.apache.org/jira/browse/LANG-1270 > Project: Commons Lang > Issue Type: Improvement > Components: lang.* >Reporter: Pascal Schumacher >Assignee: Pascal Schumacher >Priority: Minor > -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[GitHub] commons-lang pull request #197: ObjectUtils::xorNull added
Github user asfgit closed the pull request at: https://github.com/apache/commons-lang/pull/197 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] commons-lang pull request #221: Add IsAllEmpty and isAllBlank methods
Github user asfgit closed the pull request at: https://github.com/apache/commons-lang/pull/221 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[jira] [Updated] (LANG-1270) Add StringUtils#isAnyNotEmpty and #isAnyNotBlank
[ https://issues.apache.org/jira/browse/LANG-1270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pascal Schumacher updated LANG-1270: Assignee: (was: Pascal Schumacher) > Add StringUtils#isAnyNotEmpty and #isAnyNotBlank > > > Key: LANG-1270 > URL: https://issues.apache.org/jira/browse/LANG-1270 > Project: Commons Lang > Issue Type: Improvement > Components: lang.* >Reporter: Pascal Schumacher >Priority: Minor > -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Resolved] (LANG-1293) Add StringUtils#isAllEmpty and #isAllBlank methods
[ https://issues.apache.org/jira/browse/LANG-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pascal Schumacher resolved LANG-1293. - Resolution: Fixed Assignee: Pascal Schumacher Fix Version/s: 3.6 > Add StringUtils#isAllEmpty and #isAllBlank methods > -- > > Key: LANG-1293 > URL: https://issues.apache.org/jira/browse/LANG-1293 > Project: Commons Lang > Issue Type: Improvement > Components: lang.* >Reporter: Pascal Schumacher >Assignee: Pascal Schumacher >Priority: Minor > Fix For: 3.6 > > > as suggested in https://github.com/apache/commons-lang/pull/221 > A question from the discussion of the pull request: > {quote}What about the handling of empty array or null as a single parameter? > Is it right to return true in these cases?{quote} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (LANG-1310) MethodUtils.invokeMethod throws ArrayStoreException
[ https://issues.apache.org/jira/browse/LANG-1310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15906584#comment-15906584 ] Don Jeba commented on LANG-1310: The issue is because in the below line from method getVarArgs (in MethodUtils class) System.arraycopy(args, methodParameterTypes.length - 1, varArgsArray, 0, varArgLength); for the example shared in the ticket args is of type java.lang.Integer and varArgsArray is of type java.lang.Long and hence the exception ArrayStoreException is thrown. The reason for args to be of type java.lang.Integer is because at the top of the execution of invokeMethod, in the below line, when args is passed (which is nothing but 1 a primitive type) is considered as java.lang.Integer and not primitive type int final Class[] parameterTypes = ClassUtils.toClass(args); parameterTypes in this case is java.lang.Integer and not primitive type int. This is the inference made on this so far. Working on it further, will update the ticket with more details/fix. > MethodUtils.invokeMethod throws ArrayStoreException > --- > > Key: LANG-1310 > URL: https://issues.apache.org/jira/browse/LANG-1310 > Project: Commons Lang > Issue Type: Bug > Components: lang.reflect.* >Affects Versions: 3.5 >Reporter: Eickvonder > > Since release 3.5 and due to the changes of LANG-1115 an ArrayStoreException > occurs on MethodUtils.invokeMethod if using varargs arguments and smaller > types than the method defines (e.g. int vs long). > {code} > @Test > public void testMethodUtilsInvokeMethodVarArgs () throws Exception { > MyObject object = new MyObject (); > MethodUtils.invokeMethod (object, "doSomething", 1); > } > public static class MyObject { > public void doSomething (long... args) { > System.out.println ("doSomething"); > } > } > {code} > throws > {code} > java.lang.ArrayStoreException > at java.lang.System.arraycopy(Native Method) > at > org.apache.commons.lang3.reflect.MethodUtils.getVarArgs(MethodUtils.java:497) > at > org.apache.commons.lang3.reflect.MethodUtils.toVarArgs(MethodUtils.java:463) > at > org.apache.commons.lang3.reflect.MethodUtils.invokeMethod(MethodUtils.java:234) > at > org.apache.commons.lang3.reflect.MethodUtils.invokeMethod(MethodUtils.java:270) > at > org.apache.commons.lang3.reflect.MethodUtils.invokeMethod(MethodUtils.java:147) > {code} > In 3.4. a NoSuchMethodException had been thrown, but in 3.5 the code now > finds the matching method but fails then with above exception. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[GitHub] commons-lang pull request #254: Add checkstyle to the CI
Github user asfgit closed the pull request at: https://github.com/apache/commons-lang/pull/254 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] commons-lang issue #254: Add checkstyle to the CI
Github user PascalSchumacher commented on the issue: https://github.com/apache/commons-lang/pull/254 Thanks! --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] commons-lang issue #255: LANG-1316: Deprecate classes/methods moved to commo...
Github user coveralls commented on the issue: https://github.com/apache/commons-lang/pull/255 [![Coverage Status](https://coveralls.io/builds/10553210/badge)](https://coveralls.io/builds/10553210) Coverage remained the same at 94.528% when pulling **b1bb7443055db6a49d033af850db62e28580b012 on PascalSchumacher:deprecated_classes_methods_move_to_commons_text** into **15dcb423cf0af2b52c0b5cc60d5f0bce85dcacdd on apache:master**. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] commons-lang issue #255: LANG-1316: Deprecate classes/methods moved to commo...
Github user coveralls commented on the issue: https://github.com/apache/commons-lang/pull/255 [![Coverage Status](https://coveralls.io/builds/10553210/badge)](https://coveralls.io/builds/10553210) Coverage remained the same at 94.528% when pulling **b1bb7443055db6a49d033af850db62e28580b012 on PascalSchumacher:deprecated_classes_methods_move_to_commons_text** into **15dcb423cf0af2b52c0b5cc60d5f0bce85dcacdd on apache:master**. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[jira] [Commented] (LANG-1316) Deprecate classes/methods moved to commons-text
[ https://issues.apache.org/jira/browse/LANG-1316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15906627#comment-15906627 ] ASF GitHub Bot commented on LANG-1316: -- Github user coveralls commented on the issue: https://github.com/apache/commons-lang/pull/255 [![Coverage Status](https://coveralls.io/builds/10553210/badge)](https://coveralls.io/builds/10553210) Coverage remained the same at 94.528% when pulling **b1bb7443055db6a49d033af850db62e28580b012 on PascalSchumacher:deprecated_classes_methods_move_to_commons_text** into **15dcb423cf0af2b52c0b5cc60d5f0bce85dcacdd on apache:master**. > Deprecate classes/methods moved to commons-text > --- > > Key: LANG-1316 > URL: https://issues.apache.org/jira/browse/LANG-1316 > Project: Commons Lang > Issue Type: Task >Reporter: Pascal Schumacher >Assignee: Pascal Schumacher > Fix For: 3.6 > > > Deprecate classes/methods moved to commons-text: > * org.apache.commons.lang3.text.translate - every class > * org.apache.commons.lang3.text - every class beside WordUtils (WordUtils is > not in commons-text 1.0) > * StringEscapeUtils - whole class > * StringUtils: getLevenshteinDistance, getFuzzyDistance and > getJaroWinklerSimilarity methods > * ObjectUtils: identityToString(final StrBuilder builder, final Object > object) method (StrBuilder was moved to commons-text) -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (LANG-1316) Deprecate classes/methods moved to commons-text
[ https://issues.apache.org/jira/browse/LANG-1316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15906628#comment-15906628 ] ASF GitHub Bot commented on LANG-1316: -- Github user coveralls commented on the issue: https://github.com/apache/commons-lang/pull/255 [![Coverage Status](https://coveralls.io/builds/10553210/badge)](https://coveralls.io/builds/10553210) Coverage remained the same at 94.528% when pulling **b1bb7443055db6a49d033af850db62e28580b012 on PascalSchumacher:deprecated_classes_methods_move_to_commons_text** into **15dcb423cf0af2b52c0b5cc60d5f0bce85dcacdd on apache:master**. > Deprecate classes/methods moved to commons-text > --- > > Key: LANG-1316 > URL: https://issues.apache.org/jira/browse/LANG-1316 > Project: Commons Lang > Issue Type: Task >Reporter: Pascal Schumacher >Assignee: Pascal Schumacher > Fix For: 3.6 > > > Deprecate classes/methods moved to commons-text: > * org.apache.commons.lang3.text.translate - every class > * org.apache.commons.lang3.text - every class beside WordUtils (WordUtils is > not in commons-text 1.0) > * StringEscapeUtils - whole class > * StringUtils: getLevenshteinDistance, getFuzzyDistance and > getJaroWinklerSimilarity methods > * ObjectUtils: identityToString(final StrBuilder builder, final Object > object) method (StrBuilder was moved to commons-text) -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (LANG-1316) Deprecate classes/methods moved to commons-text
[ https://issues.apache.org/jira/browse/LANG-1316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15906654#comment-15906654 ] ASF GitHub Bot commented on LANG-1316: -- Github user coveralls commented on the issue: https://github.com/apache/commons-lang/pull/255 [![Coverage Status](https://coveralls.io/builds/10553417/badge)](https://coveralls.io/builds/10553417) Coverage increased (+0.04%) to 94.565% when pulling **fdc7d59574c854979e286d8e88143df06953a70e on PascalSchumacher:deprecated_classes_methods_move_to_commons_text** into **15dcb423cf0af2b52c0b5cc60d5f0bce85dcacdd on apache:master**. > Deprecate classes/methods moved to commons-text > --- > > Key: LANG-1316 > URL: https://issues.apache.org/jira/browse/LANG-1316 > Project: Commons Lang > Issue Type: Task >Reporter: Pascal Schumacher >Assignee: Pascal Schumacher > Fix For: 3.6 > > > Deprecate classes/methods moved to commons-text: > * org.apache.commons.lang3.text.translate - every class > * org.apache.commons.lang3.text - every class beside WordUtils (WordUtils is > not in commons-text 1.0) > * StringEscapeUtils - whole class > * StringUtils: getLevenshteinDistance, getFuzzyDistance and > getJaroWinklerSimilarity methods > * ObjectUtils: identityToString(final StrBuilder builder, final Object > object) method (StrBuilder was moved to commons-text) -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (LANG-1316) Deprecate classes/methods moved to commons-text
[ https://issues.apache.org/jira/browse/LANG-1316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15906653#comment-15906653 ] ASF GitHub Bot commented on LANG-1316: -- Github user coveralls commented on the issue: https://github.com/apache/commons-lang/pull/255 [![Coverage Status](https://coveralls.io/builds/10553417/badge)](https://coveralls.io/builds/10553417) Coverage increased (+0.04%) to 94.565% when pulling **fdc7d59574c854979e286d8e88143df06953a70e on PascalSchumacher:deprecated_classes_methods_move_to_commons_text** into **15dcb423cf0af2b52c0b5cc60d5f0bce85dcacdd on apache:master**. > Deprecate classes/methods moved to commons-text > --- > > Key: LANG-1316 > URL: https://issues.apache.org/jira/browse/LANG-1316 > Project: Commons Lang > Issue Type: Task >Reporter: Pascal Schumacher >Assignee: Pascal Schumacher > Fix For: 3.6 > > > Deprecate classes/methods moved to commons-text: > * org.apache.commons.lang3.text.translate - every class > * org.apache.commons.lang3.text - every class beside WordUtils (WordUtils is > not in commons-text 1.0) > * StringEscapeUtils - whole class > * StringUtils: getLevenshteinDistance, getFuzzyDistance and > getJaroWinklerSimilarity methods > * ObjectUtils: identityToString(final StrBuilder builder, final Object > object) method (StrBuilder was moved to commons-text) -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[GitHub] commons-lang issue #255: LANG-1316: Deprecate classes/methods moved to commo...
Github user coveralls commented on the issue: https://github.com/apache/commons-lang/pull/255 [![Coverage Status](https://coveralls.io/builds/10553417/badge)](https://coveralls.io/builds/10553417) Coverage increased (+0.04%) to 94.565% when pulling **fdc7d59574c854979e286d8e88143df06953a70e on PascalSchumacher:deprecated_classes_methods_move_to_commons_text** into **15dcb423cf0af2b52c0b5cc60d5f0bce85dcacdd on apache:master**. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] commons-lang issue #255: LANG-1316: Deprecate classes/methods moved to commo...
Github user coveralls commented on the issue: https://github.com/apache/commons-lang/pull/255 [![Coverage Status](https://coveralls.io/builds/10553417/badge)](https://coveralls.io/builds/10553417) Coverage increased (+0.04%) to 94.565% when pulling **fdc7d59574c854979e286d8e88143df06953a70e on PascalSchumacher:deprecated_classes_methods_move_to_commons_text** into **15dcb423cf0af2b52c0b5cc60d5f0bce85dcacdd on apache:master**. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---