You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by re...@apache.org on 2018/09/06 18:15:06 UTC
svn commit: r1840255 - in /jackrabbit/branches/2.12: ./
jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/flat/BTreeManager.java
Author: reschke
Date: Thu Sep 6 18:15:06 2018
New Revision: 1840255
URL: http://svn.apache.org/viewvc?rev=1840255&view=rev
Log:
JCR-4302: BTreeManager: fix Eclipse compiler error (ported to 2.12)
Modified:
jackrabbit/branches/2.12/ (props changed)
jackrabbit/branches/2.12/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/flat/BTreeManager.java
Propchange: jackrabbit/branches/2.12/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Sep 6 18:15:06 2018
@@ -1,4 +1,4 @@
/jackrabbit/branches/2.14:1813154,1813337
/jackrabbit/branches/JCR-2272:1173165-1176545
/jackrabbit/sandbox/JCR-2415-lucene-3.0:1060860-1064038
-/jackrabbit/trunk:1730696,1732436,1751279,1752165,1753226,1757322,1758600,1759607,1759782,1759865,1759933,1761679,1761909,1762422,1763558,1766398,1768684,1771078,1771741,1771939,1771999,1772049,1772299,1772343,1772444,1772457,1772530,1772544,1772597,1772822,1773579,1773591,1773745,1774021,1774443,1775123,1775132,1775315,1775384,1775414,1775419,1775437,1775444,1775463,1775472-1775473,1775481,1775485,1775496,1775509,1775514,1775613,1775617,1775621,1775624,1775629,1775631-1775632,1775634-1775635,1775637,1775657,1776410,1776414,1776416-1776417,1776421,1776907,1776911-1776912,1776914,1776918,1779166,1779460,1779632,1780208,1786325,1787043,1787381,1792100,1792105,1792113,1792193,1793315,1793323,1793327,1793332,1796980,1797209,1797917,1798586,1799429,1802977,1807234,1807244,1808752,1808754,1809149,1809329,1809624,1810108,1811667,1812543,1812634,1812994,1814831,1817097-1817098,1817100,1817201,1817377,1818586,1819269,1820119,1820133,1821597,1821705,1822863,1822947,1822950,1824756,1824763-182
4764,1824771,1826178,1826230,1826647,1826940,1826964,1828213,1832058,1833374
+/jackrabbit/trunk:1730696,1732436,1751279,1752165,1753226,1757322,1758600,1759607,1759782,1759865,1759933,1761679,1761909,1762422,1763558,1766398,1768684,1771078,1771741,1771939,1771999,1772049,1772299,1772343,1772444,1772457,1772530,1772544,1772597,1772822,1773579,1773591,1773745,1774021,1774443,1775123,1775132,1775315,1775384,1775414,1775419,1775437,1775444,1775463,1775472-1775473,1775481,1775485,1775496,1775509,1775514,1775613,1775617,1775621,1775624,1775629,1775631-1775632,1775634-1775635,1775637,1775657,1776410,1776414,1776416-1776417,1776421,1776907,1776911-1776912,1776914,1776918,1779166,1779460,1779632,1780208,1786325,1787043,1787381,1792100,1792105,1792113,1792193,1793315,1793323,1793327,1793332,1796980,1797209,1797917,1798586,1799429,1802977,1807234,1807244,1808752,1808754,1809149,1809329,1809624,1810108,1811667,1812543,1812634,1812994,1814831,1817097-1817098,1817100,1817201,1817377,1818586,1819269,1820119,1820133,1821597,1821705,1822863,1822947,1822950,1824756,1824763-182
4764,1824771,1826178,1826230,1826647,1826940,1826964,1828213,1831854,1832058,1833374
Modified: jackrabbit/branches/2.12/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/flat/BTreeManager.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/2.12/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/flat/BTreeManager.java?rev=1840255&r1=1840254&r2=1840255&view=diff
==============================================================================
--- jackrabbit/branches/2.12/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/flat/BTreeManager.java (original)
+++ jackrabbit/branches/2.12/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/flat/BTreeManager.java Thu Sep 6 18:15:06 2018
@@ -265,17 +265,17 @@ public class BTreeManager implements Tre
/**
* Returns a {@link SizedIterator} of the child nodes of <code>node</code>.
*/
- @SuppressWarnings({ "deprecation", "unchecked" })
+ @SuppressWarnings("deprecation")
protected SizedIterator<Node> getNodes(Node node) throws RepositoryException {
NodeIterator nodes = node.getNodes();
- return getSizedIterator(nodes, nodes.getSize());
+ return getSizedIterator(convert(nodes), nodes.getSize());
}
/**
* Returns a {@link SizedIterator} of the properties of <code>node</code>
* which excludes the <code>jcr.primaryType</code> property.
*/
- @SuppressWarnings({ "deprecation", "unchecked" })
+ @SuppressWarnings("deprecation")
protected SizedIterator<Property> getProperties(Node node) throws RepositoryException {
final PropertyIterator properties = node.getProperties();
@@ -286,7 +286,7 @@ public class BTreeManager implements Tre
}
}
- return getSizedIterator(filterProperties(properties), size);
+ return getSizedIterator(filterProperties(convert(properties)), size);
}
/**
@@ -342,6 +342,16 @@ public class BTreeManager implements Tre
// -----------------------------------------------------< internal >---
+ @SuppressWarnings("unchecked")
+ private static Iterator<Property> convert(PropertyIterator it) {
+ return it;
+ }
+
+ @SuppressWarnings("unchecked")
+ private static Iterator<Node> convert(NodeIterator it) {
+ return it;
+ }
+
private <T extends Item> void split(Node node, Rank<T> ranking, ItemSequence itemSequence) throws RepositoryException {
if (ranking.size() <= maxChildren) {
return;