Skip to content

Commit a95f2f0

Browse files
Remove unnecessary throws.
1 parent d0488fa commit a95f2f0

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

tests/objectbox-java-test/src/test/java/io/objectbox/AbstractObjectBoxTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ protected Box<TestEntity> getTestEntityBox() {
100100
}
101101

102102
@After
103-
public void tearDown() throws Exception {
103+
public void tearDown() {
104104
// Collect dangling Cursors and TXs before store closes
105105
System.gc();
106106
System.runFinalization();

tests/objectbox-java-test/src/test/java/io/objectbox/BoxStoreBuilderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void testDefaultStoreNull() {
7878
}
7979

8080
@Test
81-
public void testMaxReaders() throws InterruptedException {
81+
public void testMaxReaders() {
8282
builder = createBoxStoreBuilder(false);
8383
store = builder.maxReaders(1).build();
8484
final Exception[] exHolder = {null};

tests/objectbox-java-test/src/test/java/io/objectbox/CursorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ private void insertTestEntities(String... texts) {
171171
}
172172

173173
@Test
174-
public void testLookupKeyUsingIndex() throws IOException {
174+
public void testLookupKeyUsingIndex() {
175175
insertTestEntities("find me", "not me");
176176

177177
Transaction transaction = store.beginTx();
@@ -247,7 +247,7 @@ public void testGetPropertyId() {
247247
}
248248

249249
@Test
250-
public void testRenew() throws IOException {
250+
public void testRenew() {
251251
insertTestEntities("orange");
252252

253253
Transaction transaction = store.beginReadTx();

tests/objectbox-java-test/src/test/java/io/objectbox/ObjectClassObserverTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ private void testTransform(TestScheduler scheduler) throws InterruptedException
195195
}
196196

197197
@Test
198-
public void testScheduler() throws InterruptedException {
198+
public void testScheduler() {
199199
TestScheduler scheduler = new TestScheduler();
200200
store.subscribe().onlyChanges().on(scheduler).observer(objectClassObserver);
201201

tests/objectbox-java-test/src/test/java/io/objectbox/index/IndexReaderRenewTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public void testOldReaderInThread() throws InterruptedException {
157157
}
158158

159159
@Test
160-
public void testOldReaderWithIndex() throws InterruptedException {
160+
public void testOldReaderWithIndex() {
161161
final Box<EntityLongIndex> box = store.boxFor(EntityLongIndex.class);
162162
final int initialValue = 1;
163163

0 commit comments

Comments
 (0)