diff --git a/src/main/java/spoon/reflect/visitor/ElementPrinterHelper.java b/src/main/java/spoon/reflect/visitor/ElementPrinterHelper.java index a4729978f57..7c5870de8d6 100644 --- a/src/main/java/spoon/reflect/visitor/ElementPrinterHelper.java +++ b/src/main/java/spoon/reflect/visitor/ElementPrinterHelper.java @@ -494,17 +494,17 @@ private ListPrinter createListPrinter(boolean startPrefixSpace, String start, bo return new ListPrinter(printer, startPrefixSpace, start, startSufficSpace, nextPrefixSpace, next, nextSuffixSpace, endPrefixSpace, end); } - private static final String QALIFIED_NAME_SEPARATORS = ".$"; + private static final String QUALIFIED_NAME_SEPARATORS = ".$"; /** * splits qualified name to primitive tokens and sends them to TokenWriter individually * @param qualifiedName to be sent qualified name */ public TokenWriter writeQualifiedName(String qualifiedName) { - StringTokenizer st = new StringTokenizer(qualifiedName, QALIFIED_NAME_SEPARATORS, true); + StringTokenizer st = new StringTokenizer(qualifiedName, QUALIFIED_NAME_SEPARATORS, true); while (st.hasMoreTokens()) { String token = st.nextToken(); - if (token.length() == 1 && QALIFIED_NAME_SEPARATORS.indexOf(token.charAt(0)) >= 0) { + if (token.length() == 1 && QUALIFIED_NAME_SEPARATORS.indexOf(token.charAt(0)) >= 0) { printer.writeSeparator(token); } else { printer.writeIdentifier(token);