Revision: 6832
Author: [email protected]
Date: Tue Nov 10 20:40:54 2009
Log: Format GenerateJavaAST
http://code.google.com/p/google-web-toolkit/source/detail?r=6832
Modified:
/trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java
=======================================
--- /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java
Tue Nov 10 13:07:12 2009
+++ /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaAST.java
Tue Nov 10 20:40:54 2009
@@ -1948,12 +1948,14 @@
JExpression expr, JClassType classType) {
if (classType.getFields().size() > 0) {
JField field = classType.getFields().get(0);
- /* In some circumstances, the outer this ref can be captured as a
local
+ /*
+ * In some circumstances, the outer this ref can be captured as a
local
* value (val$this), in other cases, as a this ref (this$).
+ *
* TODO: investigate using more JDT node information as an
alternative
*/
- if (field.getName().startsWith("this$") ||
- field.getName().startsWith("val$this$")) {
+ if (field.getName().startsWith("this$")
+ || field.getName().startsWith("val$this$")) {
list.add(new JFieldRef(expr.getSourceInfo(), expr, field,
currentClass));
}
@@ -2345,8 +2347,8 @@
* expression. Beware that when autoboxing, the type of the expression
is
* not necessarily the same as the type of the box to be created. The
JDT
* figures out what the necessary conversion is, depending on the
context
- * the expression appears in, and stores it in
- * <code>x.implicitConversion</code>, so extract it from there.
+ * the expression appears in, and stores it in
<code>x.implicitConversion</code>,
+ * so extract it from there.
*/
private JPrimitiveType implicitConversionTargetType(Expression x)
throws InternalCompilerException {
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---