mirror of
https://github.com/google/nomulus.git
synced 2025-05-19 10:49:35 +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
|
@ -16,7 +16,6 @@ package google.registry.request;
|
|||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Qualifier;
|
||||
|
||||
/**
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
package google.registry.request;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
|
||||
import javax.inject.Qualifier;
|
||||
|
||||
/** Dagger qualifier for HTTP headers. */
|
||||
|
|
|
@ -17,9 +17,7 @@ package google.registry.request;
|
|||
import static com.google.common.html.HtmlEscapers.htmlEscaper;
|
||||
|
||||
import google.registry.util.FormattingLogger;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
/** Base for exceptions that cause an HTTP error response. */
|
||||
|
|
|
@ -17,7 +17,6 @@ package google.registry.request;
|
|||
import static com.google.common.base.Verify.verifyNotNull;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
/** Runner for actions that read and write JSON objects. */
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
package google.registry.request;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
|
||||
import javax.inject.Qualifier;
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,11 +20,9 @@ import static com.google.common.net.HttpHeaders.X_CONTENT_TYPE_OPTIONS;
|
|||
import static com.google.common.net.MediaType.JSON_UTF_8;
|
||||
import static org.json.simple.JSONValue.toJSONString;
|
||||
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import javax.inject.Inject;
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
/** JSON response object. */
|
||||
public class JsonResponse {
|
||||
|
|
|
@ -31,18 +31,14 @@ import com.google.appengine.api.urlfetch.URLFetchService;
|
|||
import com.google.appengine.api.urlfetch.URLFetchServiceFactory;
|
||||
import com.google.appengine.api.users.UserService;
|
||||
import com.google.appengine.api.users.UserServiceFactory;
|
||||
|
||||
import dagger.Binds;
|
||||
import dagger.Module;
|
||||
import dagger.Provides;
|
||||
|
||||
import google.registry.config.ConfigModule.Config;
|
||||
import google.registry.keyring.api.KeyModule.Key;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.inject.Singleton;
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@ package google.registry.request;
|
|||
|
||||
import java.lang.annotation.Documented;
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Qualifier;
|
||||
|
||||
/** Dagger qualifier for the {@link Set} of OAuth2 scope strings, used for API authorization. */
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
package google.registry.request;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
|
||||
import javax.inject.Qualifier;
|
||||
|
||||
/** Dagger qualifier for HTTP parameters. */
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
package google.registry.request;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
|
||||
import javax.inject.Qualifier;
|
||||
|
||||
/** Dagger qualifier for {@link com.google.common.collect.ImmutableListMultimap} of HTTP params. */
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
package google.registry.request;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
|
||||
import javax.inject.Qualifier;
|
||||
|
||||
/**
|
||||
|
|
|
@ -28,17 +28,13 @@ import static javax.servlet.http.HttpServletResponse.SC_NOT_FOUND;
|
|||
import com.google.appengine.api.users.UserService;
|
||||
import com.google.appengine.api.users.UserServiceFactory;
|
||||
import com.google.common.base.Optional;
|
||||
|
||||
import google.registry.util.FormattingLogger;
|
||||
import google.registry.util.NonFinalForTesting;
|
||||
|
||||
import org.joda.time.Duration;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.joda.time.Duration;
|
||||
|
||||
/**
|
||||
* Dagger request processor for Domain Registry.
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
package google.registry.request;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
|
||||
import javax.inject.Qualifier;
|
||||
|
||||
/**
|
||||
|
|
|
@ -22,22 +22,17 @@ import com.google.common.collect.ImmutableListMultimap;
|
|||
import com.google.common.io.ByteStreams;
|
||||
import com.google.common.io.CharStreams;
|
||||
import com.google.common.net.MediaType;
|
||||
|
||||
import dagger.Module;
|
||||
import dagger.Provides;
|
||||
|
||||
import google.registry.request.HttpException.BadRequestException;
|
||||
import google.registry.request.HttpException.UnsupportedMediaTypeException;
|
||||
|
||||
import org.json.simple.JSONValue;
|
||||
import org.json.simple.parser.ParseException;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.servlet.http.HttpSession;
|
||||
import org.json.simple.JSONValue;
|
||||
import org.json.simple.parser.ParseException;
|
||||
|
||||
/** Dagger module for servlets. */
|
||||
@Module
|
||||
|
|
|
@ -22,15 +22,11 @@ import com.google.common.base.Ascii;
|
|||
import com.google.common.base.Optional;
|
||||
import com.google.common.collect.ImmutableSet;
|
||||
import com.google.common.net.InetAddresses;
|
||||
|
||||
import google.registry.request.HttpException.BadRequestException;
|
||||
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
import java.net.InetAddress;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
/** Utilities for extracting parameters from HTTP requests. */
|
||||
public final class RequestParameters {
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
package google.registry.request;
|
||||
|
||||
import java.lang.annotation.Documented;
|
||||
|
||||
import javax.inject.Qualifier;
|
||||
|
||||
/**
|
||||
|
|
|
@ -19,7 +19,6 @@ import java.lang.annotation.ElementType;
|
|||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
import javax.inject.Scope;
|
||||
|
||||
/** Dagger annotation for request-scoped components that depend on a global component. */
|
||||
|
|
|
@ -15,10 +15,8 @@
|
|||
package google.registry.request;
|
||||
|
||||
import com.google.common.net.MediaType;
|
||||
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
/**
|
||||
* HTTP request response object.
|
||||
|
|
|
@ -15,13 +15,10 @@
|
|||
package google.registry.request;
|
||||
|
||||
import com.google.common.net.MediaType;
|
||||
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.inject.Inject;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
/** HTTP response object. */
|
||||
public final class ResponseImpl implements Response {
|
||||
|
|
|
@ -19,7 +19,6 @@ import com.google.common.base.Optional;
|
|||
import com.google.common.base.Throwables;
|
||||
import com.google.common.collect.ImmutableSortedMap;
|
||||
import com.google.common.collect.Ordering;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.Map;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue