Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Unified Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/ExtractLocalVariableOptions.java

Issue 538253002: Use primitive int/boolean where possible in the Java client. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/ExtractLocalVariableOptions.java
diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/ExtractLocalVariableOptions.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/ExtractLocalVariableOptions.java
index ec708b351db562cf9aba667503ddddbbcbd71d5b..d24d11690af6476fb8ba8e62453509d0259ccba3 100644
--- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/ExtractLocalVariableOptions.java
+++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/ExtractLocalVariableOptions.java
@@ -51,12 +51,12 @@ public class ExtractLocalVariableOptions extends RefactoringOptions {
* should be replaced by a reference to the local variable. The expression used to initiate the
* refactoring will always be replaced.
*/
- private final Boolean extractAll;
+ private final boolean extractAll;
/**
* Constructor for {@link ExtractLocalVariableOptions}.
*/
- public ExtractLocalVariableOptions(String name, Boolean extractAll) {
+ public ExtractLocalVariableOptions(String name, boolean extractAll) {
this.name = name;
this.extractAll = extractAll;
}
@@ -67,14 +67,14 @@ public class ExtractLocalVariableOptions extends RefactoringOptions {
ExtractLocalVariableOptions other = (ExtractLocalVariableOptions) obj;
return
ObjectUtilities.equals(other.name, name) &&
- ObjectUtilities.equals(other.extractAll, extractAll);
+ other.extractAll == extractAll;
}
return false;
}
public static ExtractLocalVariableOptions fromJson(JsonObject jsonObject) {
String name = jsonObject.get("name").getAsString();
- Boolean extractAll = jsonObject.get("extractAll").getAsBoolean();
+ boolean extractAll = jsonObject.get("extractAll").getAsBoolean();
return new ExtractLocalVariableOptions(name, extractAll);
}
@@ -95,7 +95,7 @@ public class ExtractLocalVariableOptions extends RefactoringOptions {
* should be replaced by a reference to the local variable. The expression used to initiate the
* refactoring will always be replaced.
*/
- public Boolean extractAll() {
+ public boolean extractAll() {
return extractAll;
}

Powered by Google App Engine
This is Rietveld 408576698