Skip to content

Commit 74949be

Browse files
No need to use the ExpData to look itself up (#909)
1 parent 5d6c80b commit 74949be

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

flow/src/org/labkey/flow/persist/AttributeSetHelper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public static void doSave(AttributeSet attrs, User user, ExpData data, @Nullable
153153
List<List<?>> paramsList = new ArrayList<>();
154154
for (Map.Entry<String, String> entry : keywords.entrySet())
155155
{
156-
AttributeCache.Entry a = AttributeCache.KEYWORDS.byAttribute(c, entry.getKey());
156+
AttributeCache.Entry<?, ?> a = AttributeCache.KEYWORDS.byAttribute(c, entry.getKey());
157157
assert a != null : "parepareForSave should have created an entry";
158158
int preferredId = a.getAliasedId() == null ? a.getRowId() : a.getAliasedId();
159159
int originalId = a.getRowId();
@@ -174,7 +174,7 @@ public static void doSave(AttributeSet attrs, User user, ExpData data, @Nullable
174174
List<List<?>> paramsList = new ArrayList<>();
175175
for (Map.Entry<StatisticSpec, Double> entry : statistics.entrySet())
176176
{
177-
AttributeCache.Entry a = AttributeCache.STATS.byAttribute(c, entry.getKey());
177+
AttributeCache.Entry<?, ?> a = AttributeCache.STATS.byAttribute(c, entry.getKey());
178178
assert a != null : "parepareForSave should have created an entry";
179179
int preferredId = a.getAliasedId() == null ? a.getRowId() : a.getAliasedId();
180180
int originalId = a.getRowId();
@@ -213,7 +213,7 @@ public static void doSave(AttributeSet attrs, User user, ExpData data, @Nullable
213213
List<List<?>> paramsList = new ArrayList<>();
214214
for (Map.Entry<GraphSpec, byte[]> entry : graphs.entrySet())
215215
{
216-
AttributeCache.Entry a = AttributeCache.GRAPHS.byAttribute(c, entry.getKey());
216+
AttributeCache.Entry<?, ?> a = AttributeCache.GRAPHS.byAttribute(c, entry.getKey());
217217
assert a != null : "parepareForSave should have created an entry";
218218
int preferredId = a.getAliasedId() == null ? a.getRowId() : a.getAliasedId();
219219
int originalId = a.getRowId();

flow/src/org/labkey/flow/persist/FlowManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,9 +1029,9 @@ public void flowObjectModified()
10291029
}
10301030

10311031

1032-
public AttrObject createAttrObject(ExpData data, ObjectType type, URI uri)
1032+
public AttrObject createAttrObject(@NotNull ExpData data, ObjectType type, URI uri)
10331033
{
1034-
if (FlowDataHandler.instance.getPriority(ExperimentService.get().getExpData(data.getRowId())) != Handler.Priority.HIGH)
1034+
if (FlowDataHandler.instance.getPriority(data) != Handler.Priority.HIGH)
10351035
{
10361036
// Need to make sure the right ExperimentDataHandler is associated with this data file, otherwise, you
10371037
// won't be able to delete it because of the foreign key constraint from the flow.object table.

0 commit comments

Comments
 (0)