Skip to content
This repository was archived by the owner on Jun 11, 2023. It is now read-only.

Commit 42bd5b0

Browse files
committed
#84 [doc] Extend the example in the convention 'Key not found'.
1 parent d0d9a1d commit 42bd5b0

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,17 @@ If a `key` can't be found in the defined ResourceBundle then
312312
* the String pattern '<key>' will returned and
313313
* the following 'warning' message will be logged: `"Can't find key(%s) in resourcebundle. Return: %s"`
314314

315+
```java
316+
2019-04-19 22:36:34,708 WARN Can't find key(not.existing.key.in.existing.resourcebundle) in resourcebundle. Return: <not.existing.key.in.existing.resourcebundle> [DefaultI18NResourceBundle]
317+
java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key not.existing.key.in.existing.resourcebundle
318+
at java.util.ResourceBundle.getObject(ResourceBundle.java:450) ~[?:1.8.0_201]
319+
at java.util.ResourceBundle.getString(ResourceBundle.java:407) ~[?:1.8.0_201]
320+
at com.github.naoghuman.lib.i18n.internal.DefaultI18NResourceBundle.getMessage(DefaultI18NResourceBundle.java:96) [classes/:?]
321+
at com.github.naoghuman.lib.i18n.internal.DefaultI18NResourceBundleTest.getMessageWithResourceBundleThrowsMissingResourceException(DefaultI18NResourceBundleTest.java:110) [test-classes/:?]
322+
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_201]
323+
...
324+
```
325+
315326
```java
316327
public final class DefaultI18NResourceBundle implements I18NResourceBundle {
317328

release/Release_v0.7.2_2019-04-dd_HH-mm.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,12 @@ Lib-I18N is written in JavaFX, [Maven] and [NetBeans].
1414

1515

1616
#### Bug
17-
#83 [doc] Typo in first section in 'Examples'.
18-
#82 [doc] Typo in section 'Convention: Key not found'.
19-
#80 [doc] Typo in sub-section from 'Features'.
2017

2118

2219

2320
#### Feature
2421

2522

26-
2723
#### Enhancement
2824

2925

@@ -33,6 +29,10 @@ Lib-I18N is written in JavaFX, [Maven] and [NetBeans].
3329

3430

3531
#### Documentation
32+
#84 [doc] Extend the example in the convention 'Key not found'.
33+
#83 [doc] Typo in first section in 'Examples'.
34+
#82 [doc] Typo in section 'Convention: Key not found'.
35+
#80 [doc] Typo in sub-section from 'Features'.
3636

3737

3838

0 commit comments

Comments
 (0)