commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wik...@apache.org
Subject svn commit: r1001470 [13/36] - in /websites/production/commonsrdf/content: ./ apidocs/ apidocs/org/apache/commons/rdf/api/ apidocs/org/apache/commons/rdf/api/class-use/ apidocs/org/apache/commons/rdf/experimental/ apidocs/org/apache/commons/rdf/experim...
Date Tue, 22 Nov 2016 07:55:40 GMT
Modified: websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/simple/SimpleRDFTermFactory.html
==============================================================================
--- websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/simple/SimpleRDFTermFactory.html
(original)
+++ websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/simple/SimpleRDFTermFactory.html
Tue Nov 22 07:55:35 2016
@@ -42,40 +42,48 @@
 <span class="sourceLineNo">034</span>@Deprecated<a name="line.34"></a>
 <span class="sourceLineNo">035</span>public class SimpleRDFTermFactory implements
RDFTermFactory {<a name="line.35"></a>
 <span class="sourceLineNo">036</span><a name="line.36"></a>
-<span class="sourceLineNo">037</span>    private SimpleRDF factory = new SimpleRDF();<a
name="line.37"></a>
+<span class="sourceLineNo">037</span>    private final SimpleRDF factory = new
SimpleRDF();<a name="line.37"></a>
 <span class="sourceLineNo">038</span><a name="line.38"></a>
-<span class="sourceLineNo">039</span>    public BlankNode createBlankNode() {<a
name="line.39"></a>
-<span class="sourceLineNo">040</span>        return factory.createBlankNode();<a
name="line.40"></a>
-<span class="sourceLineNo">041</span>    }<a name="line.41"></a>
-<span class="sourceLineNo">042</span><a name="line.42"></a>
-<span class="sourceLineNo">043</span>    public BlankNode createBlankNode(String
name) {<a name="line.43"></a>
-<span class="sourceLineNo">044</span>        return factory.createBlankNode(name);<a
name="line.44"></a>
-<span class="sourceLineNo">045</span>    }<a name="line.45"></a>
-<span class="sourceLineNo">046</span><a name="line.46"></a>
-<span class="sourceLineNo">047</span>    public Graph createGraph() {<a name="line.47"></a>
-<span class="sourceLineNo">048</span>        return factory.createGraph();<a
name="line.48"></a>
-<span class="sourceLineNo">049</span>    }<a name="line.49"></a>
-<span class="sourceLineNo">050</span><a name="line.50"></a>
-<span class="sourceLineNo">051</span>    public IRI createIRI(String iri) {<a
name="line.51"></a>
-<span class="sourceLineNo">052</span>        return factory.createIRI(iri);<a
name="line.52"></a>
-<span class="sourceLineNo">053</span>    }<a name="line.53"></a>
-<span class="sourceLineNo">054</span><a name="line.54"></a>
-<span class="sourceLineNo">055</span>    public Literal createLiteral(String
literal) {<a name="line.55"></a>
-<span class="sourceLineNo">056</span>        return factory.createLiteral(literal);<a
name="line.56"></a>
+<span class="sourceLineNo">039</span>    @Override<a name="line.39"></a>
+<span class="sourceLineNo">040</span>    public BlankNode createBlankNode() {<a
name="line.40"></a>
+<span class="sourceLineNo">041</span>        return factory.createBlankNode();<a
name="line.41"></a>
+<span class="sourceLineNo">042</span>    }<a name="line.42"></a>
+<span class="sourceLineNo">043</span><a name="line.43"></a>
+<span class="sourceLineNo">044</span>    @Override<a name="line.44"></a>
+<span class="sourceLineNo">045</span>    public BlankNode createBlankNode(final
String name) {<a name="line.45"></a>
+<span class="sourceLineNo">046</span>        return factory.createBlankNode(name);<a
name="line.46"></a>
+<span class="sourceLineNo">047</span>    }<a name="line.47"></a>
+<span class="sourceLineNo">048</span><a name="line.48"></a>
+<span class="sourceLineNo">049</span>    @Override<a name="line.49"></a>
+<span class="sourceLineNo">050</span>    public Graph createGraph() {<a name="line.50"></a>
+<span class="sourceLineNo">051</span>        return factory.createGraph();<a
name="line.51"></a>
+<span class="sourceLineNo">052</span>    }<a name="line.52"></a>
+<span class="sourceLineNo">053</span><a name="line.53"></a>
+<span class="sourceLineNo">054</span>    @Override<a name="line.54"></a>
+<span class="sourceLineNo">055</span>    public IRI createIRI(final String iri)
{<a name="line.55"></a>
+<span class="sourceLineNo">056</span>        return factory.createIRI(iri);<a
name="line.56"></a>
 <span class="sourceLineNo">057</span>    }<a name="line.57"></a>
 <span class="sourceLineNo">058</span><a name="line.58"></a>
-<span class="sourceLineNo">059</span>    public Literal createLiteral(String
literal, IRI dataType) {<a name="line.59"></a>
-<span class="sourceLineNo">060</span>        return factory.createLiteral(literal,
dataType);<a name="line.60"></a>
-<span class="sourceLineNo">061</span>    }<a name="line.61"></a>
-<span class="sourceLineNo">062</span><a name="line.62"></a>
-<span class="sourceLineNo">063</span>    public Literal createLiteral(String
literal, String language) {<a name="line.63"></a>
-<span class="sourceLineNo">064</span>        return factory.createLiteral(literal,
language);<a name="line.64"></a>
-<span class="sourceLineNo">065</span>    }<a name="line.65"></a>
-<span class="sourceLineNo">066</span><a name="line.66"></a>
-<span class="sourceLineNo">067</span>    public Triple createTriple(BlankNodeOrIRI
subject, IRI predicate, RDFTerm object) {<a name="line.67"></a>
-<span class="sourceLineNo">068</span>        return factory.createTriple(subject,
predicate, object);<a name="line.68"></a>
-<span class="sourceLineNo">069</span>    }<a name="line.69"></a>
-<span class="sourceLineNo">070</span>}<a name="line.70"></a>
+<span class="sourceLineNo">059</span>    @Override<a name="line.59"></a>
+<span class="sourceLineNo">060</span>    public Literal createLiteral(final String
literal) {<a name="line.60"></a>
+<span class="sourceLineNo">061</span>        return factory.createLiteral(literal);<a
name="line.61"></a>
+<span class="sourceLineNo">062</span>    }<a name="line.62"></a>
+<span class="sourceLineNo">063</span><a name="line.63"></a>
+<span class="sourceLineNo">064</span>    @Override<a name="line.64"></a>
+<span class="sourceLineNo">065</span>    public Literal createLiteral(final String
literal, final IRI dataType) {<a name="line.65"></a>
+<span class="sourceLineNo">066</span>        return factory.createLiteral(literal,
dataType);<a name="line.66"></a>
+<span class="sourceLineNo">067</span>    }<a name="line.67"></a>
+<span class="sourceLineNo">068</span><a name="line.68"></a>
+<span class="sourceLineNo">069</span>    @Override<a name="line.69"></a>
+<span class="sourceLineNo">070</span>    public Literal createLiteral(final String
literal, final String language) {<a name="line.70"></a>
+<span class="sourceLineNo">071</span>        return factory.createLiteral(literal,
language);<a name="line.71"></a>
+<span class="sourceLineNo">072</span>    }<a name="line.72"></a>
+<span class="sourceLineNo">073</span><a name="line.73"></a>
+<span class="sourceLineNo">074</span>    @Override<a name="line.74"></a>
+<span class="sourceLineNo">075</span>    public Triple createTriple(final BlankNodeOrIRI
subject, final IRI predicate, final RDFTerm object) {<a name="line.75"></a>
+<span class="sourceLineNo">076</span>        return factory.createTriple(subject,
predicate, object);<a name="line.76"></a>
+<span class="sourceLineNo">077</span>    }<a name="line.77"></a>
+<span class="sourceLineNo">078</span>}<a name="line.78"></a>
 
 
 

