From e5328c310698b4d154ae41ce8524adaaf273b0b7 Mon Sep 17 00:00:00 2001 From: John Cortell Date: Thu, 28 Oct 2010 23:14:49 +0000 Subject: [PATCH] Bug 310345: Made validate methods public --- .../src/org/eclipse/cdt/dsf/concurrent/Transaction.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/Transaction.java b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/Transaction.java index 01bc5d9d6c0..ef72971b5ab 100644 --- a/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/Transaction.java +++ b/dsf/org.eclipse.cdt.dsf/src/org/eclipse/cdt/dsf/concurrent/Transaction.java @@ -52,6 +52,7 @@ public abstract class Transaction { fRm.done(); } fRm = rm; + assert fRm != null; execute(); } @@ -124,7 +125,7 @@ public abstract class Transaction { * @throws CoreException * if an error was encountered getting the data from the source */ - protected void validate(ICache cache) throws InvalidCacheException, CoreException { + public void validate(ICache cache) throws InvalidCacheException, CoreException { if (cache.isValid()) { if (!cache.getStatus().isOK()) { throw new CoreException(cache.getStatus()); @@ -148,7 +149,7 @@ public abstract class Transaction { * See {@link #validate(RequestCache)}. This variant simply validates * multiple cache objects. */ - protected void validate(ICache ... caches) throws InvalidCacheException, CoreException { + public void validate(ICache ... caches) throws InvalidCacheException, CoreException { validate(Arrays.asList(caches)); } @@ -156,7 +157,7 @@ public abstract class Transaction { * See {@link #validate(RequestCache)}. This variant simply validates * multiple cache objects. */ - protected void validate(Iterable> caches) throws InvalidCacheException, CoreException { + public void validate(Iterable> caches) throws InvalidCacheException, CoreException { // Check if any of the caches have errors: boolean allValid = true;