remove some unused var allocation in parser

pull/18/head
reger 9 years ago
parent 3d7dd9d3aa
commit d5330391de

@ -311,7 +311,6 @@ public class DCEntry extends MultiMapSolrParams {
public double getLat() {
String t = this.get("geo:lat");
if (t == null) t = this.get("geo:lat");
t = stripCDATA(t);
if (t == null) return 0.0d;
return Double.parseDouble(t);

@ -169,7 +169,7 @@ public class metadataImageParser extends AbstractParser implements Parser {
singleList(title), // title
author == null ? "" : author, // author
location.getHost(), // Publisher
new String[]{}, // sections
null, // sections
descriptions, // description
gpslon, gpslat, // location
imgInfotxt.toString(), // content text

@ -94,7 +94,7 @@ public class rssParser extends AbstractParser implements Parser {
singleList(item.getTitle()),
item.getAuthor(),
item.getCopyright(),
new String[0],
null,
item.getDescriptions(),
item.getLon(),
item.getLat(),

@ -96,7 +96,7 @@ public class sitemapParser extends AbstractParser implements Parser {
singleList(""),
"",
"",
new String[0],
null,
new ArrayList<String>(),
0.0f, 0.0f,
null,

@ -81,7 +81,6 @@ public class swfParser extends AbstractParser implements Parser {
String url = null;
String urlnr = null;
final String linebreak = System.getProperty("line.separator");
final String[] sections = null;
final List<String> abstrct = new ArrayList<String>();
//TreeSet images = null;
final List<AnchorURL> anchors = new ArrayList<AnchorURL>();
@ -100,7 +99,7 @@ public class swfParser extends AbstractParser implements Parser {
while ((urlStart = contents.indexOf("http://",urlEnd)) >= 0){
urlEnd = contents.indexOf(linebreak,urlStart);
url = contents.substring(urlStart,urlEnd);
urlnr = Integer.toString(++urls).toString();
urlnr = Integer.toString(++urls);
AnchorURL u = new AnchorURL(url);
u.setNameProperty(urlnr);
anchors.add(u);
@ -122,7 +121,7 @@ public class swfParser extends AbstractParser implements Parser {
replaceAll("\t"," ")), // title
"", // TODO: AUTHOR
"",
sections, // an array of section headlines
null, // an array of section headlines
abstrct, // an abstract
0.0f, 0.0f,
contents, // the parsed document text

Loading…
Cancel
Save