Rename Java packages to use the .google TLD

The dark lord Gosling designed the Java package naming system so that
ownership flows from the DNS system. Since we own the domain name
registry.google, it seems only appropriate that we should use
google.registry as our package name.
This commit is contained in:
Michael Muller 2016-04-26 11:05:00 -04:00 committed by Justine Tunney
parent 5012893c1d
commit c458c05801
1309 changed files with 10981 additions and 10378 deletions

View file

@ -1,23 +1,25 @@
package(
default_visibility = ["//java/com/google/domain/registry:registry_project"],
default_visibility = ["//java/google/registry:registry_project"],
)
licenses(["notice"]) # Apache 2.0
java_library(
name = "params",
visibility = ["//visibility:public"],
srcs = glob(["*.java"]),
visibility = ["//visibility:public"],
deps = [
"//java/com/google/common/annotations",
"//java/com/google/common/base",
"//java/com/google/common/collect",
"//java/com/google/common/net",
"//java/com/google/common/primitives",
"//java/com/google/domain/registry/model",
"//java/com/google/domain/registry/util",
"//third_party/java/jcommander",
"//third_party/java/joda_money",
"//third_party/java/joda_time",
"//third_party/java/jsr305_annotations",
"//java/google/registry/model",
"//java/google/registry/util",
],
)

View file

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.domain.registry.tools.params;
package google.registry.tools.params;
import static org.joda.time.DateTimeZone.UTC;

View file

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.domain.registry.tools.params;
package google.registry.tools.params;
import org.joda.time.Duration;
import org.joda.time.Period;

View file

@ -12,12 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.domain.registry.tools.params;
package google.registry.tools.params;
import com.google.domain.registry.model.EppResource;
import com.google.domain.registry.model.contact.ContactResource;
import com.google.domain.registry.model.domain.DomainBase;
import com.google.domain.registry.model.host.HostResource;
import google.registry.model.EppResource;
import google.registry.model.contact.ContactResource;
import google.registry.model.domain.DomainBase;
import google.registry.model.host.HostResource;
/** Enum to make it easy for a command to accept a flag that specifies an EppResource subclass. */
public enum EppResourceTypeParameter {

View file

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.domain.registry.tools.params;
package google.registry.tools.params;
import com.google.common.net.HostAndPort;

View file

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.domain.registry.tools.params;
package google.registry.tools.params;
import com.google.common.net.InternetDomainName;

View file

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.domain.registry.tools.params;
package google.registry.tools.params;
import org.joda.time.LocalDate;
import org.joda.time.format.ISODateTimeFormat;

View file

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.domain.registry.tools.params;
package google.registry.tools.params;
import java.util.logging.Level;

View file

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.domain.registry.tools.params;
package google.registry.tools.params;
/** Long CLI parameter converter/validator. */
public class LongParameter extends ParameterConverterValidator<Long> {

View file

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.domain.registry.tools.params;
package google.registry.tools.params;
import com.google.common.base.Ascii;

View file

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.domain.registry.tools.params;
package google.registry.tools.params;
/** Optional wrapper for LongParameter. */
public final class OptionalLongParameter

View file

@ -12,10 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.domain.registry.tools.params;
package google.registry.tools.params;
import com.google.common.base.Optional;
import com.google.domain.registry.util.TypeUtils.TypeInstantiator;
import google.registry.util.TypeUtils.TypeInstantiator;
/**
* Class for parameters that can handle special string "null" or empty values to

View file

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.domain.registry.tools.params;
package google.registry.tools.params;
/** Optional wrapper for PhoneNumberParameter. */
public final class OptionalPhoneNumberParameter

View file

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.domain.registry.tools.params;
package google.registry.tools.params;
/** Optional wrapper for StringParameter. */
public final class OptionalStringParameter

View file

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.domain.registry.tools.params;
package google.registry.tools.params;
import com.beust.jcommander.IParameterValidator;
import com.beust.jcommander.IStringConverter;

View file

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.domain.registry.tools.params;
package google.registry.tools.params;
import com.google.common.collect.ImmutableMap;
import com.google.common.net.HostAndPort;

View file

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.domain.registry.tools.params;
package google.registry.tools.params;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;

View file

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.domain.registry.tools.params;
package google.registry.tools.params;
import static com.google.common.base.Preconditions.checkArgument;

View file

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.domain.registry.tools.params;
package google.registry.tools.params;
/** Identity String CLI parameter converter/validator. */
public class StringParameter extends ParameterConverterValidator<String> {

View file

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.domain.registry.tools.params;
package google.registry.tools.params;
import static com.google.common.base.Preconditions.checkArgument;
@ -20,7 +20,8 @@ import com.google.common.base.Splitter;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSortedMap;
import com.google.common.collect.Ordering;
import com.google.domain.registry.model.registry.Registry.TldState;
import google.registry.model.registry.Registry.TldState;
import org.joda.money.Money;
import org.joda.time.DateTime;

View file

@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.domain.registry.tools.params;
package google.registry.tools.params;
import org.joda.time.YearMonth;
import org.joda.time.format.ISODateTimeFormat;

View file

@ -13,4 +13,4 @@
// limitations under the License.
@javax.annotation.ParametersAreNonnullByDefault
package com.google.domain.registry.tools.params;
package google.registry.tools.params;