mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-25 22:18:48 -04:00
simplified the origin book keeping
This commit is contained in:
parent
12141c22b7
commit
1e64844442
@ -62,9 +62,13 @@ public class ExceptionWithOrigin extends Exception {
|
||||
* @return the origin of the error
|
||||
*/
|
||||
public Set<File> getOrigin() {
|
||||
HashSet<File> s = new HashSet<>();
|
||||
s.add(origin);
|
||||
return s;
|
||||
if (origin == null)
|
||||
return null;
|
||||
else {
|
||||
HashSet<File> os = new HashSet<>();
|
||||
os.add(origin);
|
||||
return os;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user