Skip to content

Commit

Permalink
chore: fix build warnings (#1297)
Browse files Browse the repository at this point in the history
* fix build warnings

* check requires http

* blank line before package
  • Loading branch information
elharo committed Mar 2, 2021
1 parent 1db338b commit f4d07f4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
7 changes: 1 addition & 6 deletions samples/snippets/pom.xml
Expand Up @@ -15,6 +15,7 @@
<groupId>com.google.cloud.samples</groupId>
<artifactId>shared-configuration</artifactId>
<version>1.0.21</version>
<relativePath></relativePath>
</parent>

<properties>
Expand Down Expand Up @@ -60,12 +61,6 @@
<version>1.1.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client-gson</artifactId>
<version>1.39.0</version>
<scope>test</scope>
</dependency>
<!-- END_EXCLUDE -->
</dependencies>
<!-- [END google_http_client_install_with_bom] -->
Expand Down
Expand Up @@ -5,14 +5,15 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.example.json;

import com.google.api.client.http.HttpResponse;
Expand Down
Expand Up @@ -5,16 +5,24 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.example.json;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

import java.io.IOException;
import java.io.InputStream;
import java.util.Map;
import org.junit.Test;
import com.google.api.client.http.HttpRequest;
import com.google.api.client.http.HttpResponse;
import com.google.api.client.http.HttpTransport;
Expand All @@ -28,14 +36,6 @@
import com.google.api.client.testing.http.MockLowLevelHttpRequest;
import com.google.api.client.testing.http.MockLowLevelHttpResponse;
import com.google.common.base.Preconditions;
import org.junit.Test;

import java.io.IOException;
import java.io.InputStream;
import java.util.Map;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

public class YouTubeSampleTest {

Expand Down

0 comments on commit f4d07f4

Please sign in to comment.