Skip to content

Commit efef691

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 26cf8ee commit efef691

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@ public Language init(Class clazz)
5151
}
5252
//-------------------------------------------------------------------------------------
5353
public String getMessage( String key )
54-
throws LanguageException
5554
{
5655
if( rb == null )
57-
throw new LanguageException("resourceBundle not initialized for "+(clazz==null?"null":clazz.getName() ) );
56+
return "resourceBundle not initialized for "+(clazz==null?"null":clazz.getName() );
5857

5958
return rb.getString(key);
6059
}

0 commit comments

Comments
 (0)