You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by st...@apache.org on 2005/04/21 16:54:52 UTC
svn commit: r164070 - in
/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core:
NodeImpl.java PropertyImpl.java
Author: stefan
Date: Thu Apr 21 07:54:51 2005
New Revision: 164070
URL: http://svn.apache.org/viewcvs?rev=164070&view=rev
Log:
forgot to perform sanity check on some api entry points
Modified:
incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/NodeImpl.java
incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/PropertyImpl.java
Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/NodeImpl.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/NodeImpl.java?rev=164070&r1=164069&r2=164070&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/NodeImpl.java (original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/NodeImpl.java Thu Apr 21 07:54:51 2005
@@ -2310,6 +2310,7 @@
throws PathNotFoundException, RepositoryException {
// check state of this instance
sanityCheck();
+
PropertyId id = resolveRelativePropertyPath(relPath);
if (id == null) {
throw new PathNotFoundException(relPath);
@@ -2387,6 +2388,9 @@
* {@inheritDoc}
*/
public NodeType getPrimaryNodeType() throws RepositoryException {
+ // check state of this instance
+ sanityCheck();
+
return nodeType;
}
@@ -2394,6 +2398,9 @@
* {@inheritDoc}
*/
public NodeType[] getMixinNodeTypes() throws RepositoryException {
+ // check state of this instance
+ sanityCheck();
+
Set mixinNames = ((NodeState) state).getMixinTypeNames();
if (mixinNames.isEmpty()) {
return new NodeType[0];
@@ -2530,6 +2537,9 @@
* {@inheritDoc}
*/
public PropertyIterator getReferences() throws RepositoryException {
+ // check state of this instance
+ sanityCheck();
+
return getReferences(false);
}
@@ -2537,6 +2547,9 @@
* {@inheritDoc}
*/
public NodeDefinition getDefinition() throws RepositoryException {
+ // check state of this instance
+ sanityCheck();
+
return definition;
}
@@ -2556,7 +2569,8 @@
/**
* {@inheritDoc}
*/
- public PropertyIterator getProperties(String namePattern) throws RepositoryException {
+ public PropertyIterator getProperties(String namePattern)
+ throws RepositoryException {
// check state of this instance
sanityCheck();
@@ -2569,7 +2583,8 @@
/**
* {@inheritDoc}
*/
- public Item getPrimaryItem() throws ItemNotFoundException, RepositoryException {
+ public Item getPrimaryItem()
+ throws ItemNotFoundException, RepositoryException {
// check state of this instance
sanityCheck();
@@ -2589,7 +2604,8 @@
/**
* {@inheritDoc}
*/
- public String getUUID() throws UnsupportedRepositoryOperationException, RepositoryException {
+ public String getUUID()
+ throws UnsupportedRepositoryOperationException, RepositoryException {
// check state of this instance
sanityCheck();
Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/PropertyImpl.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/PropertyImpl.java?rev=164070&r1=164069&r2=164070&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/PropertyImpl.java (original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/PropertyImpl.java Thu Apr 21 07:54:51 2005
@@ -1161,7 +1161,10 @@
/**
* {@inheritDoc}
*/
- public PropertyDefinition getDefinition() {
+ public PropertyDefinition getDefinition() throws RepositoryException {
+ // check state of this instance
+ sanityCheck();
+
return definition;
}