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

changeset 700
7b413ac1a720
parent 689
77cc34d5e548
child 723
01eabcd240e9
equal deleted inserted replaced
699:d2aaaec153e8 700:7b413ac1a720
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;

mercurial