langtools/src/share/classes/com/sun/tools/javac/comp/Attr.java
changeset 6721 d92073844278
parent 6710 b14e6fe7b290
child 7073 c27644ae5855
equal deleted inserted replaced
6720:f16f91662ad8 6721:d92073844278
   117         allowBoxing = source.allowBoxing();
   117         allowBoxing = source.allowBoxing();
   118         allowCovariantReturns = source.allowCovariantReturns();
   118         allowCovariantReturns = source.allowCovariantReturns();
   119         allowAnonOuterThis = source.allowAnonOuterThis();
   119         allowAnonOuterThis = source.allowAnonOuterThis();
   120         allowStringsInSwitch = source.allowStringsInSwitch();
   120         allowStringsInSwitch = source.allowStringsInSwitch();
   121         sourceName = source.name;
   121         sourceName = source.name;
   122         relax = (options.get("-retrofit") != null ||
   122         relax = (options.isSet("-retrofit") ||
   123                  options.get("-relax") != null);
   123                  options.isSet("-relax"));
   124         useBeforeDeclarationWarning = options.get("useBeforeDeclarationWarning") != null;
   124         useBeforeDeclarationWarning = options.isSet("useBeforeDeclarationWarning");
   125         enableSunApiLintControl = options.get("enableSunApiLintControl") != null;
   125         enableSunApiLintControl = options.isSet("enableSunApiLintControl");
   126     }
   126     }
   127 
   127 
   128     /** Switch: relax some constraints for retrofit mode.
   128     /** Switch: relax some constraints for retrofit mode.
   129      */
   129      */
   130     boolean relax;
   130     boolean relax;