Hard to follow, exception removal and unused block (only from the now

removed exceptions from what I can tell)
This commit is contained in:
Adam
2015-05-10 16:42:47 -04:00
parent 2edf9d2117
commit fa3e9c0262
14 changed files with 181 additions and 8 deletions

View File

@@ -26,6 +26,12 @@ public class Exceptions
exceptions.add(new Exception(this));
}
public void remove(Exception e)
{
e.remove();
exceptions.remove(e);
}
public void write(DataOutputStream out) throws IOException
{
out.writeShort(exceptions.size());
@@ -38,9 +44,14 @@ public class Exceptions
return code;
}
public Collection<Exception> getHandlersForPc(int pc)
public List<Exception> getExceptions()
{
ArrayList<Exception> matches = new ArrayList<Exception>();
return exceptions;
}
public List<Exception> getHandlersForPc(int pc)
{
List<Exception> matches = new ArrayList<>();
for (Exception e : exceptions)
{