langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Lower.java
changeset 39806 d3a13ca6013e
parent 37638 aac00923d48e
child 39920 4923274643f2
equal deleted inserted replaced
39678:5bf88dce615f 39806:d3a13ca6013e
   900     }
   900     }
   901 
   901 
   902     /** Return binary operator that corresponds to given access code.
   902     /** Return binary operator that corresponds to given access code.
   903      */
   903      */
   904     private OperatorSymbol binaryAccessOperator(int acode) {
   904     private OperatorSymbol binaryAccessOperator(int acode) {
   905         for (Symbol sym : syms.predefClass.members().getSymbols(NON_RECURSIVE)) {
   905         return (OperatorSymbol)operators.lookupBinaryOp(sym -> accessCode(((OperatorSymbol)sym).opcode) == acode);
   906             if (sym instanceof OperatorSymbol) {
       
   907                 OperatorSymbol op = (OperatorSymbol)sym;
       
   908                 if (accessCode(op.opcode) == acode) return op;
       
   909             }
       
   910         }
       
   911         return null;
       
   912     }
   906     }
   913 
   907 
   914     /** Return tree tag for assignment operation corresponding
   908     /** Return tree tag for assignment operation corresponding
   915      *  to given binary operator.
   909      *  to given binary operator.
   916      */
   910      */