From fb8fa0a233409c255039912f4bc4171d4b00eccd Mon Sep 17 00:00:00 2001 From: Deepak Azad Date: Fri, 9 Mar 2012 21:20:53 +0100 Subject: fTextStore doesn't need to be protected --- .../src/org/eclipse/text/tests/CopyOnWriteTextStoreTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'org.eclipse.text.tests') diff --git a/org.eclipse.text.tests/src/org/eclipse/text/tests/CopyOnWriteTextStoreTest.java b/org.eclipse.text.tests/src/org/eclipse/text/tests/CopyOnWriteTextStoreTest.java index 589aa7b3367..2fc930e2eb6 100644 --- a/org.eclipse.text.tests/src/org/eclipse/text/tests/CopyOnWriteTextStoreTest.java +++ b/org.eclipse.text.tests/src/org/eclipse/text/tests/CopyOnWriteTextStoreTest.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2008 IBM Corporation and others. + * Copyright (c) 2005, 2012 IBM Corporation and others. * 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 @@ -31,7 +31,7 @@ public class CopyOnWriteTextStoreTest extends TestCase { super(new GapTextStore()); } ITextStore getStore() { - return fTextStore; + return (ITextStore)new Accessor(this, CopyOnWriteTextStore.class).get("fTextStore"); } String get() { return get(0, getLength()); @@ -68,7 +68,7 @@ public class CopyOnWriteTextStoreTest extends TestCase { // check that underlying text store is not modifiable boolean failed= false; try { - fText.getStore().replace(0,0,null); + fText.getStore().replace(0, 0, null); } catch (UnsupportedOperationException uoe) { failed= true; } @@ -91,7 +91,7 @@ public class CopyOnWriteTextStoreTest extends TestCase { // check that underlying text store is not modifiable boolean failed= false; try { - fText.getStore().replace(0,0,null); + fText.getStore().replace(0, 0, null); } catch (UnsupportedOperationException uoe) { failed= true; } -- cgit v1.2.3