Skip to content

Commit ece1541

Browse files
gk5885garrettjonesgoogle
authored andcommitted
Update imports ordering to the new java import order (go/java-imports).
The import order is changing because the current rules are unnecessarily complicated, difficult to configure in IDEs, and difficult for users to remember. More information: http://go/java-imports-lsc Tested: $ blaze build //java/com/google/api/client/benchmarks/model:all //java/com/google/api/client/benchmarks:all //java/com/google/api/client/extensions/android/json:all //java/com/google/api/client/extensions/android:all //java/com/google/api/client/extensions/jetty/auth/oauth2:all //java/com/google/api/client/googleapis/extensions/android/accounts:all //java/com/google/api/client/googleapis/extensions/android/gms/auth:all //java/com/google/api/client/googleapis/xml/atom:all //java/com/google/api/client/http/apache:all //java/com/google/api/client/http/xml/atom:all //java/com/google/api/client/http/xml:all //java/com/google/api/client/test/json:all //java/com/google/api/client/test/util/store:all //java/com/google/api/client/testing/http/apache:all //java/com/google/api/client/xml/atom:all //java/com/google/api/client/xml:all http://sponge/a7602dcb-ac8b-4609-9add-4a9e66f34eaf All failing tests were failing before this change ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=127472734
1 parent 1307062 commit ece1541

File tree

21 files changed

+38
-80
lines changed

21 files changed

+38
-80
lines changed

google-http-client-android/src/main/java/com/google/api/client/extensions/android/AndroidUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414

1515
package com.google.api.client.extensions.android;
1616

17+
import android.os.Build;
1718
import com.google.api.client.util.Beta;
1819
import com.google.api.client.util.Preconditions;
1920

20-
import android.os.Build;
21-
2221
/**
2322
* {@link Beta} <br/>
2423
* Utilities for Android.

google-http-client-android/src/main/java/com/google/api/client/extensions/android/json/AndroidJsonFactory.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,15 @@
1414

1515
package com.google.api.client.extensions.android.json;
1616

17+
import android.annotation.TargetApi;
18+
import android.util.JsonReader;
19+
import android.util.JsonWriter;
1720
import com.google.api.client.extensions.android.AndroidUtils;
1821
import com.google.api.client.json.JsonFactory;
1922
import com.google.api.client.json.JsonGenerator;
2023
import com.google.api.client.json.JsonParser;
2124
import com.google.api.client.util.Beta;
2225
import com.google.api.client.util.Charsets;
23-
24-
import android.annotation.TargetApi;
25-
import android.util.JsonReader;
26-
import android.util.JsonWriter;
27-
2826
import java.io.InputStream;
2927
import java.io.InputStreamReader;
3028
import java.io.OutputStream;

google-http-client-android/src/main/java/com/google/api/client/extensions/android/json/AndroidJsonGenerator.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,11 @@
1414

1515
package com.google.api.client.extensions.android.json;
1616

17+
import android.annotation.TargetApi;
18+
import android.util.JsonWriter;
1719
import com.google.api.client.json.JsonFactory;
1820
import com.google.api.client.json.JsonGenerator;
1921
import com.google.api.client.util.Beta;
20-
21-
import android.annotation.TargetApi;
22-
import android.util.JsonWriter;
23-
2422
import java.io.IOException;
2523
import java.math.BigDecimal;
2624
import java.math.BigInteger;

google-http-client-android/src/main/java/com/google/api/client/extensions/android/json/AndroidJsonParser.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@
1414

1515
package com.google.api.client.extensions.android.json;
1616

17+
import android.annotation.TargetApi;
18+
import android.util.JsonReader;
1719
import com.google.api.client.json.JsonFactory;
1820
import com.google.api.client.json.JsonParser;
1921
import com.google.api.client.json.JsonToken;
2022
import com.google.api.client.util.Beta;
2123
import com.google.api.client.util.Preconditions;
22-
23-
import android.annotation.TargetApi;
24-
import android.util.JsonReader;
25-
2624
import java.io.EOFException;
2725
import java.io.IOException;
2826
import java.math.BigDecimal;

google-http-client-test/src/main/java/com/google/api/client/test/json/AbstractJsonFactoryTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@
3535
import com.google.common.collect.ImmutableMap;
3636
import com.google.common.collect.ImmutableSet;
3737
import com.google.common.reflect.TypeToken;
38-
39-
import junit.framework.TestCase;
40-
4138
import java.io.ByteArrayInputStream;
4239
import java.io.ByteArrayOutputStream;
4340
import java.io.InputStream;
@@ -56,6 +53,7 @@
5653
import java.util.List;
5754
import java.util.Map;
5855
import java.util.TreeMap;
56+
import junit.framework.TestCase;
5957

6058
/**
6159
* Abstract test case for testing a {@link JsonFactory}.

google-http-client-test/src/main/java/com/google/api/client/test/util/store/AbstractDataStoreFactoryTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@
1818
import com.google.api.client.util.store.DataStore;
1919
import com.google.api.client.util.store.DataStoreFactory;
2020
import com.google.common.collect.Sets;
21-
22-
import junit.framework.TestCase;
23-
2421
import java.util.Arrays;
2522
import java.util.Collection;
2623
import java.util.Set;
24+
import junit.framework.TestCase;
2725

2826
/**
2927
* Tests {@link DataStoreFactory}.

google-http-client-xml/src/main/java/com/google/api/client/http/xml/AbstractXmlHttpContent.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@
2020
import com.google.api.client.util.Preconditions;
2121
import com.google.api.client.xml.Xml;
2222
import com.google.api.client.xml.XmlNamespaceDictionary;
23-
24-
import org.xmlpull.v1.XmlSerializer;
25-
2623
import java.io.IOException;
2724
import java.io.OutputStream;
25+
import org.xmlpull.v1.XmlSerializer;
2826

2927
/**
3028
* {@link Beta} <br/>

google-http-client-xml/src/main/java/com/google/api/client/http/xml/XmlHttpContent.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@
1818
import com.google.api.client.util.Beta;
1919
import com.google.api.client.util.Preconditions;
2020
import com.google.api.client.xml.XmlNamespaceDictionary;
21-
22-
import org.xmlpull.v1.XmlSerializer;
23-
2421
import java.io.IOException;
22+
import org.xmlpull.v1.XmlSerializer;
2523

2624
/**
2725
* {@link Beta} <br/>

google-http-client-xml/src/main/java/com/google/api/client/http/xml/atom/AtomContent.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@
2020
import com.google.api.client.util.Preconditions;
2121
import com.google.api.client.xml.XmlNamespaceDictionary;
2222
import com.google.api.client.xml.atom.Atom;
23-
24-
import org.xmlpull.v1.XmlSerializer;
25-
2623
import java.io.IOException;
24+
import org.xmlpull.v1.XmlSerializer;
2725

2826
/**
2927
* {@link Beta} <br/>

google-http-client-xml/src/main/java/com/google/api/client/http/xml/atom/AtomFeedParser.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@
2222
import com.google.api.client.xml.XmlNamespaceDictionary;
2323
import com.google.api.client.xml.atom.AbstractAtomFeedParser;
2424
import com.google.api.client.xml.atom.Atom;
25-
26-
import org.xmlpull.v1.XmlPullParser;
27-
import org.xmlpull.v1.XmlPullParserException;
28-
2925
import java.io.IOException;
3026
import java.io.InputStream;
27+
import org.xmlpull.v1.XmlPullParser;
28+
import org.xmlpull.v1.XmlPullParserException;
3129

3230
/**
3331
* {@link Beta} <br/>

0 commit comments

Comments
 (0)