--- old/src/share/classes/javax/lang/model/util/ElementKindVisitor7.java 2010-12-01 00:40:32.000000000 -0800
+++ new/src/share/classes/javax/lang/model/util/ElementKindVisitor7.java 2010-12-01 00:40:32.000000000 -0800
@@ -34,7 +34,7 @@
/**
* A visitor of program elements based on their {@linkplain
* ElementKind kind} with default behavior appropriate for the {@link
- * SourceVersion#RELEASE_6 RELEASE_6} source version. For {@linkplain
+ * SourceVersion#RELEASE_7 RELEASE_7} source version. For {@linkplain
* Element elements} XYZ that may have more than one
* kind, the visitXYZ methods in this class delegate
* to the visitXYZKind method corresponding to the
@@ -94,4 +94,17 @@
protected ElementKindVisitor7(R defaultValue) {
super(defaultValue);
}
+
+ /**
+ * Visits a {@code RESOURCE_VARIABLE} variable element by calling
+ * {@code defaultAction}.
+ *
+ * @param e {@inheritDoc}
+ * @param p {@inheritDoc}
+ * @return the result of {@code defaultAction}
+ */
+ @Override
+ public R visitVariableAsResourceVariable(VariableElement e, P p) {
+ return defaultAction(e, p);
+ }
}