[Japi-cvs] SF.net SVN: japi: [480] libs/argparser/trunk/src/net/sf/japi/io/args/ BasicCommand.java
Status: Beta
Brought to you by:
christianhujer
From: <chr...@us...> - 2007-06-30 16:42:34
|
Revision: 480 http://svn.sourceforge.net/japi/?rev=480&view=rev Author: christianhujer Date: 2007-06-30 09:42:31 -0700 (Sat, 30 Jun 2007) Log Message: ----------- Added missing @NotNull / @Nullable annotations. Modified Paths: -------------- libs/argparser/trunk/src/net/sf/japi/io/args/BasicCommand.java Modified: libs/argparser/trunk/src/net/sf/japi/io/args/BasicCommand.java =================================================================== --- libs/argparser/trunk/src/net/sf/japi/io/args/BasicCommand.java 2007-06-30 16:34:35 UTC (rev 479) +++ libs/argparser/trunk/src/net/sf/japi/io/args/BasicCommand.java 2007-06-30 16:42:31 UTC (rev 480) @@ -71,7 +71,7 @@ * @see System#exit(int) * @see #setExiting(Boolean) */ - public Boolean isExiting() { + @NotNull public Boolean isExiting() { return exiting; } @@ -136,7 +136,7 @@ * That means overriding this method will not break any default behaviour of BasicCommand. * @return ResourceBundle for default locale. */ - public ResourceBundle getBundle() { + @NotNull public ResourceBundle getBundle() { return ownBundle; } @@ -146,7 +146,7 @@ * The default String for "helpHeader" is the empty String. * @return Help header. */ - public String getHelpHeader() { + @NotNull public String getHelpHeader() { return getString("helpHeader"); } @@ -156,7 +156,7 @@ * The default String for "helpFooter" is the empty String. * @return Help footer. */ - public String getHelpFooter() { + @NotNull public String getHelpFooter() { return getString("helpFooter"); } @@ -170,7 +170,7 @@ * @return String from the ResourceBundles. * @throws MissingResourceException In case all tries for retrieving a value for <var>key</var> failed. */ - private String getString(final String key) throws MissingResourceException { + @NotNull private String getString(@NotNull final String key) throws MissingResourceException { try { return getBundle().getString(key); } catch (final MissingResourceException e) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |