summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework')
-rw-r--r--plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/TransactionCache.java10
-rw-r--r--plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/ArtifactTypeAttributesField.java2
-rw-r--r--plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/AssociatedArtifactField.java5
-rw-r--r--plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/BranchAliasesField.java3
-rw-r--r--plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/CollectionField.java4
-rw-r--r--plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/EnumEntryField.java23
6 files changed, 18 insertions, 29 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/TransactionCache.java b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/TransactionCache.java
index 4aa3a6ab9d..698198014b 100644
--- a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/TransactionCache.java
+++ b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/cache/TransactionCache.java
@@ -129,7 +129,7 @@ public class TransactionCache implements IOseeCache<TransactionRecord> {
}
@Override
- public Collection<TransactionRecord> getAllDirty() throws OseeCoreException {
+ public Collection<TransactionRecord> getAllDirty() {
Set<TransactionRecord> dirtys = new HashSet<TransactionRecord>();
for (TransactionRecord record : transactionIdCache.values()) {
if (record.isDirty()) {
@@ -140,15 +140,15 @@ public class TransactionCache implements IOseeCache<TransactionRecord> {
}
@Override
- public void storeAllModified() throws OseeCoreException {
+ public void storeAllModified() {
}
@Override
- public void storeItems(TransactionRecord... items) throws OseeCoreException {
+ public void storeItems(TransactionRecord... items) {
}
@Override
- public void storeItems(Collection<TransactionRecord> toStore) throws OseeCoreException {
+ public void storeItems(Collection<TransactionRecord> toStore) {
}
public TransactionRecord getPriorTransaction(TransactionRecord transactionId) throws OseeCoreException {
@@ -166,7 +166,7 @@ public class TransactionCache implements IOseeCache<TransactionRecord> {
return toReturn;
}
- public Collection<TransactionRecord> getTransactions(Branch branch) throws OseeCoreException {
+ public Collection<TransactionRecord> getTransactions(Branch branch) {
return Collections.emptyList();
}
diff --git a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/ArtifactTypeAttributesField.java b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/ArtifactTypeAttributesField.java
index 6e975e2113..2f3101e4ab 100644
--- a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/ArtifactTypeAttributesField.java
+++ b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/ArtifactTypeAttributesField.java
@@ -35,7 +35,7 @@ public final class ArtifactTypeAttributesField extends AbstractOseeField<Map<IOs
}
@Override
- public Map<IOseeBranch, Collection<AttributeType>> get() throws OseeCoreException {
+ public Map<IOseeBranch, Collection<AttributeType>> get() {
return new HashMap<IOseeBranch, Collection<AttributeType>>(validityMap);
}
diff --git a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/AssociatedArtifactField.java b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/AssociatedArtifactField.java
index a626d69bbb..7914888a53 100644
--- a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/AssociatedArtifactField.java
+++ b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/AssociatedArtifactField.java
@@ -10,7 +10,6 @@
*******************************************************************************/
package org.eclipse.osee.framework.core.model.internal.fields;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.core.model.AbstractOseeField;
/**
@@ -26,12 +25,12 @@ public class AssociatedArtifactField extends AbstractOseeField<Integer> {
}
@Override
- public Integer get() throws OseeCoreException {
+ public Integer get() {
return artId;
}
@Override
- public void set(Integer artId) throws OseeCoreException {
+ public void set(Integer artId) {
boolean wasDifferent = isDifferent(get(), artId);
if (wasDifferent) {
this.artId = artId;
diff --git a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/BranchAliasesField.java b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/BranchAliasesField.java
index 5d848892fd..9dedc1789b 100644
--- a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/BranchAliasesField.java
+++ b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/BranchAliasesField.java
@@ -12,7 +12,6 @@ package org.eclipse.osee.framework.core.model.internal.fields;
import java.util.Collection;
import java.util.HashSet;
-import org.eclipse.osee.framework.core.exception.OseeCoreException;
/**
* @author Roberto E. Escobar
@@ -24,7 +23,7 @@ public class BranchAliasesField extends CollectionField<String> {
}
@Override
- protected Collection<String> checkInput(Collection<String> input) throws OseeCoreException {
+ protected Collection<String> checkInput(Collection<String> input) {
Collection<String> items = new HashSet<String>();
for (String alias : input) {
items.add(alias.toLowerCase());
diff --git a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/CollectionField.java b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/CollectionField.java
index b3ea4273cd..466f73925f 100644
--- a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/CollectionField.java
+++ b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/CollectionField.java
@@ -28,7 +28,7 @@ public class CollectionField<T> extends AbstractOseeField<Collection<T>> {
}
@Override
- public Collection<T> get() throws OseeCoreException {
+ public Collection<T> get() {
return items;
}
@@ -43,6 +43,8 @@ public class CollectionField<T> extends AbstractOseeField<Collection<T>> {
isDirty |= isDifferent;
}
+ @SuppressWarnings("unused")
+ //OseeCoreException is thrown by inherited class
protected Collection<T> checkInput(Collection<T> input) throws OseeCoreException {
return input;
}
diff --git a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/EnumEntryField.java b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/EnumEntryField.java
index cf925a8111..b1e7b51706 100644
--- a/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/EnumEntryField.java
+++ b/plugins/org.eclipse.osee.framework.core.model/src/org/eclipse/osee/framework/core/model/internal/fields/EnumEntryField.java
@@ -13,12 +13,9 @@ package org.eclipse.osee.framework.core.model.internal.fields;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
-import java.util.logging.Level;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.core.model.OseeEnumEntry;
-import org.eclipse.osee.framework.core.model.internal.Activator;
import org.eclipse.osee.framework.core.util.Conditions;
-import org.eclipse.osee.framework.logging.OseeLog;
/**
* @author Roberto E. Escobar
@@ -87,12 +84,8 @@ public class EnumEntryField extends CollectionField<OseeEnumEntry> {
@Override
public void clearDirty() {
super.clearDirty();
- try {
- for (OseeEnumEntry entry : get()) {
- entry.clearDirty();
- }
- } catch (OseeCoreException ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
+ for (OseeEnumEntry entry : get()) {
+ entry.clearDirty();
}
}
@@ -100,15 +93,11 @@ public class EnumEntryField extends CollectionField<OseeEnumEntry> {
public boolean isDirty() {
boolean result = super.isDirty();
if (!result) {
- try {
- for (OseeEnumEntry entry : get()) {
- if (entry.isDirty()) {
- result = true;
- break;
- }
+ for (OseeEnumEntry entry : get()) {
+ if (entry.isDirty()) {
+ result = true;
+ break;
}
- } catch (OseeCoreException ex) {
- OseeLog.log(Activator.class, Level.SEVERE, ex);
}
}
return result;