mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Fix two Gauava 20 deprecations across the tools package
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=146162927
This commit is contained in:
parent
0a2622c6ab
commit
468f1fb0f8
5 changed files with 8 additions and 8 deletions
|
@ -1,11 +1,11 @@
|
|||
// Copyright 2017 The Nomulus Authors. All Rights Reserved.
|
||||
//
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
//
|
||||
// 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.
|
||||
|
@ -43,7 +43,7 @@ class DefaultRequestFactoryModule {
|
|||
@Provides
|
||||
@Named("default")
|
||||
public HttpRequestFactory provideHttpRequestFactory(AppEngineConnectionFlags connectionFlags) {
|
||||
if (connectionFlags.getServer().getHostText().equals("localhost")) {
|
||||
if (connectionFlags.getServer().getHost().equals("localhost")) {
|
||||
return new NetHttpTransport()
|
||||
.createRequestFactory(
|
||||
new HttpRequestInitializer() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue