Remove extra context.aborts in various rest helpers

This commit is contained in:
Peter Dietz
2014-10-06 20:41:20 -04:00
parent 1c6ab765ba
commit 6b83de1b51
5 changed files with 0 additions and 21 deletions

View File

@@ -850,10 +850,6 @@ public class BitstreamResource extends Resource
{ {
processException("Something get wrong while finding bitstream. SQLException, Message:" + e, context); processException("Something get wrong while finding bitstream. SQLException, Message:" + e, context);
} }
finally
{
context.abort();
}
return bitstream; return bitstream;
} }
} }

View File

@@ -776,10 +776,6 @@ public class CollectionsResource extends Resource
{ {
processException("Something get wrong while finding collection(id=" + id + "). SQLException, Message: " + e, context); processException("Something get wrong while finding collection(id=" + id + "). SQLException, Message: " + e, context);
} }
finally
{
context.abort();
}
return collection; return collection;
} }
} }

View File

@@ -1089,10 +1089,6 @@ public class CommunitiesResource extends Resource
{ {
processException("Something get wrong while finding community(id=" + id + "). SQLException, Message:" + e, context); processException("Something get wrong while finding community(id=" + id + "). SQLException, Message:" + e, context);
} }
finally
{
context.abort();
}
return community; return community;
} }
} }

View File

@@ -1095,10 +1095,6 @@ public class ItemsResource extends Resource
{ {
processException("Something get wrong while finding item(id=" + id + "). SQLException, Message: " + e, context); processException("Something get wrong while finding item(id=" + id + "). SQLException, Message: " + e, context);
} }
finally
{
context.abort();
}
return item; return item;
} }
} }

View File

@@ -136,11 +136,6 @@ public class Resource
{ {
processException("Could not write usageEvent, ContextException. Message: " + e.getMessage(), context); processException("Could not write usageEvent, ContextException. Message: " + e.getMessage(), context);
} }
finally
{
context.abort();
}
} }
/** /**