Skip to content

Commit 4e12b9b

Browse files
More cleanup
1 parent 7423e89 commit 4e12b9b

2 files changed

Lines changed: 4 additions & 18 deletions

File tree

elisa/src/org/labkey/elisa/actions/ElisaUploadWizardAction.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import org.labkey.api.data.DataRegion;
3030
import org.labkey.api.exp.ExperimentException;
3131
import org.labkey.api.exp.api.ExpProtocol;
32-
import org.labkey.api.exp.api.ExpRun;
3332
import org.labkey.api.exp.api.ExperimentService;
3433
import org.labkey.api.exp.property.DomainProperty;
3534
import org.labkey.api.query.PropertyValidationError;
@@ -117,7 +116,7 @@ public boolean executeStep(ElisaRunUploadForm form, BindException errors) throws
117116
}
118117

119118
@Override
120-
public ModelAndView getNextStep(ElisaRunUploadForm form, BindException errors) throws ServletException, SQLException, ExperimentException
119+
public ModelAndView getNextStep(ElisaRunUploadForm form, BindException errors) throws ExperimentException
121120
{
122121
if (form.isResetDefaultValues() || errors.hasErrors())
123122
return getRunPropertiesView(form, !form.isResetDefaultValues(), false, errors);
@@ -230,7 +229,6 @@ public void validateStep(ElisaRunUploadForm form, Errors errors)
230229
@Override
231230
public boolean executeStep(ElisaRunUploadForm form, BindException errors) throws ServletException, SQLException, ExperimentException
232231
{
233-
ExpRun run;
234232
try
235233
{
236234
PlateConcentrationPropertyHelper helper = createConcentrationPropertyHelper(form.getContainer(), form.getProtocol(), form.getProvider());
@@ -263,7 +261,7 @@ public boolean executeStep(ElisaRunUploadForm form, BindException errors) throws
263261
}
264262

265263
@Override
266-
public ModelAndView getNextStep(ElisaRunUploadForm form, BindException errors) throws ServletException, SQLException, ExperimentException
264+
public ModelAndView getNextStep(ElisaRunUploadForm form, BindException errors) throws ExperimentException
267265
{
268266
if (form.isResetDefaultValues() || errors.hasErrors())
269267
return getConcentrationsView(form, !form.isResetDefaultValues(), errors);

flow/enginesrc/org/labkey/flow/analysis/chart/DensityPlot.java

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import org.jfree.chart.plot.*;
2020
import org.jfree.chart.axis.ValueAxis;
2121
import org.jfree.chart.axis.ColorBar;
22-
import org.jfree.chart.axis.NumberAxis;
2322
import org.jfree.chart.entity.EntityCollection;
2423
import org.jfree.chart.entity.ContourEntity;
2524
import org.jfree.ui.RectangleEdge;
@@ -50,7 +49,7 @@ public PolygonData(String label, Polygon poly)
5049
Polygon _poly;
5150
}
5251

53-
List _polyDatas = new ArrayList();
52+
List<PolygonData> _polyDatas = new ArrayList<>();
5453

5554
public DensityPlot(DensityDataset dataset, ValueAxis domainAxis, ValueAxis rangeAxis, ColorBar colorBar)
5655
{
@@ -157,9 +156,8 @@ public void render(Graphics2D g2, Rectangle2D dataArea, PlotRenderingInfo info,
157156
{
158157
super.render(g2, dataArea, info, crosshairState);
159158
g2.setColor(PlotFactory.COLOR_GATE);
160-
for (Iterator it = _polyDatas.iterator(); it.hasNext();)
159+
for (PolygonData data : _polyDatas)
161160
{
162-
PolygonData data = (PolygonData) it.next();
163161
drawPolygon(g2, dataArea, data);
164162
}
165163
}
@@ -248,14 +246,6 @@ public void contourRenderer(Graphics2D g2,
248246
Object antiAlias = g2.getRenderingHint(RenderingHints.KEY_ANTIALIASING);
249247
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF);
250248

251-
int[] xIndex = data.indexX();
252-
int[] indexX = data.getXIndices();
253-
boolean vertInverted = verticalAxis.isInverted();
254-
boolean horizInverted = false;
255-
if (horizontalAxis instanceof NumberAxis)
256-
{
257-
horizontalAxis.isInverted();
258-
}
259249
double[] arrX = data.getPossibleXValues();
260250
double[] arrY = data.getPossibleYValues();
261251
double[] arrTransX = getTranslatedValues(arrX, horizontalAxis, dataArea, RectangleEdge.BOTTOM);
@@ -338,8 +328,6 @@ else if (this.getMissingPaint() != null)
338328

339329
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, antiAlias);
340330

341-
return;
342-
343331
}
344332

345333
public void addPolygon(String label, Polygon poly)

0 commit comments

Comments
 (0)