Skip to content

Commit

Permalink
Bug 582308 Add description information to snapshot history or details
Browse files Browse the repository at this point in the history
Find SpotBugs warnings

Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=582308
Change-Id: If03744c25b5c94cd4e4cca77eeeb9932c8c88fde
  • Loading branch information
ajohnson1 committed Nov 1, 2023
1 parent 0fd4438 commit 2801455
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public void partActivated(IWorkbenchPart part)
{
prefix = new File(input.getSnapshot().getSnapshotInfo().getPrefix());
}
else
else if (input != null)
{
IChangeListener l = new IChangeListener()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,10 +455,13 @@ private String getNotes(SnapshotInfo info)
}
else
{
// New location
String notes = getNotes(new File(pfx));
if (notes != null)
return notes;
if (pfx != null)
{
// New location
String notes = getNotes(new File(pfx));
if (notes != null)
return notes;
}
// Old location (might be the same)
return getNotes(new File(path));
}
Expand Down

0 comments on commit 2801455

Please sign in to comment.