Modified: websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/simple/Types.html
==============================================================================
--- websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/simple/Types.html
(original)
+++ websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/simple/Types.html
Tue Nov 22 07:55:35 2016
@@ -248,7 +248,7 @@
 <span class="sourceLineNo">240</span>    private static final Set&lt;IRI&gt;
ALL_TYPES;<a name="line.240"></a>
 <span class="sourceLineNo">241</span><a name="line.241"></a>
 <span class="sourceLineNo">242</span>    static {<a name="line.242"></a>
-<span class="sourceLineNo">243</span>        Set&lt;IRI&gt; tempTypes
= new LinkedHashSet&lt;&gt;();<a name="line.243"></a>
+<span class="sourceLineNo">243</span>        final Set&lt;IRI&gt; tempTypes
= new LinkedHashSet&lt;&gt;();<a name="line.243"></a>
 <span class="sourceLineNo">244</span>        tempTypes.add(RDF_HTML);<a name="line.244"></a>
 <span class="sourceLineNo">245</span>        tempTypes.add(RDF_LANGSTRING);<a
name="line.245"></a>
 <span class="sourceLineNo">246</span>        tempTypes.add(RDF_PLAINLITERAL);<a
name="line.246"></a>
@@ -295,7 +295,7 @@
 <span class="sourceLineNo">287</span><a name="line.287"></a>
 <span class="sourceLineNo">288</span>    private final IRI field;<a name="line.288"></a>
 <span class="sourceLineNo">289</span><a name="line.289"></a>
-<span class="sourceLineNo">290</span>    private Types(String field) {<a name="line.290"></a>
+<span class="sourceLineNo">290</span>    private Types(final String field) {<a
name="line.290"></a>
 <span class="sourceLineNo">291</span>        this.field = new IRIImpl(field);<a
name="line.291"></a>
 <span class="sourceLineNo">292</span>    }<a name="line.292"></a>
 <span class="sourceLineNo">293</span><a name="line.293"></a>
@@ -310,7 +310,7 @@
 <span class="sourceLineNo">302</span>    }<a name="line.302"></a>
 <span class="sourceLineNo">303</span><a name="line.303"></a>
 <span class="sourceLineNo">304</span>    @Override<a name="line.304"></a>
-<span class="sourceLineNo">305</span>    public boolean equals(Object other)
{<a name="line.305"></a>
+<span class="sourceLineNo">305</span>    public boolean equals(final Object other)
{<a name="line.305"></a>
 <span class="sourceLineNo">306</span>        return this.field.equals(other);<a
name="line.306"></a>
 <span class="sourceLineNo">307</span>    }<a name="line.307"></a>
 <span class="sourceLineNo">308</span><a name="line.308"></a>
@@ -343,11 +343,11 @@
 <span class="sourceLineNo">335</span>     * @return An {@link Optional} containing
the IRI from this collection or<a name="line.335"></a>
 <span class="sourceLineNo">336</span>     *         {@link Optional#empty()}
if it is not present here.<a name="line.336"></a>
 <span class="sourceLineNo">337</span>     */<a name="line.337"></a>
-<span class="sourceLineNo">338</span>    public static Optional&lt;IRI&gt;
get(IRI nextIRI) {<a name="line.338"></a>
+<span class="sourceLineNo">338</span>    public static Optional&lt;IRI&gt;
get(final IRI nextIRI) {<a name="line.338"></a>
 <span class="sourceLineNo">339</span>        if (ALL_TYPES.contains(nextIRI))
{<a name="line.339"></a>
 <span class="sourceLineNo">340</span>            // If we know about this IRI,
then look through our set to find the<a name="line.340"></a>
 <span class="sourceLineNo">341</span>            // object that matches and return
it<a name="line.341"></a>
-<span class="sourceLineNo">342</span>            for (IRI nextType : ALL_TYPES)
{<a name="line.342"></a>
+<span class="sourceLineNo">342</span>            for (final IRI nextType : ALL_TYPES)
{<a name="line.342"></a>
 <span class="sourceLineNo">343</span>                if (nextType.equals(nextIRI))
{<a name="line.343"></a>
 <span class="sourceLineNo">344</span>                    return Optional.of(nextType);<a
name="line.344"></a>
 <span class="sourceLineNo">345</span>                }<a name="line.345"></a>

Modified: websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html
==============================================================================
--- websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html
(original)
+++ websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.html
Tue Nov 22 07:55:35 2016
@@ -227,7 +227,7 @@
 <span class="sourceLineNo">219</span>    public T clone() {<a name="line.219"></a>
 <span class="sourceLineNo">220</span>        try {<a name="line.220"></a>
 <span class="sourceLineNo">221</span>            return (T) super.clone();<a
name="line.221"></a>
-<span class="sourceLineNo">222</span>        } catch (CloneNotSupportedException
e) {<a name="line.222"></a>
+<span class="sourceLineNo">222</span>        } catch (final CloneNotSupportedException
e) {<a name="line.222"></a>
 <span class="sourceLineNo">223</span>            throw new RuntimeException(e);<a
name="line.223"></a>
 <span class="sourceLineNo">224</span>        }<a name="line.224"></a>
 <span class="sourceLineNo">225</span>    }<a name="line.225"></a>
@@ -238,60 +238,60 @@
 <span class="sourceLineNo">230</span>    }<a name="line.230"></a>
 <span class="sourceLineNo">231</span><a name="line.231"></a>
 <span class="sourceLineNo">232</span>    @Override<a name="line.232"></a>
-<span class="sourceLineNo">233</span>    public T rdfTermFactory(RDF rdfTermFactory)
{<a name="line.233"></a>
-<span class="sourceLineNo">234</span>        AbstractRDFParser&lt;T&gt;
c = clone();<a name="line.234"></a>
+<span class="sourceLineNo">233</span>    public T rdfTermFactory(final RDF rdfTermFactory)
{<a name="line.233"></a>
+<span class="sourceLineNo">234</span>        final AbstractRDFParser&lt;T&gt;
c = clone();<a name="line.234"></a>
 <span class="sourceLineNo">235</span>        c.rdfTermFactory = Optional.ofNullable(rdfTermFactory);<a
name="line.235"></a>
 <span class="sourceLineNo">236</span>        return c.asT();<a name="line.236"></a>
 <span class="sourceLineNo">237</span>    }<a name="line.237"></a>
 <span class="sourceLineNo">238</span><a name="line.238"></a>
 <span class="sourceLineNo">239</span>    @Override<a name="line.239"></a>
-<span class="sourceLineNo">240</span>    public T contentType(RDFSyntax rdfSyntax)
throws IllegalArgumentException {<a name="line.240"></a>
-<span class="sourceLineNo">241</span>        AbstractRDFParser&lt;T&gt;
c = clone();<a name="line.241"></a>
+<span class="sourceLineNo">240</span>    public T contentType(final RDFSyntax
rdfSyntax) throws IllegalArgumentException {<a name="line.240"></a>
+<span class="sourceLineNo">241</span>        final AbstractRDFParser&lt;T&gt;
c = clone();<a name="line.241"></a>
 <span class="sourceLineNo">242</span>        c.contentTypeSyntax = Optional.ofNullable(rdfSyntax);<a
name="line.242"></a>
 <span class="sourceLineNo">243</span>        c.contentType = c.contentTypeSyntax.map(syntax
-&gt; syntax.mediaType);<a name="line.243"></a>
 <span class="sourceLineNo">244</span>        return c.asT();<a name="line.244"></a>
 <span class="sourceLineNo">245</span>    }<a name="line.245"></a>
 <span class="sourceLineNo">246</span><a name="line.246"></a>
 <span class="sourceLineNo">247</span>    @Override<a name="line.247"></a>
-<span class="sourceLineNo">248</span>    public T contentType(String contentType)
throws IllegalArgumentException {<a name="line.248"></a>
-<span class="sourceLineNo">249</span>        AbstractRDFParser&lt;T&gt;
c = clone();<a name="line.249"></a>
+<span class="sourceLineNo">248</span>    public T contentType(final String contentType)
throws IllegalArgumentException {<a name="line.248"></a>
+<span class="sourceLineNo">249</span>        final AbstractRDFParser&lt;T&gt;
c = clone();<a name="line.249"></a>
 <span class="sourceLineNo">250</span>        c.contentType = Optional.ofNullable(contentType);<a
name="line.250"></a>
 <span class="sourceLineNo">251</span>        c.contentTypeSyntax = c.contentType.flatMap(RDFSyntax::byMediaType);<a
name="line.251"></a>
 <span class="sourceLineNo">252</span>        return c.asT();<a name="line.252"></a>
 <span class="sourceLineNo">253</span>    }<a name="line.253"></a>
 <span class="sourceLineNo">254</span><a name="line.254"></a>
 <span class="sourceLineNo">255</span>    @Override<a name="line.255"></a>
-<span class="sourceLineNo">256</span>    public T base(IRI base) {<a name="line.256"></a>
-<span class="sourceLineNo">257</span>        AbstractRDFParser&lt;T&gt;
c = clone();<a name="line.257"></a>
+<span class="sourceLineNo">256</span>    public T base(final IRI base) {<a
name="line.256"></a>
+<span class="sourceLineNo">257</span>        final AbstractRDFParser&lt;T&gt;
c = clone();<a name="line.257"></a>
 <span class="sourceLineNo">258</span>        c.base = Optional.ofNullable(base);<a
name="line.258"></a>
 <span class="sourceLineNo">259</span>        c.base.ifPresent(i -&gt; checkIsAbsolute(i));<a
name="line.259"></a>
 <span class="sourceLineNo">260</span>        return c.asT();<a name="line.260"></a>
 <span class="sourceLineNo">261</span>    }<a name="line.261"></a>
 <span class="sourceLineNo">262</span><a name="line.262"></a>
 <span class="sourceLineNo">263</span>    @Override<a name="line.263"></a>
-<span class="sourceLineNo">264</span>    public T base(String base) throws IllegalArgumentException
{<a name="line.264"></a>
+<span class="sourceLineNo">264</span>    public T base(final String base) throws
IllegalArgumentException {<a name="line.264"></a>
 <span class="sourceLineNo">265</span>        return base(internalRdfTermFactory.createIRI(base));<a
name="line.265"></a>
 <span class="sourceLineNo">266</span>    }<a name="line.266"></a>
 <span class="sourceLineNo">267</span><a name="line.267"></a>
 <span class="sourceLineNo">268</span>    @Override<a name="line.268"></a>
-<span class="sourceLineNo">269</span>    public T source(InputStream inputStream)
{<a name="line.269"></a>
-<span class="sourceLineNo">270</span>        AbstractRDFParser&lt;T&gt;
c = clone();<a name="line.270"></a>
+<span class="sourceLineNo">269</span>    public T source(final InputStream inputStream)
{<a name="line.269"></a>
+<span class="sourceLineNo">270</span>        final AbstractRDFParser&lt;T&gt;
c = clone();<a name="line.270"></a>
 <span class="sourceLineNo">271</span>        c.resetSource();<a name="line.271"></a>
 <span class="sourceLineNo">272</span>        c.sourceInputStream = Optional.ofNullable(inputStream);<a
name="line.272"></a>
 <span class="sourceLineNo">273</span>        return c.asT();<a name="line.273"></a>
 <span class="sourceLineNo">274</span>    }<a name="line.274"></a>
 <span class="sourceLineNo">275</span><a name="line.275"></a>
 <span class="sourceLineNo">276</span>    @Override<a name="line.276"></a>
-<span class="sourceLineNo">277</span>    public T source(Path file) {<a name="line.277"></a>
-<span class="sourceLineNo">278</span>        AbstractRDFParser&lt;T&gt;
c = clone();<a name="line.278"></a>
+<span class="sourceLineNo">277</span>    public T source(final Path file) {<a
name="line.277"></a>
+<span class="sourceLineNo">278</span>        final AbstractRDFParser&lt;T&gt;
c = clone();<a name="line.278"></a>
 <span class="sourceLineNo">279</span>        c.resetSource();<a name="line.279"></a>
 <span class="sourceLineNo">280</span>        c.sourceFile = Optional.ofNullable(file);<a
name="line.280"></a>
 <span class="sourceLineNo">281</span>        return c.asT();<a name="line.281"></a>
 <span class="sourceLineNo">282</span>    }<a name="line.282"></a>
 <span class="sourceLineNo">283</span><a name="line.283"></a>
 <span class="sourceLineNo">284</span>    @Override<a name="line.284"></a>
-<span class="sourceLineNo">285</span>    public T source(IRI iri) {<a name="line.285"></a>
-<span class="sourceLineNo">286</span>        AbstractRDFParser&lt;T&gt;
c = clone();<a name="line.286"></a>
+<span class="sourceLineNo">285</span>    public T source(final IRI iri) {<a
name="line.285"></a>
+<span class="sourceLineNo">286</span>        final AbstractRDFParser&lt;T&gt;
c = clone();<a name="line.286"></a>
 <span class="sourceLineNo">287</span>        c.resetSource();<a name="line.287"></a>
 <span class="sourceLineNo">288</span>        c.sourceIri = Optional.ofNullable(iri);<a
name="line.288"></a>
 <span class="sourceLineNo">289</span>        c.sourceIri.ifPresent(i -&gt;
checkIsAbsolute(i));<a name="line.289"></a>
@@ -299,8 +299,8 @@
 <span class="sourceLineNo">291</span>    }<a name="line.291"></a>
 <span class="sourceLineNo">292</span><a name="line.292"></a>
 <span class="sourceLineNo">293</span>    @Override<a name="line.293"></a>
-<span class="sourceLineNo">294</span>    public T source(String iri) throws IllegalArgumentException
{<a name="line.294"></a>
-<span class="sourceLineNo">295</span>        AbstractRDFParser&lt;T&gt;
c = clone();<a name="line.295"></a>
+<span class="sourceLineNo">294</span>    public T source(final String iri) throws
IllegalArgumentException {<a name="line.294"></a>
+<span class="sourceLineNo">295</span>        final AbstractRDFParser&lt;T&gt;
c = clone();<a name="line.295"></a>
 <span class="sourceLineNo">296</span>        c.resetSource();<a name="line.296"></a>
 <span class="sourceLineNo">297</span>        c.sourceIri = Optional.ofNullable(iri).map(internalRdfTermFactory::createIRI);<a
name="line.297"></a>
 <span class="sourceLineNo">298</span>        c.sourceIri.ifPresent(i -&gt;
checkIsAbsolute(i));<a name="line.298"></a>
@@ -317,7 +317,7 @@
 <span class="sourceLineNo">309</span>     * @throws IllegalArgumentException<a
name="line.309"></a>
 <span class="sourceLineNo">310</span>     *             If the IRI is not absolute<a
name="line.310"></a>
 <span class="sourceLineNo">311</span>     */<a name="line.311"></a>
-<span class="sourceLineNo">312</span>    protected void checkIsAbsolute(IRI iri)
throws IllegalArgumentException {<a name="line.312"></a>
+<span class="sourceLineNo">312</span>    protected void checkIsAbsolute(final
IRI iri) throws IllegalArgumentException {<a name="line.312"></a>
 <span class="sourceLineNo">313</span>        if (!URI.create(iri.getIRIString()).isAbsolute())
{<a name="line.313"></a>
 <span class="sourceLineNo">314</span>            throw new IllegalArgumentException("IRI
is not absolute: " + iri);<a name="line.314"></a>
 <span class="sourceLineNo">315</span>        }<a name="line.315"></a>
@@ -436,7 +436,7 @@
 <span class="sourceLineNo">428</span><a name="line.428"></a>
 <span class="sourceLineNo">429</span>        // We'll make a clone of our current
state which will be passed to<a name="line.429"></a>
 <span class="sourceLineNo">430</span>        // parseSynchronously()<a name="line.430"></a>
-<span class="sourceLineNo">431</span>        AbstractRDFParser&lt;T&gt;
c = clone();<a name="line.431"></a>
+<span class="sourceLineNo">431</span>        final AbstractRDFParser&lt;T&gt;
c = clone();<a name="line.431"></a>
 <span class="sourceLineNo">432</span><a name="line.432"></a>
 <span class="sourceLineNo">433</span>        // Use a fresh SimpleRDF for each
parse<a name="line.433"></a>
 <span class="sourceLineNo">434</span>        if (!c.rdfTermFactory.isPresent())
{<a name="line.434"></a>
@@ -445,7 +445,7 @@
 <span class="sourceLineNo">437</span>        // sourceFile, but no base? Let's
follow any symlinks and use<a name="line.437"></a>
 <span class="sourceLineNo">438</span>        // the file:/// URI<a name="line.438"></a>
 <span class="sourceLineNo">439</span>        if (c.sourceFile.isPresent() &amp;&amp;
!c.base.isPresent()) {<a name="line.439"></a>
-<span class="sourceLineNo">440</span>            URI baseUri = c.sourceFile.get().toRealPath().toUri();<a
name="line.440"></a>
+<span class="sourceLineNo">440</span>            final URI baseUri = c.sourceFile.get().toRealPath().toUri();<a
name="line.440"></a>
 <span class="sourceLineNo">441</span>            c.base = Optional.of(internalRdfTermFactory.createIRI(baseUri.toString()));<a
name="line.441"></a>
 <span class="sourceLineNo">442</span>        }<a name="line.442"></a>
 <span class="sourceLineNo">443</span><a name="line.443"></a>
@@ -492,7 +492,7 @@
 <span class="sourceLineNo">484</span>     *         {@link RDFSyntax#fileExtension},
otherwise<a name="line.484"></a>
 <span class="sourceLineNo">485</span>     *         {@link Optional#empty()}.<a
name="line.485"></a>
 <span class="sourceLineNo">486</span>     */<a name="line.486"></a>
-<span class="sourceLineNo">487</span>    protected static Optional&lt;RDFSyntax&gt;
guessRDFSyntax(Path path) {<a name="line.487"></a>
+<span class="sourceLineNo">487</span>    protected static Optional&lt;RDFSyntax&gt;
guessRDFSyntax(final Path path) {<a name="line.487"></a>
 <span class="sourceLineNo">488</span>        return fileExtension(path).flatMap(RDFSyntax::byFileExtension);<a
name="line.488"></a>
 <span class="sourceLineNo">489</span>    }<a name="line.489"></a>
 <span class="sourceLineNo">490</span><a name="line.490"></a>
@@ -509,13 +509,13 @@
 <span class="sourceLineNo">501</span>     * @return File extension (including
the leading &lt;code&gt;.&lt;/code&gt;, or<a name="line.501"></a>
 <span class="sourceLineNo">502</span>     *         {@link Optional#empty()}
if the path has no extension<a name="line.502"></a>
 <span class="sourceLineNo">503</span>     */<a name="line.503"></a>
-<span class="sourceLineNo">504</span>    private static Optional&lt;String&gt;
fileExtension(Path path) {<a name="line.504"></a>
-<span class="sourceLineNo">505</span>        Path fileName = path.getFileName();<a
name="line.505"></a>
+<span class="sourceLineNo">504</span>    private static Optional&lt;String&gt;
fileExtension(final Path path) {<a name="line.504"></a>
+<span class="sourceLineNo">505</span>        final Path fileName = path.getFileName();<a
name="line.505"></a>
 <span class="sourceLineNo">506</span>        if (fileName == null) {<a name="line.506"></a>
 <span class="sourceLineNo">507</span>            return Optional.empty();<a
name="line.507"></a>
 <span class="sourceLineNo">508</span>        }<a name="line.508"></a>
-<span class="sourceLineNo">509</span>        String filenameStr = fileName.toString();<a
name="line.509"></a>
-<span class="sourceLineNo">510</span>        int last = filenameStr.lastIndexOf(".");<a
name="line.510"></a>
+<span class="sourceLineNo">509</span>        final String filenameStr = fileName.toString();<a
name="line.509"></a>
+<span class="sourceLineNo">510</span>        final int last = filenameStr.lastIndexOf(".");<a
name="line.510"></a>
 <span class="sourceLineNo">511</span>        if (last &gt; -1) {<a name="line.511"></a>
 <span class="sourceLineNo">512</span>            return Optional.of(filenameStr.substring(last));<a
name="line.512"></a>
 <span class="sourceLineNo">513</span>        }<a name="line.513"></a>
@@ -548,33 +548,35 @@
 <span class="sourceLineNo">540</span>    }<a name="line.540"></a>
 <span class="sourceLineNo">541</span><a name="line.541"></a>
 <span class="sourceLineNo">542</span>    @Override<a name="line.542"></a>
-<span class="sourceLineNo">543</span>    public T target(Consumer&lt;Quad&gt;
consumer) {<a name="line.543"></a>
-<span class="sourceLineNo">544</span>        AbstractRDFParser&lt;T&gt;
c = clone();<a name="line.544"></a>
+<span class="sourceLineNo">543</span>    public T target(final Consumer&lt;Quad&gt;
consumer) {<a name="line.543"></a>
+<span class="sourceLineNo">544</span>        final AbstractRDFParser&lt;T&gt;
c = clone();<a name="line.544"></a>
 <span class="sourceLineNo">545</span>        c.resetTarget();<a name="line.545"></a>
 <span class="sourceLineNo">546</span>        c.target = consumer;<a name="line.546"></a>
 <span class="sourceLineNo">547</span>        return c.asT();<a name="line.547"></a>
 <span class="sourceLineNo">548</span>    }<a name="line.548"></a>
 <span class="sourceLineNo">549</span><a name="line.549"></a>
 <span class="sourceLineNo">550</span>    @Override<a name="line.550"></a>
-<span class="sourceLineNo">551</span>    public T target(Dataset dataset) {<a
name="line.551"></a>
+<span class="sourceLineNo">551</span>    public T target(final Dataset dataset)
{<a name="line.551"></a>
 <span class="sourceLineNo">552</span>        @SuppressWarnings({ "rawtypes",
"unchecked" })<a name="line.552"></a>
-<span class="sourceLineNo">553</span>        AbstractRDFParser&lt;T&gt;
c = (AbstractRDFParser) RDFParser.super.target(dataset);<a name="line.553"></a>
-<span class="sourceLineNo">554</span>        c.resetTarget();<a name="line.554"></a>
-<span class="sourceLineNo">555</span>        c.targetDataset = Optional.of(dataset);<a
name="line.555"></a>
-<span class="sourceLineNo">556</span>        return c.asT();<a name="line.556"></a>
-<span class="sourceLineNo">557</span>    }<a name="line.557"></a>
-<span class="sourceLineNo">558</span><a name="line.558"></a>
-<span class="sourceLineNo">559</span>    @Override<a name="line.559"></a>
-<span class="sourceLineNo">560</span>    public T target(Graph graph) {<a
name="line.560"></a>
-<span class="sourceLineNo">561</span>        @SuppressWarnings({ "rawtypes",
"unchecked" }) // super calls our<a name="line.561"></a>
-<span class="sourceLineNo">562</span>                                       
               // .clone()<a name="line.562"></a>
-<span class="sourceLineNo">563</span>        AbstractRDFParser&lt;T&gt;
c = (AbstractRDFParser) RDFParser.super.target(graph);<a name="line.563"></a>
-<span class="sourceLineNo">564</span>        c.resetTarget();<a name="line.564"></a>
-<span class="sourceLineNo">565</span>        c.targetGraph = Optional.of(graph);<a
name="line.565"></a>
-<span class="sourceLineNo">566</span>        return c.asT();<a name="line.566"></a>
-<span class="sourceLineNo">567</span>    }<a name="line.567"></a>
-<span class="sourceLineNo">568</span><a name="line.568"></a>
-<span class="sourceLineNo">569</span>}<a name="line.569"></a>
+<span class="sourceLineNo">553</span>        final<a name="line.553"></a>
+<span class="sourceLineNo">554</span>        AbstractRDFParser&lt;T&gt;
c = (AbstractRDFParser) RDFParser.super.target(dataset);<a name="line.554"></a>
+<span class="sourceLineNo">555</span>        c.resetTarget();<a name="line.555"></a>
+<span class="sourceLineNo">556</span>        c.targetDataset = Optional.of(dataset);<a
name="line.556"></a>
+<span class="sourceLineNo">557</span>        return c.asT();<a name="line.557"></a>
+<span class="sourceLineNo">558</span>    }<a name="line.558"></a>
+<span class="sourceLineNo">559</span><a name="line.559"></a>
+<span class="sourceLineNo">560</span>    @Override<a name="line.560"></a>
+<span class="sourceLineNo">561</span>    public T target(final Graph graph) {<a
name="line.561"></a>
+<span class="sourceLineNo">562</span>        @SuppressWarnings({ "rawtypes",
"unchecked" }) // super calls our<a name="line.562"></a>
+<span class="sourceLineNo">563</span>        final<a name="line.563"></a>
+<span class="sourceLineNo">564</span>                                       
               // .clone()<a name="line.564"></a>
+<span class="sourceLineNo">565</span>        AbstractRDFParser&lt;T&gt;
c = (AbstractRDFParser) RDFParser.super.target(graph);<a name="line.565"></a>
+<span class="sourceLineNo">566</span>        c.resetTarget();<a name="line.566"></a>
+<span class="sourceLineNo">567</span>        c.targetGraph = Optional.of(graph);<a
name="line.567"></a>
+<span class="sourceLineNo">568</span>        return c.asT();<a name="line.568"></a>
+<span class="sourceLineNo">569</span>    }<a name="line.569"></a>
+<span class="sourceLineNo">570</span><a name="line.570"></a>
+<span class="sourceLineNo">571</span>}<a name="line.571"></a>
 
 
 

Modified: websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/simple/experimental/RDFParseException.html
==============================================================================
--- websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/simple/experimental/RDFParseException.html
(original)
+++ websites/production/commonsrdf/content/apidocs/src-html/org/apache/commons/rdf/simple/experimental/RDFParseException.html
Tue Nov 22 07:55:35 2016
@@ -30,24 +30,24 @@
 <span class="sourceLineNo">022</span><a name="line.22"></a>
 <span class="sourceLineNo">023</span>public class RDFParseException extends Exception
{<a name="line.23"></a>
 <span class="sourceLineNo">024</span>    private static final long serialVersionUID
= 5427752643780702976L;<a name="line.24"></a>
-<span class="sourceLineNo">025</span>    private RDFParser builder;<a name="line.25"></a>
+<span class="sourceLineNo">025</span>    private final RDFParser builder;<a
name="line.25"></a>
 <span class="sourceLineNo">026</span><a name="line.26"></a>
-<span class="sourceLineNo">027</span>    public RDFParseException(RDFParser builder)
{<a name="line.27"></a>
+<span class="sourceLineNo">027</span>    public RDFParseException(final RDFParser
builder) {<a name="line.27"></a>
 <span class="sourceLineNo">028</span>        super();<a name="line.28"></a>
 <span class="sourceLineNo">029</span>        this.builder = builder;<a name="line.29"></a>
 <span class="sourceLineNo">030</span>    }<a name="line.30"></a>
 <span class="sourceLineNo">031</span><a name="line.31"></a>
-<span class="sourceLineNo">032</span>    public RDFParseException(RDFParser builder,
String message, Throwable cause) {<a name="line.32"></a>
+<span class="sourceLineNo">032</span>    public RDFParseException(final RDFParser
builder, final String message, final Throwable cause) {<a name="line.32"></a>
 <span class="sourceLineNo">033</span>        super(message, cause);<a name="line.33"></a>
 <span class="sourceLineNo">034</span>        this.builder = builder;<a name="line.34"></a>
 <span class="sourceLineNo">035</span>    }<a name="line.35"></a>
 <span class="sourceLineNo">036</span><a name="line.36"></a>
-<span class="sourceLineNo">037</span>    public RDFParseException(RDFParser builder,
String message) {<a name="line.37"></a>
+<span class="sourceLineNo">037</span>    public RDFParseException(final RDFParser
builder, final String message) {<a name="line.37"></a>
 <span class="sourceLineNo">038</span>        super(message);<a name="line.38"></a>
 <span class="sourceLineNo">039</span>        this.builder = builder;<a name="line.39"></a>
 <span class="sourceLineNo">040</span>    }<a name="line.40"></a>
 <span class="sourceLineNo">041</span><a name="line.41"></a>
-<span class="sourceLineNo">042</span>    public RDFParseException(RDFParser builder,
Throwable cause) {<a name="line.42"></a>
+<span class="sourceLineNo">042</span>    public RDFParseException(final RDFParser
builder, final Throwable cause) {<a name="line.42"></a>
 <span class="sourceLineNo">043</span>        super(cause);<a name="line.43"></a>
 <span class="sourceLineNo">044</span>        this.builder = builder;<a name="line.44"></a>
 <span class="sourceLineNo">045</span>    }<a name="line.45"></a>



Mime
View raw message