Skip to content

Commit

Permalink
AUS-4238 Removed unused imports and vars
Browse files Browse the repository at this point in the history
  • Loading branch information
vjf committed Oct 17, 2024
1 parent 9b91b69 commit 62eb3ba
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ KnownLayer annotateLayer(String id) {
case "initialBBox": {
JSONArray bboxGeoJson = new JSONArray();

ArrayList x2 = (ArrayList) v1;
ArrayList x3 = (ArrayList) ((ArrayList) v1).get(0);
int len = x3.size();
if (len == 4) {
Expand Down Expand Up @@ -564,9 +563,6 @@ else if (cswKey.startsWith("serviceNames")) {
if (sk2.startsWith("options")) {
ArrayList x2 = (ArrayList) sv2;
x2.forEach((item) -> {
ArrayList x3 = (ArrayList) item;
String i1 = (String) x3.get(0);
String i2 = (String) x3.get(1);
filter.selectlist.options.add(item);
});
}
Expand All @@ -585,9 +581,6 @@ else if (cswKey.startsWith("serviceNames")) {
if (sk2.startsWith("options")) {
ArrayList x2 = (ArrayList) sv2;
x2.forEach((item) -> {
ArrayList x3 = (ArrayList) item;
String i1 = (String) x3.get(0);
String i2 = (String) x3.get(1);
filter.mandatorylist.options.add(item);
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public void doNVCLBoreholeViewCSVDownload(String serviceUrl,String typeName,
filterString = filter;
result = wfsService.downloadCSVByPolygonFilter(serviceUrl, typeName, filterString, maxFeatures);
// LJ filtering out records of nvclCollection == false
@SuppressWarnings("unused")
int totalReturnLine = nvclDataService.nvclCollectionFilter(result, outputStream);
//System.out.print(totalReturnLine);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import org.springframework.web.servlet.ModelAndView;

import org.apache.jena.rdf.model.Property;
import org.apache.jena.rdf.model.RDFNode;
import org.apache.jena.rdf.model.ResourceFactory;
import org.apache.jena.rdf.model.Selector;
import org.apache.jena.rdf.model.SimpleSelector;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import org.apache.http.params.HttpParams;
import org.auscope.portal.core.server.http.HttpClientResponse;

@SuppressWarnings("deprecation")
public class MyHttpResponse extends HttpClientResponse {
InputStream content;
int statusCode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,22 @@
package org.auscope.portal.server.web.controllers;

import java.util.Arrays;

import java.util.HashMap;
import java.util.List;

import java.util.Map;
import java.util.ArrayList;

import org.auscope.portal.core.services.VocabularyFilterService;
import org.auscope.portal.core.test.PortalTestClass;
import org.auscope.portal.server.web.controllers.VocabController;

import org.hamcrest.Matcher;
import org.jmock.Expectations;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.springframework.ui.ModelMap;

import org.springframework.web.servlet.ModelAndView;
import org.apache.jena.rdf.model.Literal;
import org.apache.jena.rdf.model.Model;
import org.apache.jena.rdf.model.ModelFactory;
import org.apache.jena.rdf.model.Property;
import org.apache.jena.rdf.model.Resource;
import org.apache.jena.rdf.model.Selector;
import org.apache.jena.rdf.model.SimpleSelector;
import org.auscope.portal.core.services.PortalServiceException;
import org.apache.jena.vocabulary.SKOS;

import au.gov.geoscience.portal.services.vocabularies.VocabularyLookup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@
import java.util.HashMap;
import java.util.List;

import org.auscope.portal.core.server.http.HttpServiceCaller;
import org.auscope.portal.core.services.CSWCacheService;
import org.auscope.portal.core.services.ElasticsearchService;
import org.auscope.portal.core.services.GoogleCloudMonitoringCachedService;
import org.auscope.portal.core.services.KnownLayerService;
import org.auscope.portal.core.services.PortalServiceException;
import org.auscope.portal.core.services.WMSService;
import org.auscope.portal.core.services.responses.csw.AbstractCSWOnlineResource;
import org.auscope.portal.core.services.responses.csw.CSWOnlineResourceImpl;
import org.auscope.portal.core.services.responses.csw.CSWRecord;
import org.auscope.portal.core.services.responses.stackdriver.ServiceStatusResponse;
Expand Down Expand Up @@ -49,7 +47,6 @@
public class TestKnownLayerServiceStatusMonitor extends PortalTestClass {

private GoogleCloudMonitoringCachedService mockStackDriverService = context.mock(GoogleCloudMonitoringCachedService.class);
private HttpServiceCaller mockHttpServiceCaller = context.mock(HttpServiceCaller.class);
private ElasticsearchService mockElasticsearchService = context.mock(ElasticsearchService.class);
private KnownLayerService knownLayerService;

Expand Down

0 comments on commit 62eb3ba

Please sign in to comment.