tweak generics to allow subclasses to mutate sentences
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1720 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
parent
5ad86df436
commit
fbb8c66434
|
@ -15,18 +15,18 @@ import java.util.Collection;
|
|||
public class BasicTheory extends AbstractTheory {
|
||||
|
||||
private final IVocabulary vocab;
|
||||
private final Collection<? extends IFormula> sentences;
|
||||
private final Collection<IFormula> sentences;
|
||||
|
||||
protected BasicTheory(IVocabulary vocab, Collection<? extends IFormula> sentences) {
|
||||
protected BasicTheory(IVocabulary vocab, Collection<IFormula> sentences) {
|
||||
this.vocab = vocab;
|
||||
this.sentences = sentences;
|
||||
}
|
||||
|
||||
public static BasicTheory make(IVocabulary vocab, Collection<? extends IFormula> sentences) {
|
||||
public static BasicTheory make(IVocabulary vocab, Collection<IFormula> sentences) {
|
||||
return new BasicTheory(vocab, sentences);
|
||||
}
|
||||
|
||||
public Collection<? extends IFormula> getSentences() {
|
||||
public Collection<IFormula> getSentences() {
|
||||
return sentences;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue