Gary Gregory
c94c3a0be5
Improve performance of StringUtils.isMixedCase() #1096
2023-08-16 13:25:16 -04:00
hduelme
19fa964de7
Improve performance of StringUtils.isMixedCase() ( #1096 )
...
* improve performance of 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, reducing the number of method calls to get the character. The end return statement is also simplified to return false, as the true condition has already been covered inside the loop.
* add test to prove better performance
* Add Apache license header to StringUtilsIsMixedCaseTest.java file
* Fix Checkstyle issues
---------
Co-authored-by: Gary Gregory <garydgregory@users.noreply.github.com>
2023-08-16 13:24:27 -04:00
Gary Gregory
78dedbd2f5
[Javadoc] Point to right getShortClassName flavor in Javadoc for relevant notes #1097
2023-08-15 13:50:38 -04:00
ljacqu
0701011fe9
(doc) Point to right getShortClassName flavor in Javadoc for relevant notes ( #1097 )
2023-08-15 13:48:27 -04:00
Gary Gregory
842f71dcc5
Remove duplicate entry
2023-08-15 07:49:05 -04:00
Gary Gregory
09bc83b55f
Hack to try to see if we can get GH builds to pass on Java 17
2023-08-14 20:14:34 -04:00
Gary Gregory
188e441a23
Hack to try to see if we can get GH builds to pass on Java 17
2023-08-14 19:20:22 -04:00
Gary Gregory
9053ee074c
Remove trailing whitespace
2023-08-14 19:10:14 -04:00
Gary Gregory
d09f802f98
Hack to try to see if we can get GH builds to pass on Java 17
2023-08-14 19:06:48 -04:00
Gary Gregory
f017b4260c
Make test more reproducible (not random)
2023-08-14 18:50:21 -04:00
Gary Gregory
787dab65fe
Make test more reproducible (not random)
2023-08-14 18:40:12 -04:00
Gary Gregory
c63ca2ce54
Hack to try to see if we can get GH builds to pass on Java 17
2023-08-14 18:24:15 -04:00
Gary Gregory
35e3828ad4
Hack to try to see if we can get GH builds to pass on Java 17
2023-08-14 17:53:03 -04:00
Gary Gregory
c0a659c9a0
Hack to try to see if we can get GH builds to pass on Java 17
2023-08-14 17:42:05 -04:00
Gary Gregory
23f363b329
Hack to try to see if we can get GH builds to pass on Java 17
2023-08-14 17:36:20 -04:00
Gary Gregory
a7158bdf60
Better assert message
2023-08-14 17:18:28 -04:00
Gary Gregory
1a4414ab3c
Better assert message
2023-08-14 15:14:45 -04:00
Gary Gregory
255db44501
Better assert message
2023-08-14 08:40:15 -04:00
Gary Gregory
cff5ccf8b0
Fix Incorrect Javadoc Description in Processor isAarch64() #1093
2023-08-14 08:27:50 -04:00
Sung Ho Yoon
0d4909fd86
(doc) Fix incorrect Javadoc description ( #1093 )
2023-08-14 08:26:17 -04:00
Gary Gregory
2f670821ab
Hack to try to see if we can get GH builds to pass
2023-08-14 08:25:28 -04:00
Gary Gregory
fa6eac6cf6
Hack to try to see if we can get GH builds to pass
2023-08-13 15:30:46 -04:00
Gary Gregory
bba01b04be
Hack to try to see if we can get GH builds to pass
2023-08-13 15:22:10 -04:00
Gary Gregory
5bad7ea2fc
Move new data source into 2nd place for better compatibility
2023-08-13 15:14:29 -04:00
Gary Gregory
bd5d715396
Don't fail Windows builds with LF EOL checking
2023-08-13 14:55:59 -04:00
Gary Gregory
834458af5b
See if there are other GH failures on different OSs
2023-08-13 14:38:19 -04:00
Gary Gregory
f572616834
Remove unused import
2023-08-13 14:26:40 -04:00
Gary Gregory
58c19375ef
Make test reproducible
2023-08-13 14:22:47 -04:00
Gary Gregory
880b85da4a
FastDateParser fails to parse some local "z" formatted strings
2023-08-11 19:15:23 -04:00
Gary Gregory
56e66879a8
Make test reproducible
2023-08-11 18:21:41 -04:00
Gary Gregory
9f4a554f9a
Try to fix GH build
2023-08-11 18:13:46 -04:00
Gary Gregory
565fc7601a
Fix error message
2023-08-11 17:32:10 -04:00
Gary Gregory
971efec0e1
Try to fix HG build
2023-08-11 17:21:23 -04:00
Gary Gregory
0df58255f1
Collapse string
2023-08-11 17:16:46 -04:00
Gary Gregory
768cb5abf7
Remove trailing whitespace
2023-08-11 17:02:23 -04:00
Gary Gregory
da7d218b00
Remove trailing whitespace
2023-08-11 16:56:02 -04:00
Gary Gregory
28cc1074b4
Make test reproducible
2023-08-11 15:12:32 -04:00
Gary Gregory
5f9df83530
Make test reproducible
2023-08-11 15:08:05 -04:00
Gary Gregory
16ead9d264
Make test reproducible
2023-08-11 14:48:59 -04:00
Gary Gregory
e624844f9c
Merge branch 'master' of https://gitbox.apache.org/repos/asf/commons-lang.git
2023-08-11 14:37:57 -04:00
Gary Gregory
8c92ba822e
Try to fix HG build
2023-08-11 14:37:24 -04:00
dependabot[bot]
bd13a72428
Bump github/codeql-action from 2.21.2 to 2.21.3 ( #1094 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 2.21.2 to 2.21.3.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](0ba4244466...5b6282e01c
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-11 12:37:25 -04:00
Gary Gregory
f4ad388201
Better test failure message
2023-08-10 20:57:13 -04:00
Gary Gregory
b2db782391
Try to avoid failures on GitHub
2023-08-10 20:35:33 -04:00
Gary Gregory
20db14299a
Comments and refactor array access
2023-08-10 20:35:30 -04:00
Gary Gregory
a1e94d167b
Reset test comment
2023-08-10 16:32:53 -04:00
Gary Gregory
556e02535c
Better test failure message
2023-08-10 16:17:27 -04:00
Gary Gregory
06607c60dc
Better test failure message
2023-08-10 15:26:45 -04:00
Gary Gregory
8c942d2a67
Better test failure message
2023-08-10 15:21:49 -04:00
Gary Gregory
7ca0ca2c55
Add invariant check in
...
FastDateParser.StrategyParser.StrategyParser(Calendar)
2023-08-10 14:29:39 -04:00