lbownik commented on code in PR #5317:
URL: https://github.com/apache/netbeans/pull/5317#discussion_r1081244062
##########
harness/o.n.insane/src/org/netbeans/insane/scanner/CountingVisitor.java:
##########
@@ -59,22 +61,25 @@ public void visitObject(ObjectMap map, Object obj) {
size += objSize;
}
+ @Override
public void visitStaticReference(ObjectMap map, Object to,
java.lang.reflect.Field ref) {}
+ @Override
public void visitObjectReference(ObjectMap map, Object from, Object to,
java.lang.reflect.Field ref) {}
+ @Override
public void visitArrayReference(ObjectMap map, Object from, Object to, int
index) {}
public Set<Class<?>> getClasses() {
return Collections.unmodifiableSet(infoMap.keySet());
}
- public int getCountForClass(Class cls) {
+ public int getCountForClass(Class<?> cls) {
Info info = infoMap.get(cls);
if (info == null) throw new IllegalArgumentException("Unknown class");
return info.count;
}
- public int getSizeForClass(Class cls) {
+ public int getSizeForClass(Class<?> cls) {
Review Comment:
reverted
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists