Hi,

sorry for the delay, got distracted by other things. Switch back:

http://cr.openjdk.java.net/~redestad/8222852/open.01/

Passed a sanity tier1 run.

/Claes

On 2019-04-23 13:27, Aleksey Shipilev wrote:
I'd keep the switch in the second loop, like this:

   for (RecipeElement el : recipe.getElements()) {
       switch (el.getTag()) {
           case TAG_ARG:
               ...
               break;
           case TAG_CONST:
               // Constants are already handled in the code above.
               break;
           default:
               throw new StringConcatException("Unhandled tag: " + el.getTag());
       }
   }

Reply via email to