[Minor] fixed compiler warnings

This commit is contained in:
Robert von Burg 2013-10-19 17:49:27 +02:00
parent 30ddf3cfbf
commit 5be5cd3fa0
7 changed files with 18 additions and 4 deletions

View File

@ -50,10 +50,18 @@ public enum IoMode {
}
};
/**
* @param ctx
* @param fileIo
*/
public <T> void write(PersistenceContext<T> ctx, FileIo fileIo) {
throw new UnsupportedOperationException("Override me!"); //$NON-NLS-1$
}
/**
* @param ctx
* @param fileIo
*/
public <T> void read(PersistenceContext<T> ctx, FileIo fileIo) {
throw new UnsupportedOperationException("Override me!"); //$NON-NLS-1$
}

View File

@ -15,6 +15,9 @@ public enum TransactionCloseStrategy {
}
};
/**
* @param tx
*/
public void close(PersistenceTransaction tx) {
throw new UnsupportedOperationException("Override in enum!"); //$NON-NLS-1$
}

View File

@ -22,6 +22,7 @@ public class IdOfSubTypeRef extends ObjectRef {
this.id = id;
}
@Override
public String getType() {
return this.type;
}

View File

@ -20,6 +20,7 @@ public class IdOfTypeRef extends ObjectRef {
this.id = id;
}
@Override
public String getType() {
return this.type;
}

View File

@ -18,6 +18,7 @@ public class SubTypeRef extends ObjectRef {
this.subType = subType;
}
@Override
public String getType() {
return this.type;
}

View File

@ -16,6 +16,7 @@ public class TypeRef extends ObjectRef {
this.type = type;
}
@Override
public String getType() {
return this.type;
}

View File

@ -80,7 +80,7 @@ public class FileDaoTest extends AbstractPersistenceTest {
try (PersistenceTransaction tx = new DefaultPersistenceTransaction(this.realm, VERBOSE)) {
FileDao fileDao = new FileDao(tx, this.pathBuilder, VERBOSE);
tx.setIoMode(IoMode.SAX);
testCrud(tx, this.realm.getCtxFactoryDelegator(), fileDao);
testCrud(this.realm.getCtxFactoryDelegator(), fileDao);
}
}
@ -90,12 +90,11 @@ public class FileDaoTest extends AbstractPersistenceTest {
try (PersistenceTransaction tx = new DefaultPersistenceTransaction(this.realm, VERBOSE)) {
FileDao fileDao = new FileDao(tx, this.pathBuilder, VERBOSE);
tx.setIoMode(IoMode.DOM);
testCrud(tx, this.realm.getCtxFactoryDelegator(), fileDao);
testCrud(this.realm.getCtxFactoryDelegator(), fileDao);
}
}
private void testCrud(PersistenceTransaction tx, PersistenceContextFactoryDelegator ctxFactoryDelegator,
FileDao fileDao) {
private void testCrud(PersistenceContextFactoryDelegator ctxFactoryDelegator, FileDao fileDao) {
Resource resource = createResource();
assertResource(resource);