/*
* JavaInspect - Utility to visualize java software
- * Copyright (C) 2013-2017, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- *
+ * Copyright (C) 2013-2020, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of version 3 of the GNU Lesser General Public License
* or later as published by the Free Software Foundation.
public class Clazz {
+ public final List<ClassReference> implementedInterfaces = new ArrayList<>();
private final String packageName;
private final String className;
private final boolean isInterface;
-
public ClassReference superClass;
- public List<ClassReference> implementedInterfaces = new ArrayList<ClassReference>();
public Clazz(final String packageName, final String className,
final Tokenizer tokenizer, final boolean isInterface)
while (true) {
implementedInterfaces.add(new ClassReference(tokenizer));
- if (tokenizer.probeNextToken(","))
+ if (tokenizer.consumeIfNextToken(","))
continue;
break;