Trace Refactor #233
@ -85,8 +85,11 @@ public class TraceManager implements Listener {
|
||||
* @param id id of the trace
|
||||
* @return the trace with given id or null if no trace with id is found
|
||||
*/
|
||||
public Trace get(int id){
|
||||
return traces.getOrDefault(id, null);
|
||||
public Optional<Trace> get(int id){
|
||||
Trace ret = traces.get(id);
|
||||
if(traces.containsKey(id))
|
||||
return Optional.of(traces.get(id));
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
/** Methode to get all traces
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren