From 27c45a56538513b49f011d526de436038a59e9fb Mon Sep 17 00:00:00 2001 From: adriancole Date: Tue, 19 Feb 2013 12:37:10 -0800 Subject: [PATCH] corrected generic type failure in jdk7 --- .../jclouds/dynect/v3/domain/RecordId.java | 2 +- .../dynect/v3/functions/ToRecordIds.java | 3 ++- .../v3/features/RecordApiExpectTest.java | 19 ++++++++++--------- .../dynect/v3/functions/ToRecordIdsTest.java | 3 ++- .../v3/parse/ListRecordsResponseTest.java | 4 +++- .../v3/predicates/RecordPredicatesTest.java | 3 ++- 6 files changed, 20 insertions(+), 14 deletions(-) diff --git a/labs/dynect/src/main/java/org/jclouds/dynect/v3/domain/RecordId.java b/labs/dynect/src/main/java/org/jclouds/dynect/v3/domain/RecordId.java index 8a982795d3..a69f4cd5cb 100644 --- a/labs/dynect/src/main/java/org/jclouds/dynect/v3/domain/RecordId.java +++ b/labs/dynect/src/main/java/org/jclouds/dynect/v3/domain/RecordId.java @@ -101,7 +101,7 @@ public class RecordId { return toStringHelper(this).add("zone", zone).add("fqdn", fqdn).add("type", type).add("id", id); } - public static Builder builder() { + public static Builder recordIdBuilder() { return new ConcreteBuilder(); } diff --git a/labs/dynect/src/main/java/org/jclouds/dynect/v3/functions/ToRecordIds.java b/labs/dynect/src/main/java/org/jclouds/dynect/v3/functions/ToRecordIds.java index 8a1ffd5fc2..34edeada4f 100644 --- a/labs/dynect/src/main/java/org/jclouds/dynect/v3/functions/ToRecordIds.java +++ b/labs/dynect/src/main/java/org/jclouds/dynect/v3/functions/ToRecordIds.java @@ -20,6 +20,7 @@ package org.jclouds.dynect.v3.functions; import static com.google.common.base.Preconditions.checkNotNull; import static com.google.common.base.Preconditions.checkState; +import static org.jclouds.dynect.v3.domain.RecordId.recordIdBuilder; import java.util.regex.Matcher; import java.util.regex.Pattern; @@ -63,7 +64,7 @@ public final class ToRecordIds implements Function expected() { - Builder builder = RecordId.builder() + Builder builder = recordIdBuilder() .zone("adrianc.zone.dynecttest.jclouds.org") .fqdn("adrianc.zone.dynecttest.jclouds.org"); return FluentIterable.from(ImmutableSet. builder() diff --git a/labs/dynect/src/test/java/org/jclouds/dynect/v3/predicates/RecordPredicatesTest.java b/labs/dynect/src/test/java/org/jclouds/dynect/v3/predicates/RecordPredicatesTest.java index 868100c7f8..d61afd2b89 100644 --- a/labs/dynect/src/test/java/org/jclouds/dynect/v3/predicates/RecordPredicatesTest.java +++ b/labs/dynect/src/test/java/org/jclouds/dynect/v3/predicates/RecordPredicatesTest.java @@ -1,5 +1,6 @@ package org.jclouds.dynect.v3.predicates; +import static org.jclouds.dynect.v3.domain.RecordId.recordIdBuilder; import static org.jclouds.dynect.v3.predicates.RecordPredicates.typeEquals; import org.jclouds.dynect.v3.domain.RecordId; @@ -11,7 +12,7 @@ import org.testng.annotations.Test; */ @Test(groups = "unit") public class RecordPredicatesTest { - RecordId recordId = RecordId.builder() + RecordId recordId = recordIdBuilder() .zone("adrianc.zone.dynecttest.jclouds.org") .fqdn("adrianc.zone.dynecttest.jclouds.org") .type("SOA")