Skip to content

Commit abdf69a

Browse files
committed
Style fixes for App Identity samples.
1 parent 63cb4fa commit abdf69a

File tree

4 files changed

+15
-24
lines changed

4 files changed

+15
-24
lines changed

appengine/appidentity/src/main/java/com/example/appengine/appidentity/SignForAppServlet.java

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,37 @@
1-
/**
1+
/*
22
* Copyright 2016 Google Inc. All Rights Reserved.
33
*
4-
* <p>Licensed under the Apache License, Version 2.0 (the "License");
4+
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* <p>http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
10-
* <p>Unless required by applicable law or agreed to in writing, software
10+
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package com.example.appengine.appidentity;
1718

18-
import com.google.appengine.api.appidentity.PublicCertificate;
1919
import com.google.appengine.api.appidentity.AppIdentityService;
2020
import com.google.appengine.api.appidentity.AppIdentityServiceFactory;
21-
import com.google.apphosting.api.ApiProxy;
22-
import com.google.apphosting.api.ApiProxy.Environment;
21+
import com.google.appengine.api.appidentity.PublicCertificate;
2322

2423
import java.io.ByteArrayInputStream;
25-
import java.io.InputStream;
2624
import java.io.IOException;
27-
import java.io.PrintWriter;
25+
import java.io.InputStream;
2826
import java.io.UnsupportedEncodingException;
29-
import java.security.cert.Certificate;
30-
import java.security.cert.CertificateException;
31-
import java.security.cert.CertificateFactory;
3227
import java.security.InvalidKeyException;
3328
import java.security.NoSuchAlgorithmException;
3429
import java.security.PublicKey;
3530
import java.security.Signature;
3631
import java.security.SignatureException;
32+
import java.security.cert.Certificate;
33+
import java.security.cert.CertificateException;
34+
import java.security.cert.CertificateFactory;
3735
import java.util.Arrays;
3836
import java.util.Collection;
3937

appengine/appidentity/src/main/java/com/example/appengine/appidentity/UrlShortenerServlet.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,8 @@
1616

1717
package com.example.appengine.appidentity;
1818

19-
import com.google.appengine.api.users.UserService;
20-
import com.google.appengine.api.users.UserServiceFactory;
21-
2219
import java.io.IOException;
2320
import java.io.PrintWriter;
24-
import java.net.URLDecoder;
2521

2622
import javax.servlet.http.HttpServlet;
2723
import javax.servlet.http.HttpServletRequest;

appengine/appidentity/src/test/java/com/example/appengine/appidentity/IdentityServletTest.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
/**
1+
/*
22
* Copyright 2015 Google Inc. All Rights Reserved.
33
*
4-
* <p>Licensed under the Apache License, Version 2.0 (the "License");
4+
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* <p>http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
10-
* <p>Unless required by applicable law or agreed to in writing, software
10+
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package com.example.appengine.appidentity;
1718

1819
import static com.google.common.truth.Truth.assertThat;
19-
import static org.mockito.Mockito.mock;
2020
import static org.mockito.Mockito.when;
2121

2222
import com.google.appengine.tools.development.testing.LocalServiceTestHelper;
@@ -28,7 +28,6 @@
2828
import org.junit.runner.RunWith;
2929
import org.junit.runners.JUnit4;
3030

31-
import java.io.File;
3231
import java.io.PrintWriter;
3332
import java.io.StringWriter;
3433

appengine/appidentity/src/test/java/com/example/appengine/appidentity/SignForAppServletTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
package com.example.appengine.appidentity;
1717

1818
import static com.google.common.truth.Truth.assertThat;
19-
import static org.mockito.Mockito.mock;
2019
import static org.mockito.Mockito.when;
2120

2221
import com.google.appengine.tools.development.testing.LocalServiceTestHelper;
@@ -28,7 +27,6 @@
2827
import org.junit.runner.RunWith;
2928
import org.junit.runners.JUnit4;
3029

31-
import java.io.File;
3230
import java.io.PrintWriter;
3331
import java.io.StringWriter;
3432

0 commit comments

Comments
 (0)