Skip to content

Commit

Permalink
Upgrade to jdom2
Browse files Browse the repository at this point in the history
  • Loading branch information
ar committed Mar 6, 2016
1 parent c755bf8 commit e83bfab
Show file tree
Hide file tree
Showing 20 changed files with 29 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@
import org.jpos.iso.ISOComponent;
import org.jpos.iso.ISOUtil;
import org.jpos.iso.ISOField;
import org.jpos.iso.ISOHeader;
import org.jpos.iso.ISOPackager;
import org.jpos.iso.ISOException;
import org.jpos.iso.packager.XMLPackager;
import org.jpos.util.Logger;
import org.jpos.util.LogEvent;
import org.jdom.Element;
import org.jdom2.Element;
import org.jpos.iso.MUX;
import org.jpos.util.NameRegistrar;
import bsh.Interpreter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import com.github.fge.jsonschema.core.report.ProcessingReport;
import com.github.fge.jsonschema.main.JsonSchema;
import com.github.fge.jsonschema.main.JsonSchemaFactory;
import org.jdom.Element;
import org.jdom2.Element;
import org.jpos.core.ConfigurationException;
import org.jpos.core.XmlConfigurable;
import org.jpos.ee.BLException;
Expand Down
7 changes: 0 additions & 7 deletions modules/fsdmsgx/src/main/java/org/jpos/iso/FSDISOMsgX.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,7 @@
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.io.PrintStream;
import java.util.Iterator;
import java.util.Map;

import org.jdom.JDOMException;
import org.jpos.fsdpackager.FSDMsgX;
import org.jpos.iso.ISOException;
import org.jpos.iso.ISOMsg;
import org.jpos.util.FSDMsg;

