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; |