Merge pull request #3521 from rcordovano/develop

Remove redundant NbBundle in Case class
This commit is contained in:
Richard Cordovano 2018-03-06 11:48:20 -05:00 committed by GitHub
commit fbf95526f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -599,8 +599,8 @@ public class Case {
*/
try {
return getOpenCase();
} catch (NoCurrentCaseException e) {
throw new IllegalStateException(NbBundle.getMessage(Case.class, "Case.getCurCase.exception.noneOpen"), e);
} catch (NoCurrentCaseException ex) {
throw new IllegalStateException(NbBundle.getMessage(Case.class, "Case.getCurCase.exception.noneOpen"), ex);
}
}
@ -611,13 +611,10 @@ public class Case {
*
* @throws NoCurrentCaseException if there is no open case.
*/
@Messages({
"Case.NoCurrentCaseException.message=No open case available."
})
public static Case getOpenCase() throws NoCurrentCaseException {
Case openCase = currentCase;
if (openCase == null) {
throw new NoCurrentCaseException(Case_NoCurrentCaseException_message());
throw new NoCurrentCaseException(NbBundle.getMessage(Case.class, "Case.getCurCase.exception.noneOpen"));
} else {
return openCase;
}