public class FSDISOMsgX extends ISOMsg {
FSDMsgX fsd;
Expand Down
2 changes: 1 addition & 1 deletion modules/minigl/src/main/java/org/jpos/gl/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.util.Set;
import java.io.Serializable;
import java.text.ParseException;
import org.jdom.Element;
import org.jdom2.Element;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@

import java.util.Set;
import java.util.TreeSet;
import java.util.ArrayList;
import java.util.Iterator;
import java.text.ParseException;
import org.jdom.Element;
import org.jdom2.Element;

/**
* Composite Account
Expand Down
3 changes: 1 addition & 2 deletions modules/minigl/src/main/java/org/jpos/gl/Currency.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
package org.jpos.gl;

import java.text.ParseException;
import org.jdom.Element;
import org.jdom.Comment;
import org.jdom2.Element;

/**
* Represents a currency.
Expand Down
2 changes: 1 addition & 1 deletion modules/minigl/src/main/java/org/jpos/gl/FinalAccount.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import java.util.Set;
import java.text.ParseException;
import org.jdom.Element;
import org.jdom2.Element;

/**
* Final (leaf) Account.
Expand Down
2 changes: 1 addition & 1 deletion modules/minigl/src/main/java/org/jpos/gl/GLEntry.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import java.math.BigDecimal;
import java.text.ParseException;
import org.jdom.Element;
import org.jdom2.Element;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import java.util.ArrayList;
import java.math.BigDecimal;
import java.text.ParseException;
import org.jdom.Element;
import org.jdom2.Element;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
Expand Down
4 changes: 2 additions & 2 deletions modules/minigl/src/main/java/org/jpos/gl/GLUser.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import java.util.Set;
import java.util.LinkedHashSet;
import java.util.Iterator;
import org.jdom.Element;
import org.jdom.Comment;
import org.jdom2.Element;
import org.jdom2.Comment;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
Expand Down
6 changes: 2 additions & 4 deletions modules/minigl/src/main/java/org/jpos/gl/Journal.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@

import java.util.Set;
import java.util.Date;
import java.util.List;
import java.util.Iterator;
import java.util.ArrayList;
import org.jdom.Element;
import org.jdom.Comment;
import org.jdom2.Element;
import org.jdom2.Comment;
import java.text.ParseException;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
Expand Down
3 changes: 1 addition & 2 deletions modules/minigl/src/main/java/org/jpos/gl/Layer.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
import org.apache.commons.lang3.builder.ToStringBuilder;

import java.text.ParseException;
import org.jdom.Element;
import org.jdom.Comment;
import org.jdom2.Element;

/**
* Journal level layer information.
Expand Down
4 changes: 1 addition & 3 deletions modules/minigl/src/main/java/org/jpos/gl/RuleInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@

package org.jpos.gl;

import java.io.Serializable;
import java.text.ParseException;
import java.util.StringTokenizer;
import org.jdom.Element;
import org.jdom.Comment;
import org.jdom2.Element;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
Expand Down
3 changes: 1 addition & 2 deletions modules/minigl/src/main/java/org/jpos/gl/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@
import java.util.Date;
import java.util.Locale;
import java.util.Calendar;
import java.util.TimeZone;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import org.jdom.Element;
import org.jdom2.Element;

/**
* Assorted helper methods
Expand Down
24 changes: 6 additions & 18 deletions modules/minigl/src/main/java/org/jpos/gl/tools/Export.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,39 +18,27 @@

package org.jpos.gl.tools;

import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.Date;
import java.util.List;
import java.util.Iterator;

import org.jdom.Document;
import org.jdom.Element;
import org.jdom.DocType;
import org.jdom.Comment;
import org.jdom.JDOMException;
import org.jdom.input.SAXBuilder;
import org.jdom.output.Format;
import org.jdom.output.XMLOutputter;
import org.jdom2.Document;
import org.jdom2.Element;
import org.jdom2.DocType;
import org.jdom2.Comment;
import org.jdom2.output.Format;
import org.jdom2.output.XMLOutputter;

import java.sql.SQLException;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.Hibernate;
import org.hibernate.Transaction;
import org.hibernate.SessionFactory;
import org.hibernate.HibernateException;

import org.jpos.gl.GLUser;
import org.jpos.gl.Journal;
import org.jpos.gl.RuleInfo;
import org.jpos.gl.GLPermission;
import org.jpos.gl.CompositeAccount;
import org.jpos.gl.FinalAccount;
import org.jpos.gl.Account;
import org.jpos.gl.GLEntry;
import org.jpos.gl.GLException;
import org.jpos.gl.GLSession;
import org.jpos.gl.GLTransaction;
Expand Down
8 changes: 4 additions & 4 deletions modules/minigl/src/main/java/org/jpos/gl/tools/Import.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.JDOMException;
import org.jdom.input.SAXBuilder;
import org.jdom2.Document;
import org.jdom2.Element;
import org.jdom2.JDOMException;
import org.jdom2.input.SAXBuilder;
import org.jpos.core.ConfigurationException;
import org.jpos.ee.DB;
import org.jpos.gl.*;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

package org.jpos.q2;

import org.jdom.Element;
import org.jdom2.Element;
import org.jpos.core.Configurable;
import org.jpos.core.Configuration;
import org.jpos.core.ConfigurationException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import org.jpos.q2.QBeanSupport;
import org.jpos.core.ConfigurationException;
import org.jpos.util.NameRegistrar;
import org.jdom.Element;
import org.jdom2.Element;

/**
* RemoteSpaceAdaptor
Expand Down
4 changes: 1 addition & 3 deletions modules/status/src/main/java/org/jpos/ee/status/Monitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@
import org.jpos.ee.DB;
import org.jpos.q2.QFactory;
import org.jpos.q2.QBeanSupport;
import org.jpos.iso.ISOUtil;
import org.jpos.util.DateUtil;
import org.jpos.core.XmlConfigurable;
import org.jpos.core.ConfigurationException;
import org.jdom.Element;
import org.jdom2.Element;
import org.hibernate.HibernateException;

public class Monitor extends QBeanSupport implements XmlConfigurable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

package org.jpos.ee;

import org.jdom.Element;
import org.jdom2.Element;
import org.jpos.core.Configuration;
import org.jpos.core.ConfigurationException;
import org.jpos.core.SimpleConfiguration;
Expand Down

0 comments on commit e83bfab

Please sign in to comment.