Skip to content

Commit b94f1d6

Browse files
Spring has deprecated DeadlockLoserDataAccessException (#188)
Spring has deprecated DeadlockLoserDataAccessException, so use base class instead
1 parent 7da2645 commit b94f1d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

LDK/src/org/labkey/ldk/query/LookupValidationHelper.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.labkey.api.security.UserManager;
2020
import org.labkey.api.util.MemTracker;
2121
import org.labkey.api.util.PageFlowUtil;
22-
import org.springframework.dao.DeadlockLoserDataAccessException;
22+
import org.springframework.dao.PessimisticLockingFailureException;
2323

2424
import java.sql.SQLException;
2525
import java.util.ArrayList;
@@ -149,9 +149,9 @@ private Map<String, String> getAllowableValues(ColumnInfo ci)
149149

150150
return _allowableValueMap.get(name);
151151
}
152-
catch (DeadlockLoserDataAccessException e)
152+
catch (PessimisticLockingFailureException e)
153153
{
154-
_log.error("DeadlockLoserException in LookupValidationHelper for table: " + _table.getPublicSchemaName() + "." + _table.getPublicName(), e);
154+
_log.error("PessimisticLockingFailureException in LookupValidationHelper for table: " + _table.getPublicSchemaName() + "." + _table.getPublicName(), e);
155155
throw e;
156156
}
157157
}
@@ -190,7 +190,7 @@ public void cascadeUpdate(String targetSchema, String targetTable, String target
190190
}
191191

192192
QueryUpdateService qus = ti.getUpdateService();
193-
qus.updateRows(_user, _container, toUpdate, oldPKs, null, new HashMap<String, Object>());
193+
qus.updateRows(_user, _container, toUpdate, oldPKs, null, new HashMap<>());
194194
}
195195

196196
public boolean verifyNotUsed(String targetSchema, String targetTable, String targetField, Object val) throws SQLException

0 commit comments

Comments
 (0)