summaryrefslogtreecommitdiff
path: root/xmerge
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-08-21 08:24:55 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-08-28 16:15:42 +0200
commit53b80ecb0b513f6f7cea88adebb3d062efee2f96 (patch)
treed8bfc1e0f6af0f1b60657504593f826e115dce58 /xmerge
parent309b4e24d2507a93a0825dff2a6df13859e9487e (diff)
Java cleanup - Static methods and fields should be accessed in a static way.
Change-Id: Ic9539f4c78574d995d983ab4b13b371f650e0c69
Diffstat (limited to 'xmerge')
-rw-r--r--xmerge/source/wordsmith/java/org/openoffice/xmerge/converter/xml/sxw/wordsmith/DocumentDeserializerImpl.java8
-rw-r--r--xmerge/source/xmerge/java/org/openoffice/xmerge/ConverterFactory.java4
2 files changed, 6 insertions, 6 deletions
diff --git a/xmerge/source/wordsmith/java/org/openoffice/xmerge/converter/xml/sxw/wordsmith/DocumentDeserializerImpl.java b/xmerge/source/wordsmith/java/org/openoffice/xmerge/converter/xml/sxw/wordsmith/DocumentDeserializerImpl.java
index 96a5e25cabd3..14243ccbb420 100644
--- a/xmerge/source/wordsmith/java/org/openoffice/xmerge/converter/xml/sxw/wordsmith/DocumentDeserializerImpl.java
+++ b/xmerge/source/wordsmith/java/org/openoffice/xmerge/converter/xml/sxw/wordsmith/DocumentDeserializerImpl.java
@@ -464,23 +464,23 @@ implements DOCConstants, OfficeConstants, DocumentDeserializer {
// copy font declarations from original document to the new document
nl = origDomDoc.getElementsByTagName(TAG_OFFICE_FONT_DECLS);
df = doc.createDocumentFragment();
- newNode = xu.deepClone(df, nl.item(0));
+ newNode = XmlUtil.deepClone(df, nl.item(0));
rootNode.insertBefore(newNode, bodyNode);
// copy style catalog from original document to the new document
nl = origDomDoc.getElementsByTagName(TAG_OFFICE_STYLES);
df = doc.createDocumentFragment();
- newNode = xu.deepClone(df, nl.item(0));
+ newNode = XmlUtil.deepClone(df, nl.item(0));
rootNode.insertBefore(newNode, bodyNode);
nl = origDomDoc.getElementsByTagName(TAG_OFFICE_AUTOMATIC_STYLES);
df = doc.createDocumentFragment();
- newNode = xu.deepClone(df, nl.item(0));
+ newNode = XmlUtil.deepClone(df, nl.item(0));
rootNode.insertBefore(newNode, bodyNode);
nl = origDomDoc.getElementsByTagName(TAG_OFFICE_MASTER_STYLES);
df = doc.createDocumentFragment();
- newNode = xu.deepClone(df, nl.item(0));
+ newNode = XmlUtil.deepClone(df, nl.item(0));
rootNode.insertBefore(newNode, bodyNode);
}
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/ConverterFactory.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/ConverterFactory.java
index 23f9d3fe7cd0..687f262a6052 100644
--- a/xmerge/source/xmerge/java/org/openoffice/xmerge/ConverterFactory.java
+++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/ConverterFactory.java
@@ -51,7 +51,7 @@ public class ConverterFactory {
// findConverterInfo expects the second paramenter to be the
// destination MimeType
- if (foundInfo.isValidOfficeType(mimeTypeOut))
+ if (ConverterInfo.isValidOfficeType(mimeTypeOut))
foundInfo = ConverterInfoMgr.findConverterInfo(mimeTypeIn, mimeTypeOut);
else
foundInfo = ConverterInfoMgr.findConverterInfo(mimeTypeOut, mimeTypeIn);
@@ -80,7 +80,7 @@ public class ConverterFactory {
ConverterInfo foundInfo = null;
boolean toOffice;
- toOffice = foundInfo.isValidOfficeType(mimeTypeOut);
+ toOffice = ConverterInfo.isValidOfficeType(mimeTypeOut);
// findConverterInfo expects the second paramenter to be the
// destination MimeType