Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: fix typo in element printer helper.java #2223

Merged
merged 5 commits into from
Jul 16, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/main/java/spoon/reflect/visitor/ElementPrinterHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down