langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/util/Dependencies.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
466 push((ClassSymbol) sym, null); |
466 push((ClassSymbol) sym, null); |
467 pop(); |
467 pop(); |
468 sym.completer = this; |
468 sym.completer = this; |
469 } |
469 } |
470 |
470 |
|
471 @Override |
|
472 public boolean isTerminal() { |
|
473 return true; |
|
474 } |
|
475 |
471 /** |
476 /** |
472 * This visitor is used to generate the special side-effect dependencies |
477 * This visitor is used to generate the special side-effect dependencies |
473 * given a graph containing only standard dependencies. |
478 * given a graph containing only standard dependencies. |
474 */ |
479 */ |
475 private static class SideEffectVisitor extends NodeVisitor<String, Node, Void> { |
480 private static class SideEffectVisitor extends NodeVisitor<String, Node, Void> { |