From: <tho...@us...> - 2013-12-31 19:43:57
|
Revision: 7710 http://bigdata.svn.sourceforge.net/bigdata/?rev=7710&view=rev Author: thompsonbry Date: 2013-12-31 19:43:51 +0000 (Tue, 31 Dec 2013) Log Message: ----------- final, @Override, and rawtypes/unchecked attributes. Modified Paths: -------------- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/java/com/bigdata/rdf/internal/constraints/SPARQLConstraint.java Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/java/com/bigdata/rdf/internal/constraints/SPARQLConstraint.java =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/java/com/bigdata/rdf/internal/constraints/SPARQLConstraint.java 2013-12-31 19:43:09 UTC (rev 7709) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/java/com/bigdata/rdf/internal/constraints/SPARQLConstraint.java 2013-12-31 19:43:51 UTC (rev 7710) @@ -68,7 +68,8 @@ * The value expression will be automatically wrapped inside an * {@link EBVBOp} if it does not itself evaluate to a boolean. */ - public SPARQLConstraint(final IValueExpression<? extends IV> x) { + @SuppressWarnings("rawtypes") + public SPARQLConstraint(final IValueExpression<? extends IV> x) { this(new BOp[] { wrap(x) }, null/*annocations*/); @@ -77,38 +78,44 @@ /** * Required shallow copy constructor. */ - public SPARQLConstraint(final BOp[] args, - final Map<String, Object> anns) { - + public SPARQLConstraint(final BOp[] args, final Map<String, Object> anns) { + super(args, anns); - + if (args.length != 1 || args[0] == null) - throw new IllegalArgumentException(); + throw new IllegalArgumentException(); } /** * Constructor required for {@link com.bigdata.bop.BOpUtility#deepCopy(FilterNode)}. */ - public SPARQLConstraint(final SPARQLConstraint op) { + public SPARQLConstraint(final SPARQLConstraint<X> op) { + super(op); + } + @SuppressWarnings({ "rawtypes", "unchecked" }) @Override public IValueExpression<? extends XSDBooleanIV> get(final int i) { - return (IValueExpression<? extends XSDBooleanIV>) super.get(i); + + return (IValueExpression<? extends XSDBooleanIV>) super.get(i); + } // public IValueExpression<X> getValueExpression() { // return (IValueExpression<X>) get(0); // } + @Override public boolean accept(final IBindingSet bs) { try { // evaluate the EBV operator - final XSDBooleanIV iv = get(0).get(bs); + @SuppressWarnings("rawtypes") + final XSDBooleanIV iv = get(0).get(bs); return iv.booleanValue(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |