jefft 2003/06/18 05:11:07
Modified: src/java/org/apache/cocoon/transformation
AbstractSAXTransformer.java
Log:
Remove redundant '== true' in boolean expression
Revision Changes Path
1.2 +27 -27
cocoon-2.1/src/java/org/apache/cocoon/transformation/AbstractSAXTransformer.java
Index: AbstractSAXTransformer.java
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/java/org/apache/cocoon/transformation/AbstractSAXTransformer.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AbstractSAXTransformer.java 9 Mar 2003 00:09:39 -0000 1.1
+++ AbstractSAXTransformer.java 18 Jun 2003 12:11:07 -0000 1.2
@@ -222,7 +222,7 @@
throws ProcessingException,
SAXException,
IOException {
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("BEGIN setup resolver="+resolver+
", objectModel="+objectModel+
", src="+src+
@@ -250,7 +250,7 @@
this.ignoreWhitespaces = true;
this.ignoreEmptyCharacters = false;
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("END setup");
}
}
@@ -439,7 +439,7 @@
*/
public void startRecording()
throws SAXException {
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("BEGIN startRecording");
}
DOMBuilder builder = new DOMBuilder();
@@ -449,7 +449,7 @@
this.sendStartPrefixMapping();
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("END startRecording");
}
}
@@ -461,7 +461,7 @@
*/
public DocumentFragment endRecording()
throws SAXException {
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("BEGIN endRecording");
}
@@ -490,7 +490,7 @@
}
}
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
Object serializedXML = null;
try {
serializedXML = (recordedDocFrag == null ? "null" :
XMLUtils.serializeNodeToXML(recordedDocFrag));
@@ -509,7 +509,7 @@
*/
public void startTextRecording()
throws SAXException {
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("BEGIN startTextRecording");
}
XMLConsumer recorder = new TextRecorder();
@@ -517,7 +517,7 @@
this.sendStartPrefixMapping();
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("END startTextRecording");
}
}
@@ -528,7 +528,7 @@
*/
public String endTextRecording()
throws SAXException {
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("BEGIN endTextRecording");
}
@@ -537,7 +537,7 @@
TextRecorder recorder = (TextRecorder)this.removeRecorder();
String text = recorder.getText();
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("END endTextRecording text="+text);
}
return text;
@@ -552,12 +552,12 @@
*/
public void startSerializedXMLRecording(Properties format)
throws SAXException {
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("BEGIN startSerializedXMLRecording
format="+format);
}
this.stack.push((format == null ? XMLUtils.defaultSerializeToXMLFormat() :
format));
this.startRecording();
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("END startSerializedXMLRecording");
}
}
@@ -569,12 +569,12 @@
*/
public String endSerializedXMLRecording()
throws SAXException, ProcessingException {
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("BEGIN endSerializedXMLRecording");
}
DocumentFragment fragment = this.endRecording();
String text = XMLUtils.serializeNode(fragment,
(Properties)this.stack.pop());
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("END endSerializedXMLRecording xml="+text);
}
return text;
@@ -589,7 +589,7 @@
*/
public void startParametersRecording()
throws SAXException {
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("BEGIN startParametersRecording");
}
XMLConsumer recorder = new ParametersRecorder();
@@ -597,7 +597,7 @@
this.sendStartPrefixMapping();
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("END startParametersRecording");
}
}
@@ -611,14 +611,14 @@
*/
public SourceParameters endParametersRecording(Parameters source)
throws SAXException {
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("BEGIN endParametersRecording source="+source);
}
this.sendEndPrefixMapping();
ParametersRecorder recorder = (ParametersRecorder)this.removeRecorder();
SourceParameters pars = recorder.getParameters(source);
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("END endParametersRecording parameters="+pars);
}
return pars;
@@ -633,14 +633,14 @@
*/
public SourceParameters endParametersRecording(SourceParameters source)
throws SAXException {
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("BEGIN endParametersRecording source="+source);
}
this.sendEndPrefixMapping();
ParametersRecorder recorder = (ParametersRecorder)this.removeRecorder();
SourceParameters pars = recorder.getParameters(source);
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("END endParametersRecording parameters="+pars);
}
return pars;
@@ -658,14 +658,14 @@
*/
public void setupTransforming()
throws IOException, ProcessingException, SAXException {
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("BEGIN setupTransforming");
}
this.stack.clear();
this.recorderStack.clear();
this.ignoreWhitespaces = true;
this.ignoreEmptyCharacters = false;
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("END setupTransforming");
}
}
@@ -683,11 +683,11 @@
String raw,
Attributes attr)
throws ProcessingException, IOException, SAXException {
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("BEGIN startTransformingElement uri=" + uri + ",
name=" + name + ", raw=" + raw + ", attr=" + attr + ")");
}
if (this.ignoreEventsCount == 0) super.startElement(uri, name, raw, attr);
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("END startTransformingElement");
}
}
@@ -703,11 +703,11 @@
String name,
String raw)
throws ProcessingException, IOException, SAXException {
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("BEGIN endTransformingElement uri=" + uri + ",
name=" + name + ", raw=" + raw + ")");
}
if (this.ignoreEventsCount == 0) super.endElement(uri, name, raw);
- if (this.getLogger().isDebugEnabled() == true) {
+ if (this.getLogger().isDebugEnabled()) {
this.getLogger().debug("END endTransformingElement");
}
}