Remove commented out logger calls

This commit is contained in:
mishako 2016-06-19 17:26:37 +02:00
parent ac7d9c83b5
commit a6a20c3012
8 changed files with 4 additions and 25 deletions

View file

@ -66,7 +66,6 @@ public class License {
License.lookupLicense.put(uri, this);
if (this.uri.endsWith("/")) {
// LOG.debug(uri.substring(0,this.uri.lastIndexOf("/")));
License.lookupLicense.put(uri.substring(0, this.uri.lastIndexOf("/")), this);
}
}

View file

@ -114,39 +114,31 @@ public class ContentItem implements Cloneable {
}
final ContentItem other = (ContentItem) obj;
if (contentFormat == null ? other.contentFormat != null : !contentFormat.equals(other.contentFormat)) {
// LOG.debug("format");
return false;
}
if (contentEncoding == null ? other.contentEncoding != null : !contentEncoding.equals(other.contentEncoding)) {
// LOG.debug("enc");
return false;
}
final String thisCV = contentValue.replaceAll(" xmlns=\"http://www.w3.org/1999/xhtml\"", "").trim();
;
final String thatCV = other.contentValue.replaceAll(" xmlns=\"http://www.w3.org/1999/xhtml\"", "").trim();
if (contentValue == null ? other.contentValue != null : !thisCV.equals(thatCV)) {
return false;
}
if (contentValueDOM != other.contentValueDOM && (contentValueDOM == null || !contentValueDOM.equals(other.contentValueDOM))) {
// LOG.debug("vd");
return false;
}
if (contentAbout == null ? other.contentAbout != null : !contentAbout.equals(other.contentAbout)) {
// LOG.debug("abt");
return false;
}
if (contentValueParseType == null ? other.contentValueParseType != null : !contentValueParseType.equals(other.contentValueParseType)) {
// LOG.debug("pt");
return false;
}
if (contentValueNamespace != other.contentValueNamespace
&& (contentValueNamespace == null || !contentValueNamespace.equals(other.contentValueNamespace))) {
// LOG.debug("ns");
return false;
}
if (contentResource == null ? other.contentResource != null : !contentResource.equals(other.contentResource)) {
// LOG.debug("res");
return false;
}
return true;

View file

@ -95,7 +95,6 @@ public class ContentModuleGenerator implements com.rometools.rome.io.ModuleGener
}
if (contentItem.getContentFormat() != null) {
// LOG.debug( "Format");
final Element format = new Element("format", CONTENT_NS);
final Attribute formatResource = new Attribute("resource", contentItem.getContentFormat(), RDF_NS);
format.setAttribute(formatResource);
@ -104,7 +103,6 @@ public class ContentModuleGenerator implements com.rometools.rome.io.ModuleGener
}
if (contentItem.getContentEncoding() != null) {
// LOG.debug( "Encoding");
final Element encoding = new Element("encoding", CONTENT_NS);
final Attribute encodingResource = new Attribute("resource", contentItem.getContentEncoding(), RDF_NS);
encoding.setAttribute(encodingResource);

View file

@ -83,10 +83,9 @@ public class ItemParser implements com.rometools.rome.io.ModuleParser {
values = values.size() == 0 ? values : new ArrayList<EntryValue>();
final List<Element> sorts = new ArrayList<Element>(element.getChildren("sort", ModuleParser.TEMP));
// LOG.debug("]]] sorts on element"+sorts.size());
for (final Element sort : sorts) {
final String dataType = sort.getAttributeValue("data-type");
// LOG.debug("Doing datatype "+dataType +" :: "+sorts.size());
if (dataType == null || dataType.equals(Sort.TEXT_TYPE)) {
final StringValue value = new StringValue();
value.setElement(sort.getAttributeValue("element"));
@ -145,7 +144,7 @@ public class ItemParser implements com.rometools.rome.io.ModuleParser {
throw new RuntimeException("Unknown datatype");
}
}
// LOG.debug("Values created "+values.size()+" from sorts" +sorts.size());
sle.setSortValues(values.toArray(new EntryValue[values.size()]));
return sle;

View file

@ -148,7 +148,7 @@ public class ModuleParser implements com.rometools.rome.io.ModuleParser {
continue;
}
// LOG.debug(e.getName());
final Element value = e.getChild(sort2.getElement(), sort2.getNamespace());
if (value == null) {
LOG.debug("No value for {} : {}", sort2.getElement(), sort2.getNamespace());

View file

@ -59,7 +59,7 @@ public class ModuleParserTest extends AbstractTestCase {
final SyndFeedInput input = new SyndFeedInput();
final SyndFeed feed = input.build(new File(super.getTestFile("data/bookexample.xml")));
final SimpleListExtension sle = (SimpleListExtension) feed.getModule(SimpleListExtension.URI);
// LOG.debug( sle );
assertEquals("list", sle.getTreatAs());
final Group[] groups = sle.getGroupFields();
assertEquals("genre", groups[0].getElement());

View file

@ -226,13 +226,6 @@ public class SSEParserTest extends AbstractTestCase {
}
}
// if (!foundEqual) {
// // show accumulated error messages
// for (Iterator mesgIter = messages.iterator(); mesgIter.hasNext();) {
// LOG.debug((String) mesgIter.next());
// }
// }
// look for the content in the other tree
assertTrue("could not find matching element for: " + one.getName(), foundEqual);
}

View file

@ -113,9 +113,7 @@ public class DateParser {
if (pp.getIndex() != sDate.length()) {
d = null;
}
// LOG.debug("pp["+pp.getIndex()+"] s["+sDate+" m["+masks[i]+"] d["+d+"]");
} catch (final Exception ex1) {
// LOG.debug("s: "+sDate+" m: "+masks[i]+" d: "+null);
}
}
return d;