Skip to content

Commit 2f063b8

Browse files
archiecobbsVicente Romero
authored and
Vicente Romero
committed
8296846: Minor cleanup of some dead code in Flow.java
Reviewed-by: vromero
1 parent ab6b7ef commit 2f063b8

File tree

1 file changed

+0
-13
lines changed
  • src/jdk.compiler/share/classes/com/sun/tools/javac/comp

1 file changed

+0
-13
lines changed

src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Flow.java

-13
Original file line numberDiff line numberDiff line change
@@ -2175,10 +2175,6 @@ public void visitClassDef(JCClassDecl tree) {
21752175
Lint lintPrev = lint;
21762176
lint = lint.augment(tree.sym);
21772177
try {
2178-
if (tree.sym == null) {
2179-
return;
2180-
}
2181-
21822178
JCClassDecl classDefPrev = classDef;
21832179
int firstadrPrev = firstadr;
21842180
int nextadrPrev = nextadr;
@@ -2265,15 +2261,6 @@ public void visitMethodDef(JCMethodDecl tree) {
22652261
Lint lintPrev = lint;
22662262
lint = lint.augment(tree.sym);
22672263
try {
2268-
if (tree.body == null) {
2269-
return;
2270-
}
2271-
/* Ignore synthetic methods, except for translated lambda methods.
2272-
*/
2273-
if ((tree.sym.flags() & (SYNTHETIC | LAMBDA_METHOD)) == SYNTHETIC) {
2274-
return;
2275-
}
2276-
22772264
final Bits initsPrev = new Bits(inits);
22782265
final Bits uninitsPrev = new Bits(uninits);
22792266
int nextadrPrev = nextadr;

0 commit comments

Comments
 (0)