Skip to content

Commit f4d07f4

Browse files
authored
chore: fix build warnings (#1297)
* fix build warnings * check requires http * blank line before package
1 parent 1db338b commit f4d07f4

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

samples/snippets/pom.xml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<groupId>com.google.cloud.samples</groupId>
1616
<artifactId>shared-configuration</artifactId>
1717
<version>1.0.21</version>
18+
<relativePath></relativePath>
1819
</parent>
1920

2021
<properties>
@@ -60,12 +61,6 @@
6061
<version>1.1.2</version>
6162
<scope>test</scope>
6263
</dependency>
63-
<dependency>
64-
<groupId>com.google.http-client</groupId>
65-
<artifactId>google-http-client-gson</artifactId>
66-
<version>1.39.0</version>
67-
<scope>test</scope>
68-
</dependency>
6964
<!-- END_EXCLUDE -->
7065
</dependencies>
7166
<!-- [END google_http_client_install_with_bom] -->

samples/snippets/src/main/java/com/example/json/YouTubeSample.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
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-
* https://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* 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.json;
1718

1819
import com.google.api.client.http.HttpResponse;

samples/snippets/src/test/java/com/example/json/YouTubeSampleTest.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,24 @@
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-
* https://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* 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.json;
1718

19+
import static org.junit.Assert.assertEquals;
20+
import static org.junit.Assert.assertNotNull;
21+
22+
import java.io.IOException;
23+
import java.io.InputStream;
24+
import java.util.Map;
25+
import org.junit.Test;
1826
import com.google.api.client.http.HttpRequest;
1927
import com.google.api.client.http.HttpResponse;
2028
import com.google.api.client.http.HttpTransport;
@@ -28,14 +36,6 @@
2836
import com.google.api.client.testing.http.MockLowLevelHttpRequest;
2937
import com.google.api.client.testing.http.MockLowLevelHttpResponse;
3038
import com.google.common.base.Preconditions;
31-
import org.junit.Test;
32-
33-
import java.io.IOException;
34-
import java.io.InputStream;
35-
import java.util.Map;
36-
37-
import static org.junit.Assert.assertEquals;
38-
import static org.junit.Assert.assertNotNull;
3939

4040
public class YouTubeSampleTest {
4141

0 commit comments

Comments
 (0)