mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-26 14:31:02 -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
|
* @return the origin of the error
|
||||||
*/
|
*/
|
||||||
public Set<File> getOrigin() {
|
public Set<File> getOrigin() {
|
||||||
HashSet<File> s = new HashSet<>();
|
if (origin == null)
|
||||||
s.add(origin);
|
return null;
|
||||||
return s;
|
else {
|
||||||
|
HashSet<File> os = new HashSet<>();
|
||||||
|
os.add(origin);
|
||||||
|
return os;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user