Skip to content

Commit 9d5b4d5

Browse files
author
oleg
committed
removed exception from getString() as it should be close to real string, it now returns a diagnostic message instead of real thing. This should be catchable in unit tests
1 parent efef691 commit 9d5b4d5

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/main/java/org/codehaus/plexus/i18n/Language.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@
44

55
public interface Language
66
{
7-
public static String ROLE = Language.class.getName();
7+
public static String ROLE = Language.class.getName();
88

9-
/** look for Messages.properties in the clazz package by default */
10-
public static final String DEFAULT_NAME = "Messages";
9+
/** look for Messages.properties in the clazz package by default */
10+
public static final String DEFAULT_NAME = "Messages";
1111

12-
public Language init();
13-
14-
public Language init( Class clazz );
12+
public Language init();
13+
14+
@SuppressWarnings("unchecked")
15+
public Language init( Class clazz );
1516

16-
public Language init( Class clazz, Locale locale );
17+
@SuppressWarnings("unchecked")
18+
public Language init( Class clazz, Locale locale );
1719

1820
public String getMessage( String key )
19-
throws LanguageException
2021
;
2122

2223
}

0 commit comments

Comments
 (0)