mirror of
https://github.com/google/nomulus.git
synced 2025-06-27 06:44:51 +02:00
Convert entire project to strict lexicographical import sort ordering
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=127234970
This commit is contained in:
parent
2caba95d28
commit
aa2f283f7c
1065 changed files with 893 additions and 3572 deletions
|
@ -17,13 +17,12 @@ package google.registry.xml;
|
|||
import static com.google.common.base.Strings.isNullOrEmpty;
|
||||
import static org.joda.time.DateTimeZone.UTC;
|
||||
|
||||
import org.joda.time.LocalDate;
|
||||
import org.joda.time.format.DateTimeFormatter;
|
||||
import org.joda.time.format.ISODateTimeFormat;
|
||||
|
||||
import javax.annotation.CheckForNull;
|
||||
import javax.annotation.Nullable;
|
||||
import javax.xml.bind.annotation.adapters.XmlAdapter;
|
||||
import org.joda.time.LocalDate;
|
||||
import org.joda.time.format.DateTimeFormatter;
|
||||
import org.joda.time.format.ISODateTimeFormat;
|
||||
|
||||
/**
|
||||
* Adapter to use Joda {@link LocalDate} when marshalling the XML Schema {@code date} type.
|
||||
|
|
|
@ -16,10 +16,9 @@ package google.registry.xml;
|
|||
|
||||
import static com.google.common.base.Strings.isNullOrEmpty;
|
||||
|
||||
import org.joda.time.Period;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import javax.xml.bind.annotation.adapters.XmlAdapter;
|
||||
import org.joda.time.Period;
|
||||
|
||||
/** Adapter to use Joda {@link Period} when marshalling XML. */
|
||||
public class PeriodAdapter extends XmlAdapter<String, Period> {
|
||||
|
|
|
@ -17,13 +17,12 @@ package google.registry.xml;
|
|||
import static com.google.common.base.Strings.isNullOrEmpty;
|
||||
import static org.joda.time.DateTimeZone.UTC;
|
||||
|
||||
import org.joda.time.DateTime;
|
||||
import org.joda.time.format.DateTimeFormatter;
|
||||
import org.joda.time.format.ISODateTimeFormat;
|
||||
|
||||
import javax.annotation.CheckForNull;
|
||||
import javax.annotation.Nullable;
|
||||
import javax.xml.bind.annotation.adapters.XmlAdapter;
|
||||
import org.joda.time.DateTime;
|
||||
import org.joda.time.format.DateTimeFormatter;
|
||||
import org.joda.time.format.ISODateTimeFormat;
|
||||
|
||||
/**
|
||||
* Adapter to use Joda {@link DateTime} when marshalling XML timestamps.
|
||||
|
|
|
@ -19,9 +19,7 @@ import static com.google.common.base.Verify.verify;
|
|||
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
|
||||
import com.google.re2j.Pattern;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
|
||||
import javax.annotation.concurrent.NotThreadSafe;
|
||||
import javax.xml.bind.JAXBContext;
|
||||
import javax.xml.bind.JAXBElement;
|
||||
|
|
|
@ -24,10 +24,6 @@ import com.google.common.collect.ImmutableList;
|
|||
import com.google.common.collect.ImmutableMap;
|
||||
import com.google.common.io.Closer;
|
||||
import com.google.common.io.Resources;
|
||||
|
||||
import org.xml.sax.SAXException;
|
||||
import org.xml.sax.SAXParseException;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
|
@ -38,7 +34,6 @@ import java.nio.charset.Charset;
|
|||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import javax.xml.XMLConstants;
|
||||
import javax.xml.bind.JAXBContext;
|
||||
|
@ -59,6 +54,8 @@ import javax.xml.transform.stream.StreamResult;
|
|||
import javax.xml.transform.stream.StreamSource;
|
||||
import javax.xml.validation.Schema;
|
||||
import javax.xml.validation.SchemaFactory;
|
||||
import org.xml.sax.SAXException;
|
||||
import org.xml.sax.SAXParseException;
|
||||
|
||||
/** Static methods for marshaling, unmarshaling, and validating XML. */
|
||||
public class XmlTransformer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue