removed unused endVisitingObject method.
This commit is contained in:
parent
bcd1baefd5
commit
40b77dfa6b
|
@ -94,10 +94,6 @@ final class JsonArrayDeserializationVisitor<T> extends JsonDeserializationVisito
|
|||
// all other methods should be invoked on JsonObjectDeserializationVisitor
|
||||
// instead.
|
||||
|
||||
public void endVisitingObject(Object node) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
public void startVisitingObject(Object node) {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
|
|
@ -46,10 +46,6 @@ final class JsonObjectDeserializationVisitor<T> extends JsonDeserializationVisit
|
|||
// do nothing
|
||||
}
|
||||
|
||||
public void endVisitingObject(Object node) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
public void visitArray(Object array, Type componentType) {
|
||||
// should not be called since this case should invoke JsonArrayDeserializationVisitor
|
||||
throw new IllegalStateException();
|
||||
|
|
|
@ -43,10 +43,6 @@ final class JsonPrimitiveDeserializationVisitor<T> extends JsonDeserializationVi
|
|||
// do nothing
|
||||
}
|
||||
|
||||
public void endVisitingObject(Object node) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
public void visitArray(Object array, Type componentType) {
|
||||
// should not be called since this case should invoke JsonArrayDeserializationVisitor
|
||||
throw new IllegalStateException();
|
||||
|
|
|
@ -47,10 +47,6 @@ final class JsonSerializationVisitor implements ObjectNavigator.Visitor {
|
|||
this.context = context;
|
||||
}
|
||||
|
||||
public void endVisitingObject(Object node) {
|
||||
// nothing to be done here
|
||||
}
|
||||
|
||||
public void startVisitingObject(Object node) {
|
||||
assignToRoot(new JsonObject());
|
||||
}
|
||||
|
|
|
@ -34,11 +34,6 @@ final class ObjectNavigator {
|
|||
*/
|
||||
void startVisitingObject(Object node);
|
||||
|
||||
/**
|
||||
* This is called after the object navigator finishes visiting the current object
|
||||
*/
|
||||
void endVisitingObject(Object node);
|
||||
|
||||
/**
|
||||
* This is called to visit the current object if it is an array
|
||||
*/
|
||||
|
@ -140,7 +135,6 @@ final class ObjectNavigator {
|
|||
navigateClassFields(obj, curr, visitor);
|
||||
}
|
||||
}
|
||||
visitor.endVisitingObject(obj);
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
|
|
Loading…
Reference in New Issue