Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Vosburgh2016-07-28 20:52:51 +0000
committerBrian Vosburgh2017-05-18 22:38:35 +0000
commitb1a9f4f947a7ff247e1b77f79f885a7d1eff382b (patch)
treeae22af1f7384d678887b9769f031dfe83366cb74
parentce5e961182c452b99155eba989789b431f4de576 (diff)
downloadwebtools.dali-b1a9f4f947a7ff247e1b77f79f885a7d1eff382b.tar.gz
webtools.dali-b1a9f4f947a7ff247e1b77f79f885a7d1eff382b.tar.xz
webtools.dali-b1a9f4f947a7ff247e1b77f79f885a7d1eff382b.zip
remove explicit aspect adapter casts
-rw-r--r--jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/CachingValueModelTests.java14
-rw-r--r--jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/CustomizationValueModelTests.java5
-rw-r--r--jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/GeneralPropertiesValueModelTests.java5
-rw-r--r--jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/LoggingValueModelTests.java5
-rw-r--r--jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/OptionsValueModelTests.java5
5 files changed, 13 insertions, 21 deletions
diff --git a/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/CachingValueModelTests.java b/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/CachingValueModelTests.java
index 5ed2154fbf..abe0dd8b40 100644
--- a/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/CachingValueModelTests.java
+++ b/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/CachingValueModelTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2012 Oracle. All rights reserved.
+ * Copyright (c) 2008, 2016 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
@@ -85,8 +85,7 @@ public class CachingValueModelTests extends EclipseLinkPersistenceUnitTestCase
public void testHasListeners() {
AbstractModel subjectCaching = (AbstractModel) this.caching; // Subject
- PropertyAspectAdapterXXXX<EclipseLinkCaching, EclipseLinkCacheType> cacheTypeAA =
- (PropertyAspectAdapterXXXX<EclipseLinkCaching, EclipseLinkCacheType>) this.cacheTypeHolder;
+ AbstractModel cacheTypeAA = (AbstractModel) this.cacheTypeHolder;
assertTrue(cacheTypeAA.hasAnyPropertyChangeListeners(PropertyValueModel.VALUE));
assertTrue(subjectCaching.hasAnyPropertyChangeListeners(EclipseLinkCaching.CACHE_TYPE_PROPERTY));
@@ -94,8 +93,7 @@ public class CachingValueModelTests extends EclipseLinkPersistenceUnitTestCase
assertFalse(subjectCaching.hasAnyPropertyChangeListeners(EclipseLinkCaching.CACHE_TYPE_PROPERTY));
assertFalse(cacheTypeAA.hasAnyPropertyChangeListeners(PropertyValueModel.VALUE));
- PropertyAspectAdapterXXXX<EclipseLinkCaching, Boolean> sharedCacheAA =
- (PropertyAspectAdapterXXXX<EclipseLinkCaching, Boolean>) this.sharedCacheHolder;
+ AbstractModel sharedCacheAA = (AbstractModel) this.sharedCacheHolder;
assertTrue(sharedCacheAA.hasAnyPropertyChangeListeners(PropertyValueModel.VALUE));
assertTrue(subjectCaching.hasAnyPropertyChangeListeners(EclipseLinkCaching.SHARED_CACHE_PROPERTY));
@@ -103,8 +101,7 @@ public class CachingValueModelTests extends EclipseLinkPersistenceUnitTestCase
assertFalse(subjectCaching.hasAnyPropertyChangeListeners(EclipseLinkCaching.SHARED_CACHE_PROPERTY));
assertFalse(sharedCacheAA.hasAnyPropertyChangeListeners(PropertyValueModel.VALUE));
- PropertyAspectAdapterXXXX<EclipseLinkCaching, EclipseLinkCacheType> cacheTypeDefaultAA =
- (PropertyAspectAdapterXXXX<EclipseLinkCaching, EclipseLinkCacheType>) this.cacheTypeDefaultHolder;
+ AbstractModel cacheTypeDefaultAA = (AbstractModel) this.cacheTypeDefaultHolder;
assertTrue(cacheTypeDefaultAA.hasAnyPropertyChangeListeners(PropertyValueModel.VALUE));
assertTrue(subjectCaching.hasAnyPropertyChangeListeners(EclipseLinkCaching.CACHE_TYPE_DEFAULT_PROPERTY));
@@ -112,8 +109,7 @@ public class CachingValueModelTests extends EclipseLinkPersistenceUnitTestCase
assertFalse(subjectCaching.hasAnyPropertyChangeListeners(EclipseLinkCaching.CACHE_TYPE_DEFAULT_PROPERTY));
assertFalse(cacheTypeDefaultAA.hasAnyPropertyChangeListeners(PropertyValueModel.VALUE));
- PropertyAspectAdapterXXXX<EclipseLinkCaching, Boolean> sharedCacheDefaultAA =
- (PropertyAspectAdapterXXXX<EclipseLinkCaching, Boolean>) this.sharedCacheDefaultHolder;
+ AbstractModel sharedCacheDefaultAA = (AbstractModel) this.sharedCacheDefaultHolder;
assertTrue(sharedCacheDefaultAA.hasAnyPropertyChangeListeners(PropertyValueModel.VALUE));
assertTrue(subjectCaching.hasAnyPropertyChangeListeners(EclipseLinkCaching.SHARED_CACHE_DEFAULT_PROPERTY));
diff --git a/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/CustomizationValueModelTests.java b/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/CustomizationValueModelTests.java
index 0b2f97b468..ee697bcc14 100644
--- a/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/CustomizationValueModelTests.java
+++ b/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/CustomizationValueModelTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2012 Oracle. All rights reserved.
+ * Copyright (c) 2008, 2016 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
@@ -55,8 +55,7 @@ public class CustomizationValueModelTests extends EclipseLinkPersistenceUnitTest
public void testHasListeners() {
AbstractModel subjectCustomization = (AbstractModel) this.customization; // Subject
- PropertyAspectAdapterXXXX<EclipseLinkCustomization, Boolean> throwExceptionsAA =
- (PropertyAspectAdapterXXXX<EclipseLinkCustomization, Boolean>) this.throwExceptionsHolder;
+ AbstractModel throwExceptionsAA = (AbstractModel) this.throwExceptionsHolder;
assertTrue(throwExceptionsAA.hasAnyPropertyChangeListeners(PropertyValueModel.VALUE));
assertTrue(subjectCustomization.hasAnyPropertyChangeListeners(EclipseLinkCustomization.THROW_EXCEPTIONS_PROPERTY));
diff --git a/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/GeneralPropertiesValueModelTests.java b/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/GeneralPropertiesValueModelTests.java
index ff459605d5..15eb3fd9c1 100644
--- a/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/GeneralPropertiesValueModelTests.java
+++ b/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/GeneralPropertiesValueModelTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2012 Oracle. All rights reserved.
+ * Copyright (c) 2008, 2016 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
@@ -52,8 +52,7 @@ public class GeneralPropertiesValueModelTests extends EclipseLinkPersistenceUnit
public void testHasListeners() {
AbstractModel subjectGeneralProperty = (AbstractModel) this.generalProperty; // Subject
- PropertyAspectAdapterXXXX<EclipseLinkGeneralProperties, Boolean> excludeEclipselinkOrmAA =
- (PropertyAspectAdapterXXXX<EclipseLinkGeneralProperties, Boolean>) this.excludeEclipselinkOrmHolder;
+ AbstractModel excludeEclipselinkOrmAA = (AbstractModel) this.excludeEclipselinkOrmHolder;
assertTrue(excludeEclipselinkOrmAA.hasAnyPropertyChangeListeners(PropertyValueModel.VALUE));
assertTrue(subjectGeneralProperty.hasAnyPropertyChangeListeners(EclipseLinkGeneralProperties.EXCLUDE_ECLIPSELINK_ORM_PROPERTY));
diff --git a/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/LoggingValueModelTests.java b/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/LoggingValueModelTests.java
index 158537d83b..8ccccd6042 100644
--- a/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/LoggingValueModelTests.java
+++ b/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/LoggingValueModelTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2012 Oracle. All rights reserved.
+ * Copyright (c) 2008, 2016 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
@@ -52,8 +52,7 @@ public class LoggingValueModelTests extends EclipseLinkPersistenceUnitTestCase
public void testHasListeners() {
AbstractModel subjectLogging = (AbstractModel) this.logging; // Subject
- PropertyAspectAdapterXXXX<EclipseLinkLogging, Boolean> timestampAA =
- (PropertyAspectAdapterXXXX<EclipseLinkLogging, Boolean>) this.timestampHolder;
+ AbstractModel timestampAA = (AbstractModel) this.timestampHolder;
assertTrue(timestampAA.hasAnyPropertyChangeListeners(PropertyValueModel.VALUE));
assertTrue(subjectLogging.hasAnyPropertyChangeListeners(EclipseLinkLogging.TIMESTAMP_PROPERTY));
diff --git a/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/OptionsValueModelTests.java b/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/OptionsValueModelTests.java
index 3b095a03b3..ab5dc7fa97 100644
--- a/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/OptionsValueModelTests.java
+++ b/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/src/org/eclipse/jpt/jpa/eclipselink/core/tests/internal/context/persistence/OptionsValueModelTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008, 2012 Oracle. All rights reserved.
+ * Copyright (c) 2008, 2016 Oracle. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0, which accompanies this distribution
* and is available at http://www.eclipse.org/legal/epl-v10.html.
@@ -51,8 +51,7 @@ public class OptionsValueModelTests extends EclipseLinkPersistenceUnitTestCase
public void testHasListeners() {
AbstractModel subjectOptions = (AbstractModel) this.options; // Subject
- PropertyAspectAdapterXXXX<EclipseLinkOptions, Boolean> includeDescriptorQueriesAA =
- (PropertyAspectAdapterXXXX<EclipseLinkOptions, Boolean>) this.includeDescriptorQueriesHolder;
+ AbstractModel includeDescriptorQueriesAA = (AbstractModel) this.includeDescriptorQueriesHolder;
assertTrue(includeDescriptorQueriesAA.hasAnyPropertyChangeListeners(PropertyValueModel.VALUE));
assertTrue(subjectOptions.hasAnyPropertyChangeListeners(EclipseLinkOptions.SESSION_INCLUDE_DESCRIPTOR_QUERIES_PROPERTY));

Back to the top