mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-19 11:07:43 +00:00
Merge pull request #3521 from rcordovano/develop
Remove redundant NbBundle in Case class
This commit is contained in:
commit
fbf95526f2
@ -599,8 +599,8 @@ public class Case {
|
|||||||
*/
|
*/
|
||||||
try {
|
try {
|
||||||
return getOpenCase();
|
return getOpenCase();
|
||||||
} catch (NoCurrentCaseException e) {
|
} catch (NoCurrentCaseException ex) {
|
||||||
throw new IllegalStateException(NbBundle.getMessage(Case.class, "Case.getCurCase.exception.noneOpen"), e);
|
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.
|
* @throws NoCurrentCaseException if there is no open case.
|
||||||
*/
|
*/
|
||||||
@Messages({
|
|
||||||
"Case.NoCurrentCaseException.message=No open case available."
|
|
||||||
})
|
|
||||||
public static Case getOpenCase() throws NoCurrentCaseException {
|
public static Case getOpenCase() throws NoCurrentCaseException {
|
||||||
Case openCase = currentCase;
|
Case openCase = currentCase;
|
||||||
if (openCase == null) {
|
if (openCase == null) {
|
||||||
throw new NoCurrentCaseException(Case_NoCurrentCaseException_message());
|
throw new NoCurrentCaseException(NbBundle.getMessage(Case.class, "Case.getCurCase.exception.noneOpen"));
|
||||||
} else {
|
} else {
|
||||||
return openCase;
|
return openCase;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user