mirror of
https://github.com/google/nomulus.git
synced 2025-05-19 18:59:35 +02:00
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:
parent
5012893c1d
commit
c458c05801
1309 changed files with 10981 additions and 10378 deletions
|
@ -12,9 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package com.google.domain.registry.model.translators;
|
||||
|
||||
import com.google.domain.registry.util.TypeUtils.TypeInstantiator;
|
||||
package google.registry.model.translators;
|
||||
|
||||
import com.googlecode.objectify.impl.Path;
|
||||
import com.googlecode.objectify.impl.Property;
|
||||
|
@ -24,6 +22,8 @@ import com.googlecode.objectify.impl.translate.SaveContext;
|
|||
import com.googlecode.objectify.impl.translate.ValueTranslator;
|
||||
import com.googlecode.objectify.impl.translate.ValueTranslatorFactory;
|
||||
|
||||
import google.registry.util.TypeUtils.TypeInstantiator;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
|
||||
/** Common boilerplate for translator factories. */
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package com.google.domain.registry.model.translators;
|
||||
package google.registry.model.translators;
|
||||
|
||||
import com.google.domain.registry.util.CidrAddressBlock;
|
||||
import google.registry.util.CidrAddressBlock;
|
||||
|
||||
/** Stores {@link CidrAddressBlock} as a canonicalized string. */
|
||||
public class CidrAddressBlockTranslatorFactory
|
||||
|
|
|
@ -12,19 +12,20 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package com.google.domain.registry.model.translators;
|
||||
package google.registry.model.translators;
|
||||
|
||||
import static com.google.common.base.MoreObjects.firstNonNull;
|
||||
import static com.google.domain.registry.model.ofy.ObjectifyService.ofy;
|
||||
import static com.google.domain.registry.util.DateTimeUtils.START_OF_TIME;
|
||||
import static google.registry.model.ofy.ObjectifyService.ofy;
|
||||
import static google.registry.util.DateTimeUtils.START_OF_TIME;
|
||||
|
||||
import com.google.common.collect.ImmutableSortedMap;
|
||||
import com.google.common.collect.Ordering;
|
||||
import com.google.domain.registry.config.RegistryEnvironment;
|
||||
import com.google.domain.registry.model.ofy.CommitLogManifest;
|
||||
|
||||
import com.googlecode.objectify.Ref;
|
||||
|
||||
import google.registry.config.RegistryEnvironment;
|
||||
import google.registry.model.ofy.CommitLogManifest;
|
||||
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
/**
|
||||
|
@ -44,7 +45,7 @@ import org.joda.time.DateTime;
|
|||
* <p><b>Warning:</b> Fields of this type must not be {@code null}, or else new entries can't be
|
||||
* inserted. You must take care to initialize the field to empty.
|
||||
*
|
||||
* @see com.google.domain.registry.model.EppResource
|
||||
* @see google.registry.model.EppResource
|
||||
*/
|
||||
public final class CommitLogRevisionsTranslatorFactory
|
||||
extends ImmutableSortedMapTranslatorFactory<DateTime, Ref<CommitLogManifest>> {
|
||||
|
@ -61,7 +62,7 @@ public final class CommitLogRevisionsTranslatorFactory
|
|||
* <p>We store a maximum of one entry per day. It will be the last transaction that happened on
|
||||
* that day.
|
||||
*
|
||||
* @see com.google.domain.registry.config.RegistryConfig#getCommitLogDatastoreRetention()
|
||||
* @see google.registry.config.RegistryConfig#getCommitLogDatastoreRetention()
|
||||
*/
|
||||
@Override
|
||||
ImmutableSortedMap<DateTime, Ref<CommitLogManifest>> transformBeforeSave(
|
||||
|
|
|
@ -12,13 +12,13 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package com.google.domain.registry.model.translators;
|
||||
package google.registry.model.translators;
|
||||
|
||||
import static com.google.common.base.MoreObjects.firstNonNull;
|
||||
import static com.google.domain.registry.model.ofy.ObjectifyService.ofy;
|
||||
import static google.registry.model.ofy.ObjectifyService.ofy;
|
||||
import static org.joda.time.DateTimeZone.UTC;
|
||||
|
||||
import com.google.domain.registry.model.CreateAutoTimestamp;
|
||||
import google.registry.model.CreateAutoTimestamp;
|
||||
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package com.google.domain.registry.model.translators;
|
||||
package google.registry.model.translators;
|
||||
|
||||
import static com.google.common.base.Strings.nullToEmpty;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package com.google.domain.registry.model.translators;
|
||||
package google.registry.model.translators;
|
||||
|
||||
import org.joda.money.CurrencyUnit;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package com.google.domain.registry.model.translators;
|
||||
package google.registry.model.translators;
|
||||
|
||||
import org.joda.time.Duration;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package com.google.domain.registry.model.translators;
|
||||
package google.registry.model.translators;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAttribute;
|
||||
import javax.xml.bind.annotation.adapters.XmlAdapter;
|
||||
|
|
|
@ -12,13 +12,13 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package com.google.domain.registry.model.translators;
|
||||
package google.registry.model.translators;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
import static com.google.common.base.Preconditions.checkState;
|
||||
import static com.google.domain.registry.util.CollectionUtils.nullToEmpty;
|
||||
import static com.googlecode.objectify.repackaged.gentyref.GenericTypeReflector.erase;
|
||||
import static com.googlecode.objectify.repackaged.gentyref.GenericTypeReflector.getTypeParameter;
|
||||
import static google.registry.util.CollectionUtils.nullToEmpty;
|
||||
|
||||
import com.google.common.collect.ImmutableSortedMap;
|
||||
import com.google.common.collect.Ordering;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package com.google.domain.registry.model.translators;
|
||||
package google.registry.model.translators;
|
||||
|
||||
import com.google.common.net.InetAddresses;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package com.google.domain.registry.model.translators;
|
||||
package google.registry.model.translators;
|
||||
|
||||
import com.googlecode.objectify.impl.Path;
|
||||
import com.googlecode.objectify.impl.Property;
|
||||
|
@ -31,7 +31,6 @@ import java.lang.reflect.Constructor;
|
|||
import java.lang.reflect.Type;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
/**
|
||||
* Stores Joda {@link ReadableInstant} types ({@code DateTime}, etc) as a {@link java.util.Date}.
|
||||
* <p>
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package com.google.domain.registry.model.translators;
|
||||
package google.registry.model.translators;
|
||||
|
||||
import com.google.domain.registry.model.eppcommon.StatusValue;
|
||||
import google.registry.model.eppcommon.StatusValue;
|
||||
|
||||
/** Adapter for {@link StatusValue}. */
|
||||
public class StatusValueAdapter extends EnumToAttributeAdapter<StatusValue> {
|
||||
|
|
|
@ -12,12 +12,12 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package com.google.domain.registry.model.translators;
|
||||
package google.registry.model.translators;
|
||||
|
||||
import static com.google.domain.registry.model.ofy.ObjectifyService.ofy;
|
||||
import static google.registry.model.ofy.ObjectifyService.ofy;
|
||||
import static org.joda.time.DateTimeZone.UTC;
|
||||
|
||||
import com.google.domain.registry.model.UpdateAutoTimestamp;
|
||||
import google.registry.model.UpdateAutoTimestamp;
|
||||
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue