Revision: 7897
http://svn.sourceforge.net/foray/?rev=7897&view=rev
Author: victormote
Date: 2006-09-04 18:09:23 -0700 (Mon, 04 Sep 2006)
Log Message:
-----------
Fix some likely bugs caught by checkstyle.
Modified Paths:
--------------
trunk/foray/foray-mif/src/java/org/foray/mif/MIFDocument.java
Modified: trunk/foray/foray-mif/src/java/org/foray/mif/MIFDocument.java
===================================================================
--- trunk/foray/foray-mif/src/java/org/foray/mif/MIFDocument.java 2006-09-05 01:07:17 UTC (rev 7896)
+++ trunk/foray/foray-mif/src/java/org/foray/mif/MIFDocument.java 2006-09-05 01:09:23 UTC (rev 7897)
@@ -565,7 +565,7 @@
final Object elem = content.get(i);
if (elem instanceof String) {
// Output newlines as char hard return
- if (elem == "\n") {
+ if (elem.equals("\n")) {
mif = "\n<Char HardReturn>";
} else {
mif = "\n\t<String `" + MIFEncode((String)elem) + "'>";
@@ -790,11 +790,11 @@
public void setCurrent(final String current) {
- if (current == "fo:table-body") {
+ if (current.equals("fo:table-body")) {
this.current = this.tblBody;
- } else if (current == "tablehead") {
+ } else if (current.equals("tablehead")) {
this.current = this.tblHead;
- } else if (current == "tablefoot") {
+ } else if (current.equals("tablefoot")) {
this.current = this.tblFoot;
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|