Add JNI references for PacketSocketAddress.
Also remove an outdated comment.
Change-Id: If0da380f78c1e77963953d8e64737d0f22c90fad
diff --git a/include/nativehelper/JniConstants.h b/include/nativehelper/JniConstants.h
index f5e2b35..2017e57 100644
--- a/include/nativehelper/JniConstants.h
+++ b/include/nativehelper/JniConstants.h
@@ -22,11 +22,10 @@
/**
* A cache to avoid calling FindClass at runtime.
*
- * Class lookup is relatively expensive (2.5us on passion-eng at the time of writing), so we do
- * all such lookups eagerly at startup. This means that code that never uses, say,
- * java.util.zip.Deflater still has to pay for the lookup, but it means that on a device the cost
- * is definitely paid during boot and amortized. A central cache also removes the temptation to
- * dynamically call FindClass rather than add a small cache to each file that needs one. Another
+ * Class lookup is relatively expensive, so we do these lookups at startup. This means that code
+ * that never uses, say, java.util.zip.Deflater still has to pay for the lookup, but it means that
+ * on device the cost is paid during boot and amortized. A central cache also removes the temptation
+ * to dynamically call FindClass rather than add a small cache to each file that needs one. Another
* cost is that each class cached here requires a global reference, though in practice we save
* enough by not having a global reference for each file that uses a class such as java.lang.String
* which is used in several files.
@@ -73,6 +72,7 @@
static jclass objectClass;
static jclass objectArrayClass;
static jclass outputStreamClass;
+ static jclass packetSocketAddressClass;
static jclass parsePositionClass;
static jclass patternSyntaxExceptionClass;
static jclass realToStringClass;