| Index: editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/SyntaxTranslator.java
|
| diff --git a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/SyntaxTranslator.java b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/SyntaxTranslator.java
|
| index 1881be93f587b6aeef04ce9606d38616bf8616af..d7f93616bd438680a6efef90bfb376f5c6acf180 100644
|
| --- a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/SyntaxTranslator.java
|
| +++ b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/SyntaxTranslator.java
|
| @@ -769,12 +769,13 @@ public class SyntaxTranslator extends org.eclipse.jdt.core.dom.ASTVisitor {
|
|
|
| @Override
|
| public boolean visit(org.eclipse.jdt.core.dom.FieldDeclaration node) {
|
| - boolean isNotPublic = !org.eclipse.jdt.core.dom.Modifier.isPublic(node.getModifiers());
|
| + boolean isPublic = org.eclipse.jdt.core.dom.Modifier.isPublic(node.getModifiers());
|
| boolean isStatic = org.eclipse.jdt.core.dom.Modifier.isStatic(node.getModifiers());
|
| boolean isFinal = false;
|
| // interface field
|
| org.eclipse.jdt.core.dom.ASTNode parent = node.getParent();
|
| if (parent instanceof TypeDeclaration && ((TypeDeclaration) parent).isInterface()) {
|
| + isPublic = true;
|
| isStatic = true;
|
| isFinal = true;
|
| }
|
| @@ -783,7 +784,7 @@ public class SyntaxTranslator extends org.eclipse.jdt.core.dom.ASTVisitor {
|
| translateJavadoc(node),
|
| isStatic,
|
| translateVariableDeclarationList(isFinal, node.getType(), node.fragments()));
|
| - if (isNotPublic) {
|
| + if (!isPublic) {
|
| context.putPrivateClassMember(fieldDeclaration);
|
| }
|
| return done(fieldDeclaration);
|
|
|