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

changeset 2047
5f915a0c9615
parent 2027
4932bb04c4b8
child 2114
09a414673570
     1.1 --- a/src/share/classes/com/sun/tools/javac/comp/Flow.java	Mon Sep 23 10:10:07 2013 +0200
     1.2 +++ b/src/share/classes/com/sun/tools/javac/comp/Flow.java	Mon Sep 23 10:42:38 2013 +0200
     1.3 @@ -713,7 +713,7 @@
     1.4              ListBuffer<PendingExit> prevPending = pendingExits;
     1.5              boolean prevAlive = alive;
     1.6              try {
     1.7 -                pendingExits = ListBuffer.lb();
     1.8 +                pendingExits = new ListBuffer<>();
     1.9                  alive = true;
    1.10                  scanStat(tree.body);
    1.11                  tree.canCompleteNormally = alive;
    1.12 @@ -1265,7 +1265,7 @@
    1.13              List<Type> prevThrown = thrown;
    1.14              ListBuffer<FlowPendingExit> prevPending = pendingExits;
    1.15              try {
    1.16 -                pendingExits = ListBuffer.lb();
    1.17 +                pendingExits = new ListBuffer<>();
    1.18                  caught = tree.getDescriptorType(types).getThrownTypes();
    1.19                  thrown = List.nil();
    1.20                  scan(tree.body);
    1.21 @@ -1338,7 +1338,7 @@
    1.22              ListBuffer<FlowPendingExit> prevPending = pendingExits;
    1.23              inLambda = true;
    1.24              try {
    1.25 -                pendingExits = ListBuffer.lb();
    1.26 +                pendingExits = new ListBuffer<>();
    1.27                  caught = List.of(syms.throwableType);
    1.28                  thrown = List.nil();
    1.29                  scan(tree.body);
    1.30 @@ -2030,7 +2030,7 @@
    1.31          void reportWarning(Lint.LintCategory lc, DiagnosticPosition pos, String key, Object ... args) {}
    1.32  
    1.33          public void visitTry(JCTry tree) {
    1.34 -            ListBuffer<JCVariableDecl> resourceVarDecls = ListBuffer.lb();
    1.35 +            ListBuffer<JCVariableDecl> resourceVarDecls = new ListBuffer<>();
    1.36              final Bits uninitsTryPrev = new Bits(uninitsTry);
    1.37              ListBuffer<P> prevPendingExits = pendingExits;
    1.38              pendingExits = new ListBuffer<>();

mercurial