Skip to content

Commit 24026a6

Browse files
authored
Add KeyboardFriendlyDecimalFormatSymbols to public API
1 parent 799fb65 commit 24026a6

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010
- [Ruby] Minor cosmetic / CI changes for development (Nothing front-facing)
1111
- [Python] PEP 639 licence metadata specification ([#361](https://github.com/cucumber/cucumber-expressions/pull/361))
1212
- [Java] Add OSGi metadata
13+
### Added
14+
- [Java] class `KeyboardFriendlyDecimalFormatSymbols` is now `public` and can be used when creating a custom `Locale`-aware type transformation method ([#376](https://github.com/cucumber/cucumber-expressions/issues/376) [antagoony](https://github.com/antagoony))
1315

1416
### Removed
1517
- [Python] Remove support for end-of-life Python 3.8 and 3.9 ([#359](https://github.com/cucumber/cucumber-expressions/pull/359))

java/src/main/java/io/cucumber/cucumberexpressions/KeyboardFriendlyDecimalFormatSymbols.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package io.cucumber.cucumberexpressions;
22

3+
import org.apiguardian.api.API;
4+
35
import java.text.DecimalFormatSymbols;
46
import java.util.Locale;
57

@@ -8,9 +10,10 @@
810
* <p>
911
* Note quite complete, feel free to make a suggestion.
1012
*/
11-
class KeyboardFriendlyDecimalFormatSymbols {
13+
@API(status = API.Status.EXPERIMENTAL)
14+
public final class KeyboardFriendlyDecimalFormatSymbols {
1215

13-
static DecimalFormatSymbols getInstance(Locale locale) {
16+
public static DecimalFormatSymbols getInstance(Locale locale) {
1417
DecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance(locale);
1518

1619
// Replace the minus sign with minus-hyphen as available on most keyboards.

0 commit comments

Comments
 (0)